Cable conduit intelligent lock opening system and method based on multiple verifications
By introducing multiple verification methods into the cable duct smart lock opening system, including key identity authentication and device permission verification, the problem of low security in the existing technology is solved, and the full process security of the cable duct smart lock opening is achieved.
Patent Information
- Application Number
- CN202411458131.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2044-10-18
AI Technical Summary
The existing cable duct smart lock opening technology only implements the authentication function between the smart key and the cable duct smart lock, which has low security.
By performing multi-level authentication after the user terminal device receives the key data, including key identity verification and device permission verification, the security of each link is ensured, and multiple verification methods are used to improve the security of opening the cable duct smart lock.
The full-process security of the cable duct smart lock is achieved. Through multi-level authentication of the cable duct smart lock opening link, the problem of low security in the existing technology is solved, and the full-process security of the cable duct smart lock opening is ensured.
Smart Images

Figure CN119516644B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of cable duct smart lock opening, and in particular to a cable duct smart lock opening system and method based on multiple verifications. Background Art
[0002] Cable duct plugging sleeves can be removed at will during construction, allowing construction workers to proceed at their own convenience without planning. 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 becoming tangled and disorderly. However, smart cable duct locks, through configured permission verification, enable precise control and security management of cable ducts, significantly improving their safety. The application of smart cable duct locks is of great significance for improving cable duct safety, facilitating management, and facilitating energy conservation and emission reduction.
[0003] Among the relevant cable duct smart lock opening methods, most of them are to issue keys through the cable duct smart lock management platform. After the mobile phone APP receives the issued key, the staff will transfer the key in the mobile phone APP to the smart key, so as to open the cable duct smart lock after completing the authentication between the smart key and the cable duct smart lock. This authentication method only realizes the authentication function between the smart key and the cable duct smart lock, and has low security. Summary of the Invention
[0004] The embodiments of the present invention provide a cable duct smart lock opening system and method based on multiple verifications, which solves the problem that the existing cable duct smart lock opening technology only implements the authentication function between the smart key and the cable duct smart lock, resulting in low security. The system and method can ensure the security of the entire cable duct smart lock opening process through multi-level authentication of each device in the cable duct smart lock opening link.
[0005] In a first aspect, an embodiment of the present invention provides a method for opening a cable conduit smart lock based on multiple verifications, comprising:
[0006] When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified, and the code to be verified is updated every preset period;
[0007] The user terminal device performs key identity verification on the smart key according to the code to be verified and the time period, and receives a device authority verification result sent by the smart key;
[0008] When the key identity authentication and the device authority verification results are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock.
[0009] Optionally, before the user terminal device receives the issued key data and establishes a connection with the smart key, the process includes:
[0010] The smart lock management device receives the unique identity code sent by the user terminal device, and queries whether the unique identity code exists in the pre-stored code information. If the unique identity code exists, the device determines the upper-level code of the unique identity code according to the pre-stored code information, wherein the pre-stored code information includes the hierarchical relationship between the pre-stored codes;
[0011] The smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code. If the key issuance authority verification is passed, the smart lock management device generates key data and sends it to the user terminal device.
[0012] Optionally, the smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code, including:
[0013] The intelligent management device obtains the cable duct operation data uploaded by the user terminal device corresponding to the stored upper-level code, and determines that the key issuance authority verification has passed when the cable duct operation data indicates that the operation task has been completed; and determines that the key issuance authority verification has failed when the cable duct operation data indicates that the operation task has not been completed.
[0014] Optionally, the user terminal device performs key identity authentication on the smart key according to the code to be verified and the time period, including:
[0015] The user terminal device generates a comparison verification code according to the time period and a preset comparison verification code generation rule, and determines that the key identity authentication is passed when the comparison verification code is identical to the code to be verified.
[0016] Optionally, the user terminal device generates a comparison verification code according to the time period and a preset comparison verification code generation rule, including:
[0017] The user terminal device calculates the timestamps corresponding to the front end time point and the back end time point of the time period, and integrates the value of the preset number of digits after the timestamp of the front end time point with the value of the preset number of digits after the timestamp of the back end time point to obtain a comparison check code.
[0018] Optionally, the code to be verified is updated every preset period, including:
[0019] The smart key determines the time period of the next preset cycle at the end of the current preset cycle, generates a new code to be verified according to the time period of the cycle and a preset code to be verified generation rule, and updates the code to be verified corresponding to the current preset cycle to the new code to be verified. The preset code to be verified generation rule has the same logic as the preset comparison verification code generation rule.
[0020] Optionally, before receiving the device authority verification result sent by the smart key, the method further includes:
[0021] The smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with a pre-stored comparison code, and determines the current time if the comparison is successful;
[0022] The smart key compares the time with a plurality of pre-stored available time periods, and determines that the device authority verification result is verification passed if there is an available time period within which the time falls.
[0023] In a second aspect, an embodiment of the present invention further provides a cable duct smart lock opening system based on multiple verifications, comprising:
[0024] An acquisition module is configured to receive, when the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, a code to be verified sent by the smart key and a time period for retaining the code to be verified, wherein the code to be verified is updated every preset period;
[0025] A key identity authentication module, configured for the user terminal device to perform key identity authentication on the smart key according to the code to be verified and the time period;
[0026] A receiving module, configured to receive a device authority verification result sent by the smart key;
[0027] The key sending module is used to send the key data to the smart key by the user terminal device when the key identity authentication and the device authority verification results are both passed, so as to open the corresponding cable duct smart lock.
[0028] In a third aspect, an embodiment of the present invention further provides a cable duct smart lock opening device based on multiple verifications, the device comprising:
[0029] one or more processors;
[0030] a storage device for storing one or more programs,
[0031] 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 method based on multiple verifications as described in an embodiment of the present invention.
[0032] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to execute the cable duct smart lock opening method based on multiple verifications described in an embodiment of the present invention.
[0033] In an embodiment of the present invention, when a user terminal device receives key data sent by a smart lock management device and establishes a connection with a smart key, it receives a code to be verified and a time period for retaining the code to be verified sent by the smart key. The code to be verified is updated every preset period. The user terminal device performs key identity authentication on the smart key based on the code to be verified and the time period for retaining the code to be verified, and receives a device authority verification result sent by the smart key. If both the key identity authentication and the device authority verification results are passed, the user terminal device sends the key data to the smart key for use in opening the corresponding cable duct smart lock. This solution solves the problem of low security in existing cable duct smart lock opening technologies, which only implements the authentication function between the smart key and the cable duct smart lock, by performing multi-level authentication on each device in the cable duct smart lock opening process. It can ensure the security of the entire cable duct smart lock opening process. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a method for opening a cable duct smart lock based on multiple verifications provided by an embodiment of the present invention;
[0035] Figure 2 A flowchart of another method for opening a cable duct smart lock based on multiple verifications provided by an embodiment of the present invention;
[0036] Figure 3 A flowchart of another method for opening a cable duct smart lock based on multiple verifications provided by an embodiment of the present invention;
[0037] Figure 4 A flowchart of another method for opening a cable duct smart lock based on multiple verifications provided by an embodiment of the present invention;
[0038] Figure 5 A module structure diagram of a cable duct smart lock opening system based on multiple verifications provided by an embodiment of the present invention;
[0039] Figure 6 A schematic structural diagram of a cable duct smart lock opening device based on multiple verifications provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] 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.
[0041] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the terms "and or or" in the specification and claims represent at least one of the connected objects, and the character "or" generally indicates that the objects connected are in an "or" relationship.
[0042] The cable conduit smart lock opening method based on multiple verifications provided in the embodiments of the present application can be applied to verification scenarios during the process of opening a cable conduit smart lock. The execution subject of each step of the cable conduit smart lock opening method based on multiple verifications provided in the embodiments of the present application can be a computer device, which refers to any electronic device with data calculation, processing, and storage capabilities, such as a mobile phone, PC (Personal Computer), tablet computer, and other terminal devices, or a server and other devices, which are not limited in the embodiments of the present application.
[0043] Figure 1 A flowchart of a method for opening a cable conduit smart lock based on multiple verifications is provided in an embodiment of the present invention, such as Figure 1 As shown, specifically including:
[0044] Step S101: When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified. The code to be verified is updated every preset period.
[0045] Among them, the user terminal device can be a terminal device specifically used by the user to open the cable duct smart lock, and its relevant information can be entered into the smart lock management device before the user terminal device is put into use. The smart lock management device can be a management layer device used to manage each cable duct smart lock, and the smart lock management device can be used to determine whether to send key data to the user terminal device. The key data is used to represent the encrypted data verified when the cable duct smart lock is opened. The smart key is used to represent the key used to open the cable duct smart lock. The smart key is not only used to open the cable duct smart lock, but also has the function of powering the cable duct smart lock and transmitting data. The smart key can connect to the user terminal device and transmit data through Bluetooth technology. The code to be verified can be a number combination or a character string or a combination of characters and numbers waiting to be confirmed whether it is correct. The code to be verified is updated every preset period, and the retention time of each code to be verified is one period.
[0046] Optionally, before the user terminal device receives the key data sent and establishes a connection with the smart key, the smart lock management device receives the unique identity code sent by the user terminal device and queries whether the unique identity code exists in the pre-stored code information. If the unique identity code exists, the upper-level code of the unique identity code is determined according to the pre-stored code information. The pre-stored code information includes the hierarchical relationship between each pre-stored code. The smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code of the unique identity code. If the key issuance authority verification is passed, the key data is generated and sent to the user terminal device. By performing key issuance authority verification on the user terminal device, the security of key issuance can be improved, thereby improving the security of opening the cable duct smart lock.
[0047] Step S102: The user terminal device performs key identity verification on the smart key according to the code to be verified and the time period, and receives a device authority verification result sent by the smart key.
[0048] Among them, key identity authentication is used to represent the user terminal device's verification of the identity of the smart key. The device authority verification result is used to represent the result of the smart key's authority verification of the user terminal device. In one embodiment, after the user terminal device receives the code to be verified and the time period for which the code to be verified is retained sent by the smart key, the user terminal device inputs the time period for which the code to be verified is retained into the trained comparison verification code generation model to obtain a comparison verification code. When the comparison verification code is the same as the code to be verified, it is determined that the key identity authentication has passed, and the device authority verification result sent by the smart key is received. Optionally, a key identity authentication method may be that the user terminal device generates a comparison verification code based on the time period for which the code to be verified is retained and a preset comparison verification code generation rule. When the comparison verification code is the same as the code to be verified, it is determined that the key identity authentication has passed. By authenticating the smart key, the security of the key data transmitted by the user terminal device to the smart key can be ensured, and the key data can be prevented from being stolen by unauthorized persons.
[0049] Optionally, before receiving the device permission verification result sent by the smart key, the smart key receives a unique identity code sent by the user terminal device, compares the unique identity code with a pre-stored comparison code, and if the comparison is successful, determines the current time. The smart key compares the current time with multiple pre-stored available time periods, and if there is an available time period that the current time falls within, determines that the device permission verification result is verification passed. By performing smart key permission verification on the user terminal device, the security of the user terminal device that transmits the key can be guaranteed.
[0050] Step S103: When the key identity verification and the device authority verification results are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock.
[0051] After the user terminal device performs key authentication and receives the device permission verification result from the smart key, it then checks the key authentication and device permission verification results. If both pass, the user terminal device sends the key data to the smart key. In one embodiment, after the cable duct smart lock determines that the smart key has been inserted, it receives the key data transmitted by the smart key and performs verification based on the key data. If the verification passes, the cable duct smart lock automatically opens. By implementing multi-level authentication for each device involved in the cable duct smart lock opening process, the security of the entire cable duct smart lock opening process can be ensured.
[0052] As can be seen from the above, when the user terminal device receives the key data sent by the smart lock management device and establishes a connection with the smart key, it receives the verification code and the time period for which the verification code is retained sent by the smart key. The verification code is updated every preset period. The user terminal device performs key identity authentication on the smart key based on the verification code and the time period for which the verification code is retained, and receives the device authority verification result sent by the smart key. When both the key identity authentication and the device authority verification results are passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock. This solution solves the problem of low security in existing cable duct smart lock opening technologies, which only implements the authentication function between the smart key and the cable duct smart lock, by multi-level authentication of each device in the cable duct smart lock opening link. It can ensure the security of the entire process of cable duct smart lock opening.
[0053] Figure 2 A flowchart of another method for opening a cable conduit smart lock based on multiple verifications provided by an embodiment of the present invention provides a specific method for sending an optional key data, such as Figure 2 As shown, specifically including:
[0054] Step S201, the smart lock management device receives the unique identity code sent by the user terminal device, and queries whether the unique identity code exists in the pre-stored coding information. If the unique identity code exists, the upper-level code of the unique identity code is determined according to the pre-stored coding information, and the pre-stored coding information includes the hierarchical relationship between each pre-stored code.
[0055] Among them, the unique identity code is used to represent the unique code representing the identity of the user terminal device, which can be a string or a combination of numbers or a combination of characters and numbers, and is unique. The pre-stored code is used to represent the unique identity code of each user terminal device pre-stored by the smart lock management device, and the pre-stored code information can be the relevant information of the unique identity code of each user terminal device pre-stored by the smart lock management device. The previous level code can be a unique identity code arranged before the unique identity code of the current user terminal device, and the order of the user terminal device corresponding to the previous level code for cable pipeline operations is arranged before the current user terminal device. An exemplary example can be that the smart lock management device receives the unique identity code of b sent by the user terminal device as 005, and the pre-stored codes in the pre-stored code information are arranged in descending order of hierarchy as 001, 002, 003, 004, 005, and 006. The pre-stored code information contains the unique identity code of user terminal device b, and the previous level code of the unique identity code is 004.
[0056] Step S202: The smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code. If the key issuance authority verification is passed, key data is generated and sent to the user terminal device.
[0057] Among them, after determining the upper-level code of the unique identity code of the user terminal device, the smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code of the unique identity code of the user terminal device. If the key issuance authority verification is passed, the key data is generated and sent to the user terminal device. Optionally, a method of verifying the key issuance authority may be that the smart management device obtains the cable duct operation data uploaded by the user terminal device corresponding to the upper-level code of the unique identity code of the user terminal device stored. If the cable duct operation data indicates that the operation task has been completed, it is determined that the key issuance authority verification has passed. If the cable duct operation data indicates that the operation task has not been completed, it is determined that the key issuance authority verification has failed. An exemplary example may be that the unique identity code of the current user terminal device b is 005, and the upper-level code is 004. The smart management device obtains the cable duct operation data uploaded by the user terminal device a corresponding to the stored 004 and indicates that the operation task has been completed, then it is determined that the key issuance authority verification has passed. In another embodiment, the intelligent management device obtains the cable duct smart lock status record data uploaded by the user terminal device corresponding to the upper-level code of the stored unique identity code of the user terminal device, and determines whether the corresponding cable duct smart lock is opened and closed within the preset time based on the smart lock status record data. If so, it is determined that the key issuance authority verification is passed; if not, it is determined that the key issuance authority verification is failed.
[0058] Step S203: When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified. The code to be verified is updated every preset period.
[0059] Step S204: The user terminal device performs key identity verification on the smart key according to the code to be verified and the time period, and receives a device authority verification result sent by the smart key.
[0060] Step S205: When the key identity verification and the device authority verification results are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock.
[0061] As can be seen from the above, before the user terminal device receives the key data sent and establishes a connection with the smart key, the smart lock management device receives the unique identity code sent by the user terminal device and queries whether the unique identity code exists in the pre-stored code information. If the unique identity code exists, the upper-level code of the unique identity code is determined according to the pre-stored code information. The pre-stored code information includes the hierarchical relationship between each pre-stored code. The smart lock management device determines whether the key issuance authority verification is passed based on the upper-level code of the unique identity code. If the key issuance authority verification is passed, the key data is generated and sent to the user terminal device. This solution can improve the security of key issuance by verifying the key issuance authority of the user terminal device, thereby improving the security of opening the cable duct smart lock.
[0062] Figure 3 A flowchart of another method for opening a cable duct smart lock based on multiple verifications is provided in an embodiment of the present invention, which provides a specific method for optional key identity verification, such as Figure 2 As shown, specifically including:
[0063] Step S301: When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified. The code to be verified is updated every preset period.
[0064] Step S302: The user terminal device generates a comparison verification code according to the time period and the preset comparison verification code generation rule. If the comparison verification code is the same as the code to be verified, it is determined that the key identity authentication is passed, and the device authority verification result sent by the smart key is received.
[0065] The preset comparison verification code generation rule may be a pre-set method for generating a comparison verification code, and the comparison verification code is used to represent the same type of data to be compared with the code to be verified. A key identity authentication method may be: the user terminal device generates a comparison verification code based on the time period during which the code to be verified is retained and the preset comparison verification code generation rule. If the comparison verification code is identical to the code to be verified, the key identity authentication is determined to be successful. Alternatively, a method for generating a comparison verification code may be: the user terminal device calculates the timestamps corresponding to the front-end and back-end time points of the time period during which the code to be verified is retained, and combines the value of the timestamp at the front-end time point with the value of the timestamp at the back-end time point to obtain the comparison verification code. An exemplary example may be that the code to be verified is 0566, the number of pre-set digits is two, the time period for retaining the code to be verified is from 12:05 on January 1, 2024 to 12:06 on January 1, 2024, the timestamp at the front-end time point is 1672507505, and the timestamp at the back-end time point is 1672507566. The last two digits of the timestamp at the front-end time point are 05, and the last two digits of the timestamp at the back-end time point are 66. The resulting comparison verification code is 0566, which is the same as the code to be verified, confirming that the key identity verification has passed. In another embodiment, the user terminal device determines the front-end time point and the back-end time point of the time period for retaining the code to be verified, and substitutes the front-end time point and the back-end time point into a trained comparison verification code generation model to obtain the comparison verification code.
[0066] Optionally, at the end of the current preset cycle, the smart key determines the time period corresponding to the next preset cycle, generates a new to-be-verified code based on the time period of the cycle and a preset to-be-verified code generation rule, and updates the to-be-verified code corresponding to the current preset cycle to the new to-be-verified code. The preset to-be-verified code generation rule has the same logic as the preset comparison verification code generation rule. In one exemplary example, the preset comparison verification code generation rule is for the user terminal device to calculate the timestamps corresponding to the front and back time points of the time period in which the to-be-verified code is retained, and integrate the value of the number of digits following the timestamp of the front and back time points to obtain the comparison verification code. A preset to-be-verified code generation rule with the same logic is for the smart key to calculate the timestamps corresponding to the front and back time points of the time period corresponding to the next preset cycle of the current preset cycle, and integrate the value of the number of digits following the timestamp of the front and back time points to obtain the to-be-verified code, wherein the time period in which the to-be-verified code is retained is the same as the time period in which the cycle corresponds to the next preset cycle of the current preset cycle.
[0067] Step S303, in the case that the key identity verification and the device permission verification result are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable conduit smart lock.
[0068] As can be seen from the above, the user terminal device generates a comparison verification code according to the time period reserved by the to-be-verified code and a preset comparison verification code generation rule, and determines that the key identity verification is passed in the case that the comparison verification code is the same as the to-be-verified code. The present scheme can ensure the security of the user terminal device in transmitting the key data to the smart key by performing identity verification on the smart key, and avoid unauthorized persons from stealing the key data.
[0069] Figure 4 Another flowchart of the cable conduit smart lock opening method based on multiple verifications provided by the embodiment of the present application is given, which gives an optional specific method for determining the device permission verification result, as shown in Figure 2 The specific method comprises the following steps:
[0070] Step S401, in the case that the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, the to-be-verified code sent by the smart key and the time period reserved by the to-be-verified code are received, and the to-be-verified code is updated every preset period.
[0071] Step S402, the user terminal device performs key identity verification on the smart key according to the to-be-verified code and the time period.
[0072] Step S403, the smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with a pre-stored comparison code, determines the current time in the case that the comparison is successful, and compares the time with a plurality of available time periods pre-stored by the smart key, and determines that the device permission verification result is passed in the case that the time falls into an available time period.
[0073] The pre-stored comparison code can be a code pre-stored for comparison with the unique identity code of the connected user terminal device, and the pre-stored comparison code can be a code with the right to transmit data of the smart key. The available time period can be a time period in which the smart key can be used to open the cable conduit smart lock. An exemplary example can be that the pre-stored comparison code in the smart key is 005, the pre-stored available time period is 9:00 to 12:00, 1:00 to 5:00, and 7:00 to 9:00, the received unique identity code sent by the user terminal device is also 005, the comparison is successful, the current time is 10:00, and the available time is within 9:00 to 12:00. Therefore, it is determined that the device permission verification result is verified. In another embodiment, the smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with the pre-stored comparison code, and determines that the device permission verification result is verified in the case of successful comparison.
[0074] In step S404, the user terminal device receives the device permission verification result sent by the smart key, and in the case that the key identity verification and the device permission verification result are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable conduit smart lock.
[0075] As can be seen from the above, before the user terminal device receives the device permission verification result sent by the smart key, the smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with the pre-stored comparison code, and determines the current time in the case of successful comparison. The smart key compares the current time with the pre-stored available time period, and determines that the device permission verification result is verified in the case that the current time falls within the available time period. The present scheme can ensure the security of the user terminal device transmitting the key by verifying the permission of the smart key of the user terminal device.
[0076] Figure 5 A module structure block diagram of a cable conduit smart lock opening system based on multiple verifications is provided for an embodiment of the present application. The system is used to execute the cable conduit smart lock opening method based on multiple verifications provided by the above-mentioned embodiments, and has the corresponding function modules and beneficial effects of the execution method. As shown in Figure 5 The system specifically includes:
[0077] The acquisition module 101 is configured to, in a case that the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, receive a to-be-verified code and a time period reserved by the to-be-verified code sent by the smart key, and the to-be-verified code is updated every preset period.
[0078] The key identity verification module 102 is configured to perform key identity verification on the smart key by the user terminal device according to the to-be-verified code and the time period.
[0079] The receiving module 103 is configured to receive the device permission verification result sent by the smart key.
[0080] The key sending module 104 is configured to send the key data to the smart key by the user terminal device in the case that the key identity verification and the device permission verification result are both passed, so as to open the corresponding cable conduit smart lock.
[0081] According to the above scheme, in the case that the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, the to-be-verified code sent by the smart key and the time period reserved for the to-be-verified code are received, the to-be-verified code is updated every preset period, the user terminal device performs key identity verification on the smart key according to the to-be-verified code and the time period reserved for the to-be-verified code, and receives the device permission verification result sent by the smart key, and in the case that the key identity verification and the device permission verification result are both passed, the user terminal device sends the key data to the smart key, so as to open the corresponding cable conduit smart lock. The present scheme solves the problem of low security in the prior art cable conduit smart lock opening technology, in which only the authentication function is realized between the smart key and the cable conduit smart lock, by multi-level authentication of each device in the cable conduit smart lock opening link, and ensures the security of the whole process of opening the cable conduit smart lock.
[0082] In one possible embodiment, the key issuance verification module is further configured to:
[0083] The smart lock management device receives the unique identity code sent by the user terminal device, and queries whether the unique identity code exists in the pre-stored code information, and in the case that the unique identity code exists, determines the previous level code of the unique identity code according to the pre-stored code information, and the pre-stored code information includes the level relationship between each pre-stored code.
[0084] The smart lock management device determines whether the key issuance permission verification is passed based on the previous level code, and in the case that the key issuance permission verification is passed, generates key data and sends the key data to the user terminal device.
[0085] In one possible embodiment, the key issuance verification module is further configured to:
[0086] The intelligent management device obtains the cable duct operation data uploaded by the user terminal device corresponding to the stored upper-level code, and determines that the key issuance authority verification has passed when the cable duct operation data indicates that the operation task has been completed; and determines that the key issuance authority verification has failed when the cable duct operation data indicates that the operation task has not been completed.
[0087] In a possible embodiment, the key authentication module 102 is specifically configured to:
[0088] The user terminal device generates a comparison verification code according to the time period and a preset comparison verification code generation rule, and determines that the key identity authentication is passed when the comparison verification code is identical to the code to be verified.
[0089] In a possible embodiment, the key identity verification module 102 is further configured to:
[0090] The user terminal device calculates the timestamps corresponding to the front end time point and the back end time point of the time period, and integrates the value of the preset number of digits after the timestamp of the front end time point with the value of the preset number of digits after the timestamp of the back end time point to obtain a comparison check code.
[0091] In a possible embodiment, a verification code updating module is further included, specifically configured to:
[0092] The smart key determines the time period of the next preset cycle at the end of the current preset cycle, generates a new code to be verified according to the time period of the cycle and a preset code to be verified generation rule, and updates the code to be verified corresponding to the current preset cycle to the new code to be verified. The preset code to be verified generation rule has the same logic as the preset comparison verification code generation rule.
[0093] In a possible embodiment, a device permission verification module is further included, specifically configured to:
[0094] The smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with a pre-stored comparison code, and determines the current time if the comparison is successful;
[0095] The smart key compares the time with a plurality of pre-stored available time periods, and determines that the device authority verification result is verification passed if there is an available time period within which the time falls.
[0096] Figure 6 A schematic diagram of a cable duct smart lock opening device based on multiple verifications provided by an embodiment of the present invention is shown in FIG. Figure 6As 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 In the embodiment, a processor 201 is used as an example; the processor 201, the memory 202, the input device 203 and the output device 204 in the device can be connected by a bus or other means. Figure 6 The example of the connection via bus is taken 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 method based on multiple verifications in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, realizes the above-mentioned cable duct smart lock opening method based on multiple verifications. The input device 203 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the device. The output device 204 may include a display device such as a display screen.
[0097] An embodiment of the present invention further provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a method for opening a cable duct smart lock based on multiple verifications. The method includes:
[0098] When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified, and the code to be verified is updated every preset period;
[0099] The user terminal device performs key identity verification on the smart key according to the code to be verified and the time period, and receives a device authority verification result sent by the smart key;
[0100] When the key identity authentication and the device authority verification results are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock.
[0101] It is worth noting that in the above-mentioned embodiment of the cable duct intelligent lock opening method system based on multiple verifications, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0102] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments. Without departing from the concept of the embodiments of the present invention, the embodiments of the present invention may also include more other equivalent embodiments, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims
1. A cable duct smart lock opening method based on multiple verifications, characterized in that: include: The smart lock management device receives the unique identity code sent by the user terminal device, and queries whether the unique identity code exists in the pre-stored code information. If the unique identity code exists, the smart lock management device determines the upper-level code of the unique identity code according to the pre-stored code information, and the pre-stored code information includes the hierarchical relationship between each pre-stored code; The smart lock management device obtains the stored cable duct operation data uploaded by the user terminal device corresponding to the upper-level code, and determines that the key issuance authority verification is passed when the cable duct operation data indicates that the operation task has been completed; and determines that the key issuance authority verification is failed when the cable duct operation data indicates that the operation task has not been completed; and generates key data and sends it to the user terminal device when the key issuance authority verification is passed; When the user terminal device receives the key data issued by the smart lock management device and establishes a connection with the smart key, it receives the code to be verified sent by the smart key and the time period for retaining the code to be verified, and the code to be verified is updated every preset period; The user terminal device performs key identity verification on the smart key according to the code to be verified and the time period, and receives a device authority verification result sent by the smart key; When the key identity authentication and the device authority verification results are both passed, the user terminal device sends the key data to the smart key for opening the corresponding cable duct smart lock.
2. The cable conduit smart lock opening method based on multiple verifications according to claim 1 is characterized in that: The user terminal device performs key identity authentication on the smart key according to the code to be verified and the time period, including: The user terminal device generates a comparison verification code according to the time period and a preset comparison verification code generation rule, and determines that the key identity authentication is passed when the comparison verification code is identical to the code to be verified.
3. The cable conduit smart lock opening method based on multiple verifications according to claim 2 is characterized in that: The user terminal device generates a comparison verification code according to the time period and a preset comparison verification code generation rule, including: The user terminal device calculates the timestamps corresponding to the front end time point and the back end time point of the time period, and integrates the value of the preset number of digits after the timestamp of the front end time point with the value of the preset number of digits after the timestamp of the back end time point to obtain a comparison check code.
4. The cable conduit smart lock opening method based on multiple verifications according to claim 2 is characterized in that: The code to be checked is updated every preset period, including: The smart key determines the time period of the next preset cycle at the end of the current preset cycle, generates a new code to be verified according to the time period of the cycle and a preset code to be verified generation rule, and updates the code to be verified corresponding to the current preset cycle to the new code to be verified. The preset code to be verified generation rule has the same logic as the preset comparison verification code generation rule.
5. The cable conduit smart lock opening method based on multiple verifications according to claim 1 is characterized in that: Before receiving the device authority verification result sent by the smart key, the method further includes: The smart key receives the unique identity code sent by the user terminal device, compares the unique identity code with a pre-stored comparison code, and determines the current time if the comparison is successful; The smart key compares the time with a plurality of pre-stored available time periods, and determines that the device authority verification result is verification passed if there is an available time period within which the time falls.
6. The cable duct intelligent lock opening system based on multiple verifications is characterized by: include: A key issuance verification module is used for the smart lock management device to receive the unique identity code sent by the user terminal device, and query whether the unique identity code exists in the pre-stored code information. If the unique identity code exists, the module determines the upper-level code of the unique identity code according to the pre-stored code information, and the pre-stored code information includes the hierarchical relationship between the pre-stored codes. The smart lock management device obtains the stored cable duct operation data uploaded by the user terminal device corresponding to the upper-level code, and determines that the key issuance authority verification is passed when the cable duct operation data indicates that the operation task has been completed; and determines that the key issuance authority verification is failed when the cable duct operation data indicates that the operation task has not been completed; and generates key data and sends it to the user terminal device when the key issuance authority verification is passed; An acquisition module is configured to receive, when a user terminal device receives key data issued by a smart lock management device and establishes a connection with a smart key, a code to be verified sent by the smart key and a time period for retaining the code to be verified, wherein the code to be verified is updated every preset period; A key identity authentication module, configured for the user terminal device to perform key identity authentication on the smart key according to the code to be verified and the time period; A receiving module, configured to receive a device authority verification result sent by the smart key; The key sending module is used to send the key data to the smart key by the user terminal device when the key identity authentication and the device authority verification results are both passed, so as to open the corresponding cable duct smart lock.
7. A cable duct smart lock opening device based on multiple verifications, the device comprising: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, so that the one or more processors implement the cable duct smart lock opening method based on multiple verifications as described in any one of claims 1-5.
8. A storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to execute the cable duct smart lock opening method based on multiple verifications according to any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent lock system and unlocking method of intelligent lock
CN107313660A
Intelligent passive wireless electronic lock control system and realization method thereof
CN109840976A