Cryptographic lock control method and device of electrical automation equipment, electronic equipment and storage medium

By selecting online or offline unlocking strategies based on communication status in electrical automation equipment, and using communication relay stations and random code generators for authentication, the inconvenience and security risks of traditional mechanical locks and combination locks are solved, thereby improving the security of the equipment.

CN118280020BActive Publication Date: 2026-06-09WUHU DONGXU OPTOELECTRONICS EQUIP TECH +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHU DONGXU OPTOELECTRONICS EQUIP TECH
Filing Date
2024-03-11
Publication Date
2026-06-09

Smart Images

  • Figure CN118280020B_ABST
    Figure CN118280020B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, electronic device, and storage medium for controlling a combination lock on an electrical automation device. The method includes: responding to a combination lock unlocking command sent by a user terminal; acquiring a first communication state between the target electrical automation device to be unlocked and a device control center; determining an unlocking strategy for a target combination lock on the target electrical automation device based on the first communication state; and controlling the target combination lock based on the unlocking strategy. Thus, different online or offline unlocking methods are selectively adopted according to the communication state between the electrical automation device and the control center, and a series of security verification conditions are set for offline unlocking to ensure the security of the electrical automation device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical automation equipment safety technology, and in particular to a method, device, electronic device and storage medium for controlling a password lock on an electrical automation equipment. Background Technology

[0002] With the development of automation technology, electrical automation equipment is widely used in various fields such as industry and agriculture, and is closely related to industrial production.

[0003] Currently, the vast majority of electrical automation equipment still uses traditional mechanical locks for security management. Mechanical locks present significant inconvenience and security risks. In emergencies, if the administrator does not have the key with them, unnecessary property loss may occur; conversely, if the administrator's key is stolen and misused, it could also cause substantial property damage and security risks. Therefore, replacing the mechanical locks on electrical automation equipment with combination locks can improve the equipment's security.

[0004] However, during use, combination locks may still pose security risks due to issues such as going offline, password theft, or the user not having the corresponding unlocking authority. Summary of the Invention

[0005] In view of this, in order to solve the above-mentioned technical problems or some of the technical problems, the embodiments of this application provide a method, device, electronic device and storage medium for controlling a password lock in an electrical automation device.

[0006] In a first aspect, this application provides a method for controlling a password lock in an electrical automation device, comprising:

[0007] In response to the password lock opening command sent by the user terminal, the first communication status between the target electrical automation equipment to be unlocked and the equipment control center is obtained;

[0008] Based on the first communication state, determine the unlocking strategy of the target combination lock on the target electrical automation equipment;

[0009] Control the target combination lock based on the unlocking strategy.

[0010] In one possible implementation, the method further includes:

[0011] If the first communication state indicates that a communication connection exists, then the unlocking strategy of the target combination lock is determined to be online unlocking;

[0012] If the first communication state is no communication connection, then the unlocking strategy of the target combination lock is determined to be offline unlocking.

[0013] In one possible implementation, the method further includes:

[0014] If the unlocking strategy is offline unlocking, then obtain the second communication status of other electrical automation equipment that has already established a communication connection with the equipment control center;

[0015] Query the pre-stored location coordinates of all electrical automation equipment;

[0016] Based on location coordinate information, other electrical automation devices that have a communication connection in the second communication state and are closest to the target electrical automation device are used as communication relay stations;

[0017] Control of the target combination lock is achieved through a communication relay station.

[0018] In one possible implementation, the method further includes:

[0019] Establish a communication connection between the communication relay station and the target electrical automation equipment;

[0020] Use a random code generator to generate a first random password and a first random verification code;

[0021] Through the communication connection between the communication relay station and the target electrical automation equipment, a first random verification code is sent to the target electrical automation equipment to turn on the corresponding indicator light of the PLC controller set on the target electrical automation equipment;

[0022] Furthermore, based on the password lock unlocking command sent by the user terminal, the electronic terminal corresponding to the current user is determined, and a first random password is sent to the electronic terminal.

[0023] In one possible implementation, the method further includes:

[0024] The receiver receives a second password sent by the user terminal, which is a combination of the first random verification code and the original password according to a preset rule, and also receives a second random password sent by the user terminal.

[0025] Compare the second random password with the first random password to see if they are the same, and verify the second password;

[0026] If the second random password is the same as the first random password, and the second password is verified, then the target password lock is opened based on the second password, and access control is applied to the current user.

[0027] In one possible implementation, the method further includes:

[0028] If the unlocking strategy is online unlocking, the original password is obtained through the user terminal, which includes an electronic terminal or a combination lock control panel.

[0029] The original password is verified, and the user's operation permissions are determined based on the original password after the verification is successful.

[0030] Based on access permissions, unlock and control the target combination lock.

[0031] In one possible implementation, the method further includes:

[0032] Each user's identity information, along with their original password and access permissions, are pre-stored in a chain on the cloud storage terminal.

[0033] The user's identity information is determined based on the original password entered by the user.

[0034] Determine the current user's operating permissions based on their identity information.

[0035] Secondly, this application provides a combination lock control device for electrical automation equipment, comprising:

[0036] The response acquisition module is used to respond to the password lock opening command sent by the user terminal and acquire the first communication status between the target electrical automation equipment to be unlocked and the equipment control center;

[0037] The determination module is used to determine the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication state;

[0038] The control module is used to control the target combination lock based on the unlocking strategy.

[0039] Thirdly, this application provides an electronic device, including a processor and a memory, wherein the processor is configured to execute a password lock control program for an electrical automation device stored in the memory, so as to implement the password lock control method for the electrical automation device described in the first aspect above.

[0040] Fourthly, this application provides a storage medium, comprising: the storage medium storing one or more programs, which can be executed by one or more processors to implement the password lock control method for electrical automation equipment described in the first aspect above.

[0041] The combination lock control scheme for electrical automation equipment provided in this application responds to a combination lock opening command sent by the user terminal, obtains the first communication status between the target electrical automation equipment to be unlocked and the equipment control center; based on the first communication status, determines the unlocking strategy of the target combination lock on the target electrical automation equipment; and controls the target combination lock based on the unlocking strategy. Compared with existing electrical automation equipment, which may encounter security risks such as offline operation, password theft, and mismatch between user permissions and identities during combination lock use, this scheme selectively adopts different online or offline unlocking methods based on the communication status between the electrical automation equipment and the control center, and sets a series of security verification conditions for offline unlocking to ensure the security of the electrical automation equipment. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 A flowchart illustrating a password lock control method for electrical automation equipment provided in this application embodiment;

[0045] Figure 2 A flowchart illustrating a method for controlling a password lock in the offline state of an electrical automation device, as provided in an embodiment of this application;

[0046] Figure 3 A schematic diagram of the interface of a combination lock control panel provided in an embodiment of this application;

[0047] Figure 4 This is a schematic diagram of the structure of a combination lock control device for electrical automation equipment provided in an embodiment of this application;

[0048] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0050] To facilitate understanding of the embodiments of this application, the following will provide further explanation and description with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this application.

[0051] Figure 1 This application provides a flowchart illustrating a method for controlling a combination lock in an electrical automation device, as shown in the embodiments below. Figure 1 As shown, the method specifically includes:

[0052] S11. In response to the password lock opening command sent by the user terminal, obtain the first communication status between the target electrical automation equipment to be unlocked and the equipment control center.

[0053] In this embodiment of the application, when a user (e.g., an equipment administrator) wants to open a target electrical automation device, if the user and the target electrical automation device are on the same site, they can directly access it through the control panel of the password lock on the device, such as... Figure 3 As shown, the "Enter Password" command (password lock opening command) is triggered; or, if the user and the target electrical automation equipment are not in the same location, the password lock opening command can be sent to the equipment control center via an electronic terminal (e.g., mobile phone, computer, etc.).

[0054] Furthermore, in response to the lock opening command sent via the two user terminals mentioned above, the control center sends a random message to the target electrical automation equipment to be unlocked to obtain the first communication status between the target electrical automation equipment and the control center. The first communication status includes whether a communication connection exists or not, i.e., whether the target lock of the target electrical automation equipment is online or offline. If the control center receives a return message from the target electrical automation equipment in response to the random message, it indicates that the first communication status is that a communication connection exists, i.e., the target lock of the target electrical automation equipment is online. If the control center does not receive a return message from the target electrical automation equipment in response to the random message within a preset time period, it indicates that the first communication status is that a communication connection does not exist, i.e., the target lock of the target electrical automation equipment is offline.

[0055] S12. Based on the first communication state, determine the unlocking strategy of the target combination lock on the target electrical automation equipment.

[0056] In this embodiment, different first communication states can be pre-set to correspond to different unlocking strategies for the target combination lock. For example, if the first communication state is that a communication connection exists, the unlocking strategy for the target combination lock is determined to be online unlocking; if the first communication state is that a communication connection does not exist, the unlocking strategy for the target combination lock is determined to be offline unlocking.

[0057] S13. Control the target combination lock based on the unlocking strategy.

[0058] If the unlocking strategy is online unlocking, the target combination lock can be opened according to the online unlocking scheme. If the unlocking strategy is offline unlocking, a series of security verifications, including identity verification and password verification, will be performed on the current user according to the offline unlocking scheme. The target combination lock will be opened only after the security verifications are successful. Specific control methods for the target combination lock are detailed in [link to details]. Figure 2 The corresponding embodiments are described in detail, and will not be elaborated here.

[0059] The combination lock control method for electrical automation equipment provided in this application responds to a combination lock opening command sent by a user terminal, obtains the first communication status between the target electrical automation equipment to be unlocked and the equipment control center; determines the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication status; and controls the target combination lock based on the unlocking strategy. Compared with existing electrical automation equipment, which may encounter security risks such as offline operation, password theft, and mismatch between user permissions and identities during combination lock use, this method selectively adopts different online or offline unlocking methods according to the communication status between the electrical automation equipment and the control center, and sets a series of security verification conditions for offline unlocking to ensure the security of the electrical automation equipment.

[0060] Figure 2 This is a flowchart illustrating a method for controlling a password lock in the offline state of electrical automation equipment, as provided in an embodiment of this application. Figure 2 As shown, the method specifically includes:

[0061] S21. If the unlocking strategy is offline unlocking, then obtain the second communication status of other electrical automation devices that have established a communication connection with the equipment control center.

[0062] In this embodiment, the identity information of each user (e.g., device administrator, security officer, user with unlocking authority, etc.) and the corresponding original password and operation permissions (e.g., unlocking permission, password modification permission, etc.) can be pre-stored in a chain on a cloud storage terminal. The blockchain, being immutable, ensures information security by storing each user's identity information and corresponding original password and operation permissions within it, using encryption methods and access control mechanisms. Furthermore, the user's identity information can be determined based on the original password entered by the user; and the user's operation permissions can be determined based on the identity information.

[0063] Furthermore, through the above Figure 1 After determining that the unlocking strategy is offline unlocking, the method described herein sends random messages to other electrical automation devices that have already established a communication connection with the equipment control center to obtain the second communication status of the other electrical automation devices. The second communication status includes whether a communication connection exists or not.

[0064] S22. Query the location coordinate information of all pre-stored electrical automation equipment.

[0065] S23. Based on the location coordinate information, other electrical automation devices that have a communication connection in the second communication state and are closest to the target electrical automation device are used as communication relay stations.

[0066] In this embodiment, the location coordinates of all electrical automation devices corresponding to the control center can be stored in advance on the cloud storage terminal. After obtaining the second communication status of other electrical automation devices, the location coordinates of all electrical automation devices stored on the cloud storage terminal can be queried.

[0067] Other electrical automation devices that have a communication connection in the second communication state and whose location coordinates are closest to the target electrical automation device are used as communication relay stations.

[0068] S24. Establish a communication connection between the communication relay station and the target electrical automation equipment.

[0069] In this embodiment, all electrical automation devices are also connected by communication. After confirming the communication relay station, the device control center can send a communication connection establishment command to the communication relay station to establish a communication connection between the communication relay station and the target electrical automation device. The communication connection establishment command carries a communication connection establishment password. After receiving the communication connection establishment command, the communication relay station sends the communication connection establishment password to the target electrical automation device, so that the target electrical automation device can establish a communication connection with the communication relay station based on the communication connection establishment password.

[0070] S25. Use a random code generator to generate a first random password and a first random verification code.

[0071] The equipment control center is equipped with a random code generator, which can generate random passwords and random verification codes. The random password is used to verify the current user's identity and generate a new password, while the random verification code is used to activate the corresponding indicator light on the PLC controller of the target electrical automation equipment, allowing the current user to recompile a new unlocking password based on the indicator light.

[0072] S26. Through the communication connection between the communication relay station and the target electrical automation equipment, send the first random verification code to the target electrical automation equipment to turn on the corresponding indicator light of the PLC controller set on the target electrical automation equipment.

[0073] In this embodiment, the corresponding indicator light of the PLC controller can be a light box composed of multiple lights, for example, a total of 10 lights, each light corresponding to a number. The number of lights that are lit indicates which number, and the lighting order is consistent with the random verification code. For example, if the random verification code is 4356, then the light representing the number 4 will flash first, then the light representing the number 3 will flash, then the light representing the number 5 will flash, and finally the light representing the number 6 will flash.

[0074] Alternatively, if it's a 4x10 lightbox, each row of lights corresponds to the numbers 1-10, and the lit light indicates which number it represents. For example, if the random verification code is 4356, then the fourth light in the first row will be lit, the third light in the second row will be lit, the fifth light in the third row will be lit, and the sixth light in the fourth row will be lit.

[0075] This allows the current user to clearly know the first random verification code.

[0076] S27. Furthermore, based on the password lock opening command sent by the user terminal, the electronic terminal corresponding to the current user is determined, and a first random password is sent to the electronic terminal.

[0077] In this embodiment, the user sends a password lock unlocking command to the device control center via an electronic terminal (e.g., mobile phone, computer, etc.). This unlocking command may carry terminal device information of the electronic terminal. Based on this information, the device control center sends a first random password generated by a random code generator to the electronic terminal corresponding to the current user. In this case, if an unauthorized user maliciously unlocks the lock, they will not see the first random password because they do not have an electronic terminal, thus mitigating security risks.

[0078] S28. Receive a second password sent by the user terminal, which is a combination of the first random verification code and the original password according to a preset rule, and receive the second random password sent by the user terminal.

[0079] In this embodiment, a new password generation rule can be preset. For example, the first two digits (43) of the first random verification code (4356) can be combined with the original password (8975) and the last two digits (56) of the first random verification code to generate a second password (43897556). Furthermore, after the current user's electronic terminal receives the first random password sent by the device control center, the user re-enters the first random password through the electronic terminal, and the electronic terminal sends the first random password (second random password) entered by the user to the device control center.

[0080] S29. Compare whether the second random password is the same as the first random password, and verify the second password.

[0081] The equipment control center compares the second random password with the first random password to see if they are the same, and verifies whether the second password is formed by combining the first random verification code and the original password according to preset rules.

[0082] S210. If the second random password is the same as the first random password, and the second password is verified, then the target password lock is opened based on the second password and access control is applied to the current user.

[0083] If the second random password is the same as the first random password, and the second password is verified, the target password lock is opened based on the second password, and access control is applied to the current user. Specifically, access control is applied to the current user based on their assigned operation permissions according to their identity information.

[0084] It should be noted that in the above-mentioned method for controlling the password lock in the offline state of electrical automation equipment, if the password or verification code fails to pass verification at any stage, the unlocking process can be terminated and an alarm can be triggered.

[0085] In another embodiment of this application, a method for controlling a combination lock in the online state of electrical automation equipment is also provided, comprising: if the unlocking strategy is online unlocking, obtaining the original password through a user terminal, wherein the user terminal includes an electronic terminal or a combination lock control panel; verifying the original password, and after the original password is verified, determining the current user's operating permissions based on the original password; and unlocking and controlling the target combination lock based on the operating permissions. When the user enters the original password incorrectly a predetermined number of times, the unlocking process can be terminated and an alarm can be triggered. After one incorrect entry of the original password, a facial recognition function can also be added to ensure that the current user is a legitimate user.

[0086] The combination lock control method for electrical automation equipment provided in this application responds to a combination lock opening command sent by a user terminal, obtains the first communication status between the target electrical automation equipment to be unlocked and the equipment control center; determines the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication status; and controls the target combination lock based on the unlocking strategy. Compared with existing electrical automation equipment, which may encounter security risks such as offline operation, password theft, and mismatch between user permissions and identities during combination lock use, this method selectively adopts different online or offline unlocking methods according to the communication status between the electrical automation equipment and the control center, and sets a series of security verification conditions for offline unlocking to ensure the security of the electrical automation equipment.

[0087] Figure 4 A schematic diagram of a combination lock control device for electrical automation equipment provided in this application embodiment, specifically including:

[0088] The response acquisition module 401 is used to respond to the password lock opening command sent by the user terminal and acquire the first communication status between the target electrical automation equipment to be unlocked and the equipment control center.

[0089] The determining module 402 is used to determine the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication state;

[0090] The control module 403 is used to control the target combination lock based on the unlocking strategy.

[0091] In one possible implementation, the determining module 402 is specifically configured to determine the unlocking strategy of the target combination lock as online unlocking if the first communication state is that a communication connection exists; and to determine the unlocking strategy of the target combination lock as offline unlocking if the first communication state is that a communication connection does not exist.

[0092] In one possible implementation, the determining module 402 is further configured to pre-store each user's identity information, corresponding original password, and operation permissions in a chain on the cloud storage terminal; determine the current user's identity information based on the original password entered by the user terminal; and determine the current user's operation permissions based on the identity information.

[0093] In one possible implementation, the control module 403 is specifically configured to, if the unlocking strategy is offline unlocking, obtain the second communication status of other electrical automation devices that have established a communication connection with the device control center; query the location coordinate information of all pre-stored electrical automation devices; based on the location coordinate information, designate the other electrical automation devices with a second communication status that have a communication connection and are closest to the target electrical automation device as communication relay stations; and control the target combination lock based on the communication relay stations.

[0094] In one possible implementation, the control module 403 is further configured to establish a communication connection between the communication relay station and the target electrical automation equipment; generate a first random password and a first random verification code using a random code generator; send the first random verification code to the target electrical automation equipment through the communication connection between the communication relay station and the target electrical automation equipment to turn on the corresponding indicator light of the PLC controller installed on the target electrical automation equipment; and determine the electronic terminal corresponding to the current user based on the password lock opening command sent by the user terminal, and send the first random password to the electronic terminal.

[0095] In one possible implementation, the control module 403 is further configured to receive a second password sent by the user terminal, which is a combination of the first random verification code and the original password according to a preset rule, and to receive the second random password sent by the user terminal; compare whether the second random password and the first random password are the same, and verify the second password; if the second random password and the first random password are the same, and the second password is verified, then the target password lock is opened based on the second password and the current user's access is controlled.

[0096] In one possible implementation, the control module 403 is further configured to, if the unlocking strategy is online unlocking, obtain the original password through the user terminal, wherein the user terminal includes an electronic terminal or a combination lock control panel; verify the original password, and after the original password is verified, determine the current user's operation permissions based on the original password; and unlock and control the target combination lock based on the operation permissions.

[0097] The combination lock control device for electrical automation equipment provided in this embodiment can be as follows: Figure 4 The password lock control device of the electrical automation equipment shown can perform actions such as Figure 1-2 All steps of the password lock control method for electrical automation equipment, thereby achieving... Figure 1-2 For details on the technical effects of the password lock control method for the electrical automation equipment shown, please refer to [link / reference needed]. Figure 1-2 The relevant descriptions are presented concisely and will not be elaborated upon here.

[0098] like Figure 5 As shown in the figure, this application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0099] Memory 113 is used to store computer programs;

[0100] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the password lock control method for electrical automation equipment provided in any of the foregoing method embodiments, including:

[0101] In response to the lock unlocking command sent by the user terminal, the system obtains the first communication status between the target electrical automation equipment to be unlocked and the equipment control center; based on the first communication status, it determines the unlocking strategy of the target lock on the target electrical automation equipment; and based on the unlocking strategy, it controls the target lock.

[0102] In one possible implementation, if the first communication state is that a communication connection exists, the unlocking strategy of the target combination lock is determined to be online unlocking; if the first communication state is that a communication connection does not exist, the unlocking strategy of the target combination lock is determined to be offline unlocking.

[0103] In one possible implementation, if the unlocking strategy is offline unlocking, the second communication status of other electrical automation devices that have established a communication connection with the equipment control center is obtained; the location coordinate information of all pre-stored electrical automation devices is queried; based on the location coordinate information, the other electrical automation device with a second communication status that has a communication connection and is closest to the target electrical automation device is used as a communication relay station; and the target combination lock is controlled based on the communication relay station.

[0104] In one possible implementation, a communication connection is established between a communication relay station and the target electrical automation equipment; a first random password and a first random verification code are generated using a random code generator; the first random verification code is sent to the target electrical automation equipment through the communication connection between the communication relay station and the target electrical automation equipment to turn on the corresponding indicator light of the PLC controller installed on the target electrical automation equipment; and, based on the password lock opening command sent by the user terminal, the electronic terminal corresponding to the current user is determined, and the first random password is sent to the electronic terminal.

[0105] In one possible implementation, the system receives a second password sent by the user terminal, which is a combination of a first random verification code and the original password according to a preset rule, and also receives a second random password sent by the user terminal; it compares whether the second random password and the first random password are the same, and verifies the second password; if the second random password and the first random password are the same, and the second password is verified, the system unlocks the target password lock based on the second password and performs access control on the current user.

[0106] In one possible implementation, if the unlocking strategy is online unlocking, the original password is obtained through the user terminal, which includes an electronic terminal or a combination lock control panel; the original password is verified, and after the original password is verified, the current user's operation permissions are determined based on the original password; the target combination lock is unlocked and controlled based on the operation permissions.

[0107] In one possible implementation, each user's identity information, along with their corresponding original password and operating permissions, are pre-stored in a chain on a cloud storage terminal; the current user's identity information is determined based on the original password entered by the user; and the current user's operating permissions are determined based on the identity information.

[0108] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the password lock control method for electrical automation equipment as provided in any of the foregoing method embodiments.

[0109] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0110] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for controlling a combination lock in an electrical automation device, characterized in that, include: In response to the password lock opening command sent by the user terminal, the first communication status between the target electrical automation equipment to be unlocked and the equipment control center is obtained; Based on the first communication state, determine the unlocking strategy of the target combination lock on the target electrical automation equipment; Based on the unlocking strategy, the target combination lock is controlled; The step of determining the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication state includes: If the first communication state indicates that a communication connection exists, then the unlocking strategy of the target combination lock is determined to be online unlocking; If the first communication state is no communication connection, then the unlocking strategy of the target combination lock is determined to be offline unlocking; The control of the target combination lock based on the unlocking strategy includes: If the unlocking strategy is offline unlocking, then obtain the second communication status of other electrical automation devices that have already established a communication connection with the device control center; Query the pre-stored location coordinates of all electrical automation equipment; Based on the location coordinate information, other electrical automation devices that have a communication connection in the second communication state and are closest to the target electrical automation device are designated as communication relay stations; The target combination lock is controlled based on the communication relay station; The control of the target combination lock based on the communication relay station includes: Establish a communication connection between the communication relay station and the target electrical automation equipment; Use a random code generator to generate a first random password and a first random verification code; Through the communication connection between the communication relay station and the target electrical automation equipment, the first random verification code is sent to the target electrical automation equipment to turn on the corresponding indicator light of the PLC controller installed on the target electrical automation equipment; Furthermore, based on the password lock unlocking command sent by the user terminal, the electronic terminal corresponding to the current user is determined, and the first random password is sent to the electronic terminal; The method further includes: Receive a second password sent by the user terminal, which is a combination of the first random verification code and the original password according to a preset rule, and receive a second random password sent by the user terminal; Compare whether the second random password and the first random password are the same, and verify the second password; If the second random password is the same as the first random password, and the second password is verified, then the target password lock is opened based on the second password, and access control is applied to the current user.

2. The method according to claim 1, characterized in that, The control of the target combination lock based on the unlocking strategy includes: If the unlocking strategy is online unlocking, the original password is obtained through the user terminal, wherein the user terminal includes an electronic terminal or a combination lock control panel; The original password is verified, and after the original password is verified, the current user's operation permissions are determined based on the original password; Based on the aforementioned operating permissions, the target combination lock is unlocked and controlled.

3. The method according to claim 1, characterized in that, The method further includes: Each user's identity information, along with their original password and access permissions, are pre-stored in a chain on the cloud storage terminal. The user's identity information is determined based on the original password entered by the user. The user's access permissions are determined based on the identity information.

4. A combination lock control device for electrical automation equipment, employing the combination lock control method for electrical automation equipment as described in any one of claims 1-3, characterized in that, include: The response acquisition module is used to respond to the password lock opening command sent by the user terminal and acquire the first communication status between the target electrical automation equipment to be unlocked and the equipment control center; The determining module is used to determine the unlocking strategy of the target combination lock on the target electrical automation equipment based on the first communication state; The control module is used to control the target combination lock based on the unlocking strategy.

5. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute a password lock control program for an electrical automation device stored in the memory, to implement the password lock control method for an electrical automation device as described in any one of claims 1 to 3.

6. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the password lock control method for electrical automation equipment as described in any one of claims 1 to 3.