Anti-misoperation method, system and equipment for low-voltage electrical equipment and storage medium
The method of preventing misoperation of low-voltage electrical equipment through dynamic rules solves the problem of misoperation in the maintenance of low-voltage electrical equipment, realizes real-time status verification and dynamic rule updates, and improves the system's ability to prevent misoperation and its safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG NENGAN DIGITAL TECHNOLOGY CO LTD
- Filing Date
- 2025-11-12
- Publication Date
- 2026-04-21
AI Technical Summary
During the maintenance or repair of existing low-voltage electrical equipment, misoperation can easily occur, leading to equipment damage and personal safety accidents, especially when multiple devices are operated simultaneously, as there is a lack of effective methods and systems to prevent misoperation.
This paper provides a method for preventing misoperation of low-voltage electrical equipment based on dynamic rules. The method receives rule expressions through a human-computer interaction application, performs syntax and semantic verification, collects equipment status data, constructs a verification context, iterates through the rule expressions to perform Boolean evaluation, generates feedback results, realizes dynamic definition and hot update of rules, and ensures real-time status verification.
It enables accurate status acquisition during multi-device operation, reduces the risk of misoperation, improves the intelligence level and response speed of misoperation prevention, and ensures the safe and stable operation of the system.
Smart Images

Figure CN121900652A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of low-voltage electrical equipment control, and specifically to a method, system, device, and storage medium for preventing misoperation of low-voltage electrical equipment. Background Technology
[0002] Any voltage of 250V or below to ground is considered low voltage. Low-voltage electrical equipment typically refers to finished power distribution systems, such as control cabinets, compensation cabinets, incoming line cabinets, outgoing line cabinets, frequency converter control cabinets, and soft starter cabinets. In low-voltage electrical systems, especially during the maintenance or repair of distribution cabinets and switchgear, the operation of de-energizing and energizing the controlled equipment is a routine daily task, such as controlling circuit breakers, disconnecting switches, and grounding switches. However, these tasks usually require experienced technicians. Incorrect operating sequences, such as pulling a disconnect switch under load, accidentally closing a grounding switch, or energizing with the grounding switch on, can lead to serious equipment damage, personal injury accidents, and even power grid failures. Therefore, establishing a method and system to prevent misoperation, especially for simultaneous operation of multiple devices, is essential. Summary of the Invention
[0003] In order to solve the problems existing in the prior art, the present invention aims to provide a highly flexible, real-time and reliable method, system, device and storage medium for preventing misoperation of low-voltage electrical equipment based on dynamic rules.
[0004] In a first aspect, the present invention provides a method for preventing misoperation of low-voltage electrical equipment, applied to a human-computer interaction application, comprising: Receive rule expressions entered by the user in the rule configuration interface of the application; Syntax and semantic validation are performed based on the rule expression, and after the validation passes, it is stored in a persistent rule base. Collect real-time status data of low-voltage electrical equipment; Parse the string of the rule expression in the rule base and construct a validation context for evaluating the expression; Iterate through all the rule expressions associated with the current operation task and sequentially calculate the rule expressions in the constructed validation context; The Boolean expression is evaluated to obtain the verification result; Based on the verification results, the corresponding feedback result information is generated.
[0005] In one embodiment, the method further includes: In response to Boolean evaluation of the rule expression, if the evaluation result of any rule expression is false, short-circuit logic is immediately triggered to terminate the execution of all subsequent rule expressions, and the verification result is marked as failed. The first failed rule expression and its corresponding device are recorded. The verification result is considered passed only when all rule expressions are evaluated as true.
[0006] In one embodiment, the method further includes: In response to the verification result, if the verification passes, the power outage / restoration task can be submitted; if the verification fails, the user will be informed of the detailed reasons for the failure through a pop-up dialog box via the human-machine interface, including the specific rules violated and the real-time status of the device.
[0007] In one embodiment, the rule expression is a string based on a specific syntax, whose core elements include a device identifier, relational operators, and expected state values.
[0008] In one embodiment, the status data includes operating status, maintenance status, tripping status, and fault tripping status. Based on this, a global mapping table between device identifiers and real-time status values is constructed and maintained, and thresholds and anti-jitter mechanisms are set for status changes.
[0009] In one embodiment, the verification context is a memory object containing key-value pairs, which is constructed based on: automatically extracting all device identifiers contained in the rule expressions of the rule base to form a list of devices to be queried; and then retrieving the latest real-time status value corresponding to each device identifier from the global mapping table according to the list.
[0010] In one embodiment, the human-computer interaction application provides a dynamic rule update and hot-loading mechanism, so that the addition, deletion, modification and query operations of rules do not depend on restart or code modification and recompilation.
[0011] Secondly, the present invention provides a low-voltage electrical equipment anti-misoperation operating system, which applies the above-mentioned low-voltage electrical equipment anti-misoperation method, the system comprising: The rule configuration module is used to receive rule expressions input by the user, perform preliminary validation, and store them; The equipment status management module is used to acquire real-time status data of the low-voltage electrical equipment; An expression parsing module is used to parse the rule expression and convert it into an executable expression. The dynamic verification module is used to construct a verification context based on the executable expression and the real-time status data, and to perform Boolean evaluation on the executable expression in sequence. The result response module is used to send a verification pass instruction to the operation layer only when the Boolean evaluation of all the executable expressions is true; otherwise, it terminates immediately and reports the failed device and the violated rule expression.
[0012] Thirdly, the present invention provides a computer device, comprising: One or more processors; and One or more memories storing a computer-executable program, which, when executed by the processor, performs the aforementioned method for preventing misoperation of low-voltage electrical equipment.
[0013] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is run by a computer device, the computer device performs the steps of the aforementioned method for preventing misoperation of low-voltage electrical equipment.
[0014] Compared with the prior art, the beneficial effects of the technical solution of the present invention are: The low-voltage electrical equipment anti-misoperation method, system, device, and storage medium of the present invention realize the dynamic definition and hot update of anti-misoperation rules. It can adapt to various operating modes and new rule requirements without modifying the program code. It ensures that when power outage and restoration operations are performed, especially when multiple devices may be operated simultaneously, the latest real-time status of the relevant devices can be accurately obtained. Thus, it provides a lightweight and powerful device status verification mechanism based on expression language, improves the intelligence level and response speed of anti-misoperation, and reduces the risk of misoperation. Attached Figure Description
[0015] Figure 1 This is a flowchart of a method for preventing misoperation of low-voltage electrical equipment according to the present invention; Figure 2 This is a flowchart illustrating the verification process of a method for preventing misoperation of low-voltage electrical equipment according to the present invention. Figure 3 This is a schematic diagram of an anti-misoperation operating system for low-voltage electrical equipment according to the present invention. Detailed Implementation
[0016] The accompanying drawings are for illustrative purposes only and should not be construed as limiting the scope of this patent. To better illustrate this embodiment, some components in the drawings may be omitted, enlarged, or reduced, and do not represent the actual dimensions of the product. It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0017] In the description of the present invention, it should be noted that unless otherwise clearly specified and defined, the terms "installation" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be said that there is internal communication between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The technical solutions of the present invention will be further described below with reference to the accompanying drawings and embodiments.
[0018] As Figure 1 and Figure 2 shown, this embodiment provides a method for preventing misoperation of low-voltage electrical equipment, which is applied to a human-computer interaction application program and includes: Receiving a rule expression input by a user in the rule configuration interface of the application program; Based on the rule expression, performing syntax and semantic verification, and after passing the verification, storing it in a persistent rule library; Collecting real-time status data of low-voltage electrical equipment; Parsing the string of the rule expression in the rule library and constructing a verification context for expression evaluation; Traversing all the rule expressions associated with the current operation task, and sequentially performing the calculation of the rule expressions in the constructed verification context; Performing boolean evaluation on the rule expression to obtain a verification result; Executing according to the verification result and generating corresponding feedback result information.
[0019] The method provided is a highly flexible and real-time reliable method for preventing misoperation of low-voltage electrical equipment. Its core purpose is to achieve dynamic definition and hot update of misoperation prevention rules, ensure that when performing power-on and power-off operations, especially when multiple devices may be operated simultaneously, the latest real-time status of relevant devices can be accurately obtained, and avoid judgment deviations caused by delayed or invalid status information. On this basis, the method provides a lightweight and powerful device status verification mechanism based on expression language, allowing users to write complex status verification logics in a way close to natural language, which can quickly adapt to the status legality check of single devices and also meet the logical association verification of multi-device linkage operations, greatly improving the flexibility and coverage of misoperation prevention. Through the technical combination of rule dynamicization, status real-timeization, and verification flexibility, this method further improves the intelligent level and response speed of misoperation prevention, reduces the risk of human misoperation from the technical level, and provides a more reliable guarantee for the safe and stable operation of low-voltage electrical systems.
[0020] In one embodiment, the method further includes: in response to Boolean evaluation of the rule expressions, if the evaluation result of any rule expression is false, immediately triggering short-circuit logic, terminating the execution of all subsequent rule expressions, marking the verification result as a failure, and recording the first failed rule expression and its corresponding device; the verification result is only considered successful when all rule expressions are true. All rule expressions can only be executed when their Boolean evaluation is true, thus ensuring that all user-required rule expressions do not affect the operation of the original low-voltage electrical equipment, preventing erroneous operation or adverse effects. If a rule expression evaluates to false, it indicates that the operation will cause effects such as short circuits or abnormal circuit breaks on the existing low-voltage electrical equipment; therefore, execution must be immediately terminated, feedback sent to the user, and a modification requested.
[0021] In one embodiment, the method further includes: responding to the verification result, if the verification passes, allowing the submission of a power outage / restoration task; if the verification fails, providing the user with detailed reasons for the failure via a pop-up dialog box through a human-machine interface, including the specific rules violated and the real-time status of the equipment. After successful verification, the system can be configured with automatic response functions to sequentially execute the power outage / restoration task. If the verification fails, in addition to stopping the operation, feedback must be provided to the user, indicating the reason for the failure and the specific rules violated, and the real-time status of the relevant equipment must be displayed simultaneously to remind the user to reassess whether to execute the relevant operation, preventing errors and input mistakes.
[0022] Furthermore, the rule expression is a string based on a specific syntax, whose core elements include device identifiers, relational operators, and expected state values. Example: M_1 == 1 || M_2 == 1, to facilitate subsequent extraction of device identifiers and conversion into executable expressions. In addition, the real-time status data of low-voltage electrical equipment should at least include operating status (1), maintenance status (2), tripped status (0), and fault tripped status (-1). Based on this, a global mapping table between device identifiers and real-time status values is constructed and maintained, and thresholds and anti-bouncing mechanisms are set for status changes. For example, important normally open equipment is set to only be in operating status (1) and maintenance status (2), and cannot jump to fault tripped status (-1) without cause. Based on this, the above-mentioned verification context is a memory object containing key-value pairs, where the key is the device identifier, such as K_1_411; and the value is the device status, such as 2=maintenance, 1=operating. Its foundation is: automatically extracting all device identifiers contained in the rule expressions of the rule base to form a list of devices to be queried; and then, based on the list, retrieving the latest real-time status value corresponding to each device identifier from the global mapping table.
[0023] Furthermore, the human-computer interaction application provides a dynamic rule update and hot-loading mechanism. Adding, deleting, modifying, and querying rules do not require restarting or modifying and recompiling the code. The main method involves inputting and extracting real-time status, performing comprehensive verification, and only returning the result to the system for execution after successful verification. This allows it to adapt to various operating modes and new rule requirements without modifying the original low-voltage electrical system's program code, and it also allows rule iteration to be completed without interrupting system operation, adapting to various scenario changes such as field equipment modification and operational process optimization.
[0024] In summary, existing equipment rule updates require system downtime and lack methods to prevent misoperation. The dynamic rule-based method for preventing misoperation of low-voltage electrical equipment adopted in this embodiment is implemented through the following steps: S1. Receive the anti-mistake rule expression input by the user through the rule configuration interface. The rule expression is a string based on a specific syntax, and its core elements include device identifier, relational operator and expected state value. S2. Perform syntax and semantic validation on the rule expression. After the validation is passed, store it in the persistent rule base. The system provides a dynamic rule update and hot reloading mechanism. The addition, deletion, modification and query operations of rules do not depend on system restart or modification and recompilation of application code. S3. Periodically or event-triggeredly, collect real-time status data of low-voltage electrical equipment from the status feedback of the monitoring and data acquisition system, IoT sensors, or interlocking devices when power outage and restoration tasks are performed. The status data includes at least the operating status, maintenance status, tripping status, and fault tripping status. S4. Construct and maintain a global mapping table (Key-Value Map) between device identifiers and real-time status values, and set thresholds and debouncing mechanisms for status changes to ensure data accuracy and stability. Through the embedded expression parsing engine, parse the rule expression strings in the rule base, automatically extract all device identifiers contained in the rule expressions to form a list of devices to be queried. Then, based on this list, retrieve the latest real-time status value corresponding to each device identifier from the global mapping table, and construct a validation context (EvaluationContext) for evaluating the rule expressions. This context is an in-memory object containing key-value pairs. S5. After the initial verification result is marked as passed, iterate through all rule expressions associated with the current operation task and sequentially execute the rule expression calculation in the constructed verification context; S6. The expression engine performs Boolean evaluation on the rules. If any expression evaluates to false, short-circuit logic is immediately triggered, terminating the execution of all subsequent rule expressions, and marking the validation result as a failure. The first failed rule expression and its corresponding device identifier are recorded. The validation result is only considered successful when all rule expressions evaluate to true. S7. Based on the verification result of step S6, generate corresponding feedback result information: if the verification passes, the power outage and restoration task can be submitted; if the verification fails, the user is given detailed feedback on the failure reason through the human-machine interface in the form of a pop-up dialog box, including the specific rules violated and the real-time status of the equipment.
[0025] like Figure 3 As shown, this embodiment provides a low-voltage electrical equipment anti-misoperation operating system. Applying the aforementioned low-voltage electrical equipment anti-misoperation method, the system includes: The rule configuration module receives rule expressions input by the user, performs preliminary validation, and stores them. The rule configuration module provides a rule editor interface, supports dynamic definition of rule expressions, and the rule expression storage format includes device identifier, relational operators, and expected state values. The equipment status management module is used to acquire real-time status data of low-voltage electrical equipment, such as circuit breakers and disconnect switches, and maintain the status mapping of the equipment. It contains key-value pairs, where the key is the equipment identifier, such as K_1_411; and the value is the equipment status, such as 2=maintenance, 1=operation. The expression parsing module is used to parse regular expressions and convert them into executable expressions. It is based on the Spring EL expression language, a lightweight Inversion of Control (IoC) and Aspect-Oriented Programming (AOP) container framework created to address the complexity of software development. This module supports complex device names such as K_1_411, validates device identifier formats (including initial letters, allowing only letters, numbers, underscores, and hyphens), and ultimately converts regular expressions into executable expressions. The dynamic validation module is used to construct a validation context based on executable expressions and real-time status data, and to perform Boolean evaluation on the executable expressions in sequence; it also validates the loaded rule expressions associated with the device and returns a Boolean value. The result response module enables logical aggregation, which sends a valid verification instruction to the operation layer only when all executable expressions evaluate to true; otherwise, it terminates immediately and reports the failed device and the violated rule expression.
[0026] This embodiment also provides a computer device, including a processor and a memory, wherein the memory stores a computer-executable program. When the processor executes the computer-executable program, the aforementioned method for preventing misoperation of low-voltage electrical equipment is performed. The specific execution process can be referred to the above steps, and will not be repeated here.
[0027] This embodiment also provides a computer-readable storage medium storing a computer program. When the computer program is run by a computer device, the computer device performs the steps of the aforementioned method for preventing misoperation of low-voltage electrical equipment. The storage medium can be either volatile or non-volatile computer-readable storage.
[0028] This embodiment also provides a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the low-voltage electrical equipment anti-misoperation method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0029] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0030] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0031] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0032] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0033] The positional relationships described in the figures are for illustrative purposes only and should not be construed as limiting this patent. Clearly, the above embodiments of the present invention are merely examples to clearly illustrate the invention and are not intended to limit the implementation of the invention. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of this invention.
Claims
1. A method for preventing misoperation of low-voltage electrical equipment, characterized in that, Used in human-computer interaction applications, including: Receive rule expressions entered by the user in the rule configuration interface of the application; Syntax and semantic validation are performed based on the rule expression, and after the validation passes, it is stored in a persistent rule base. Collect real-time status data of low-voltage electrical equipment; Parse the string of the rule expression in the rule base and construct a validation context for evaluating the expression; Iterate through all the rule expressions associated with the current operation task and sequentially calculate the rule expressions in the constructed validation context; The Boolean expression is evaluated to obtain the verification result; Based on the verification results, the corresponding feedback result information is generated.
2. The method for preventing misoperation of low-voltage electrical equipment according to claim 1, characterized in that, The method further includes: In response to Boolean evaluation of the rule expression, if the evaluation result of any rule expression is false, short-circuit logic is immediately triggered to terminate the execution of all subsequent rule expressions, and the verification result is marked as failed. The first failed rule expression and its corresponding device are recorded. The verification result is considered passed only when all rule expressions are evaluated as true.
3. The method for preventing misoperation of low-voltage electrical equipment according to claim 2, characterized in that, The method further includes: In response to the verification result, if the verification passes, the power outage / restoration task can be submitted; if the verification fails, the user will be informed of the detailed reasons for the failure through a pop-up dialog box via the human-machine interface, including the specific rules violated and the real-time status of the device.
4. The method for preventing misoperation of low-voltage electrical equipment according to claim 3, characterized in that, The rule expression is a string based on a specific syntax, and its core elements include device identifiers, relational operators, and expected state values.
5. The method for preventing misoperation of low-voltage electrical equipment according to claim 4, characterized in that, The status data includes operating status, maintenance status, tripping status, and fault tripping status. Based on this, a global mapping table between device identifiers and real-time status values is constructed and maintained, and thresholds and anti-jitter mechanisms are set for status changes.
6. The method for preventing misoperation of low-voltage electrical equipment according to claim 5, characterized in that, The verification context is a memory object containing key-value pairs, which is constructed based on: automatically extracting all device identifiers contained in the rule expressions of the rule base to form a list of devices to be queried; and then retrieving the latest real-time status value corresponding to each device identifier from the global mapping table according to the list.
7. The method for preventing misoperation of low-voltage electrical equipment according to claim 6, characterized in that, The human-computer interaction application provides a dynamic rule update and hot-loading mechanism, and the operation of adding, deleting, modifying and querying rules does not depend on restarting or modifying and recompiling the code.
8. A low-voltage electrical equipment anti-misoperation operating system, characterized in that, The system, which employs the method for preventing misoperation of low-voltage electrical equipment as described in any one of claims 1-7, comprises: The rule configuration module is used to receive rule expressions input by the user, perform preliminary validation, and store them; The equipment status management module is used to acquire real-time status data of the low-voltage electrical equipment; An expression parsing module is used to parse the rule expression and convert it into an executable expression. The dynamic verification module is used to construct a verification context based on the executable expression and the real-time status data, and to perform Boolean evaluation on the executable expression in sequence. The result response module is used to send a verification pass instruction to the operation layer only when the Boolean evaluation of all the executable expressions is true; otherwise, it terminates immediately and reports the failed device and the violated rule expression.
9. A computer device, characterized in that, include: One or more processors; as well as One or more memories storing a computer-executable program that, when executed by the processor, performs a method for preventing misoperation of low-voltage electrical equipment as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is run by a computer device, the computer device performs the steps of the method for preventing misoperation of low-voltage electrical equipment as described in any one of claims 1-7.