Adaptive relay protection test method and system based on IED model

CN119692276APending Publication Date: 2025-03-25WUZHONG POWER SUPPLY COMPANY STATE GRID NINGXIA ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411741359.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The existing automatic test equipment is not very automated, and it is impossible to generate customized test reports. It is not adaptable to the operating parameters of different substations, which increases labor costs and test case modification work.

Method used

Adaptive relay protection testing methods and systems based on IED models are adopted to connect to the device under test by configuring communication protocols, analyzing the basic information of the SCD file, establishing the device model, and automatically generating test cases, generating reports, and managing potential defects.

Benefits of technology

It improves the accuracy, efficiency, flexibility and user-friendliness of the test, reduces labor costs and testing time, adapts to relay protection devices of different models and manufacturers, and realizes convenient test operations and result analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692276A_ABST
    Figure CN119692276A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of power system relay protection, and more specifically relates to an adaptive relay protection test method and system based on an IED model, and the method comprises the following steps: establishing a connection with a tested relay protection device IED through configuring a communication protocol, analyzing and obtaining the basic information of an SCD file of the tested device IED, establishing a device model, and carrying out the analysis of the SCD file of the tested device IED; the method comprises the following steps: acquiring an equipment model, loading the equipment model into an automatic test system, after test environment initialization is completed, analyzing an SCD configuration file of the IED equipment, matching the SCD configuration file with a corresponding rule script, searching a logic node, and automatically generating a test case; executing the test case generated in the step S2 in a module-based test framework of the automatic test system; after the automatic test system completes test execution, the defect management subsystem analyzes the test data, generates a report and manages potential defects; according to the concepts of user use habits, interface friendliness and the like, automatic test tool main interface design is carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of relay protection of power systems, and more specifically, relates to an adaptive relay protection test method and system based on an IED model. Background Art

[0002] With the rapid development of my country's power system, the scale of the power grid continues to expand, and the number of new, rebuilt and expanded substations continues to grow. During the operation of electrical equipment, secondary equipment failures may have a serious impact on primary equipment. Among the secondary equipment of substations, relay protection devices are one of the important components. They are responsible for troubleshooting power system failures or situations and hidden dangers that may harm normal operation. Therefore, the installation, commissioning, operation and maintenance of secondary equipment have also become important and relatively frequent tasks.

[0003] Since the State Grid Corporation of China issued the "Nine Unified" series of design specifications for line protection and component protection and the IEC6185 engineering relay protection application model specification, the same type of products of domestic mainstream relay protection manufacturers have no significant personalized differences in protection function configuration, pressure plate name, protection setting value and IED model, which provides a good basic condition for improving the level of automated testing of relay protection. With the continuous development and progress of my country's scientific and technological level at this stage, more and more electronic technology and computer technology have begun to play their own strengths in all walks of life. In the power industry, these technologies also have their own places to play their own abilities, including the various parts of realizing information progress and digital and intelligent applications in the process of power transmission and use.

[0004] The existing automatic test equipment has the following problems:

[0005] 1) Test cases need to be manually created, the degree of automation is not high, and customized test reports cannot be generated;

[0006] 2) In different substations, the operating parameters of the same relay protection device may be inconsistent, which requires a lot of modification work on the manually created automatic test cases, thereby increasing labor costs;

[0007] 3) Most of the automatic test tools on the market are developed by tester manufacturers. These manufacturers lack experience in developing relay protection devices. Therefore, they are not adaptable to the relay protection devices of various equipment manufacturers. The test equipment that can be connected is also limited. Only the manufacturers that develop this automatic test tool are supported.

[0008] Therefore, the present invention proposes an adaptive relay protection test method and system based on IED model. Summary of the invention

[0009] In order to solve the deficiencies in the prior art, the present invention provides an adaptive relay protection test method and system based on an IED model, so that the system can adapt to relay protection devices of different models and different manufacturers. The user-friendly human-machine interface simplifies the operation process, making test operations and result analysis more convenient.

[0010] The present invention adopts the following technical solution.

[0011] A first aspect of the present invention provides an adaptive relay protection test method based on an IED model, comprising the following steps:

[0012] S1: Establish a connection with the IED of the relay protection device under test by configuring the communication protocol, parse and obtain the basic information of the SCD file of the IED of the device under test, establish a device model, and load the device model into the automated test system;

[0013] S2: After completing the test environment initialization according to step S1, parse the SCD configuration file of the IED device and match it with the corresponding rule script to find the logical node, obtain different generation objects, including soft pressure plate status, case setting value, tester analog quantity state sequence file, result criterion and tester configuration file, all generation objects work together to automatically generate test cases;

[0014] S3: Execute the test cases generated in step S2 in the module-based test framework of the automated test system;

[0015] S4: After the automatic test system test in step S3 is completed, the defect management subsystem analyzes the test data, generates a report, and manages potential defects;

[0016] S5: Design the main interface of the automatic testing tool based on user habits and interface friendliness.

[0017] Preferably, step S1 specifically includes:

[0018] S1.1: The master station communication module is connected to the relay protection device IED under test by configuring the communication protocol, so as to establish a reliable communication and data exchange channel between the automatic test system and the relay protection device IED under test;

[0019] S1.2: Analyze the basic information of the SCD configuration file of the relay protection device IED under test. The basic information of the SCD file includes logical devices, logical nodes, data objects and data attributes. Establish a device model based on the information analyzed in the SCD file and generate the corresponding rule script;

[0020] S1.3: Load the IED device model into the automatic test system, initialize the test environment, and ensure that the configuration file of the IED device has been correctly loaded into the system.

[0021] Preferably, the configuration communication protocols IEC61850 and CMS61850 include data formats, MMS services, CMS services, and involve research on various services supported by relay protection devices IED.

[0022] Preferably, step S2 specifically includes:

[0023] S2.1: Analyze the matched logical nodes, determine the corresponding test scenarios and test methods, map the logical nodes to the physical connections, simulate the actual device connections and signal transmissions to obtain the connection information settings, and generate the corresponding tester configuration files;

[0024] S2.2: Automatically generate logic formulas according to the protection logic of the logic node, and then use the logic formulas to obtain the logic truth table. According to the calculation results of the truth table, verify whether the IED device triggers the soft pressure plate action as expected, and derive the soft pressure plate status;

[0025] S2.3: Automatically generate a logic formula according to the protection logic of the logical node, and then use the logic formula to obtain a logic truth table. According to the calculation result of the truth table, generate a result criterion to determine whether the test has passed;

[0026] S2.4: Obtain the analog quantity calculation formula through logic truth table analysis, calculate the constant error, including relative error and absolute error, and generate the use case constant after error calculation.

[0027] S2.5: Obtain the analog quantity calculation formula through logical truth table analysis, use Newton's substitution method to reverse the analog quantity value, calculate the action time error, including relative error and absolute error, and generate the tester analog quantity state sequence file.

[0028] Preferably, the logic formula and logic truth table acquisition process specifically includes:

[0029] The protection logic is a logic rule set according to the operating status of the power system. It determines whether to trigger protection measures, including starting circuit breakers and alarms, by judging the combination of different input signals of the logic nodes;

[0030] The logic formula is a mathematical expression that describes a logical relationship based on protection logic, and includes the logical operators AND, OR, and NOT;

[0031] A logic truth table is generated based on the obtained logic formula to show the results of a given logic expression under all possible input value combinations.

[0032] Preferably, the set value error includes relative error and absolute error, which are important indicators for measuring the difference between the calculated result and the true value; the absolute error is the absolute value of the difference between the actual value and the calculated value, and the relative error is the ratio of the absolute error to the actual value; the set value mentioned above is used to determine the set value according to the logical truth table and the error calculation result in different application scenarios, and the obtained set value configures the IED device to ensure its correct response under different conditions.

[0033] Preferably, step S2.5 specifically includes:

[0034] S2.5.1: Obtain the logic truth table based on the analysis of the logical relationship and the change law of the analog quantity, and then use the logic truth table to parse and obtain the analog quantity calculation formula;

[0035] S2.5.2: Use the Newton iteration method to infer the analog value, differentiate the analog value calculation formula, and apply the Newton iteration formula to iterate the calculation until the predetermined error range or the preset number of iterations is reached;

[0036] S2.5.3: After obtaining the simulated value, calculate the absolute error and relative error between it and the actual value;

[0037] S2.5.4: Generate a tester analog quantity state sequence file based on the calculation results, and format the calculation results and error information into a file in a specified format for the tester to read and execute.

[0038] Preferably, the module-based testing framework divides the entire application under test into multiple logical and independent modules, each module is independent and has a corresponding test script, and all test scripts are combined together to build a larger test script representing multiple modules.

[0039] Preferably, the main interface is used to centrally display the use case file tree, use case information view, device information view, tester view, and test information, so as to facilitate users to comprehensively analyze the test process. The second aspect of the present invention provides an adaptive relay protection test system based on an IED model, which runs the aforementioned adaptive relay protection test method based on an IED model:

[0040] It includes interface compatibility module, IED access configuration module, automatic test case generation module, test execution module, defect management module, and test tool main interface module;

[0041] The interface compatibility module is used to adapt and parse the communication messages of devices according to the communication protocols and interface requirements of devices from different manufacturers. If the device interface is incompatible, it provides a protocol conversion function so that the test system can communicate normally with different devices;

[0042] The IED access configuration module is used to connect the relay protection device IED to the test system through the network protocol of the interface compatible module, obtain the IED device model, version, and basic information of the configuration file, configure the relevant parameters of the device according to the test requirements, and use the SCD file to parse and build the device model;

[0043] The automatic test case generation module is used to obtain the SCD file of the IED device from the IED access configuration module, parse the logical node to generate the corresponding test case, and store the generated test case in the database;

[0044] The defect management subsystem is used to trigger fault detection, record fault information, analyze the cause of equipment failure, provide a detailed diagnosis report of equipment failure, generate a defect report based on the analysis results, and recommend maintenance or adjustment measures when a test failure or equipment abnormality is found during the test execution module test execution;

[0045] The test tool main interface module is used to provide a visually convenient operation interface for the test system.

[0046] Compared with the prior art, the beneficial effects of the present invention include at least:

[0047] The test results show that the automated test system performs well in terms of accuracy, efficiency, flexibility, user-friendliness, and cost-effectiveness. The accuracy of the system is due to the reduction of human errors, while the efficiency is improved due to the reduction of test preparation and execution time. The enhanced flexibility enables the system to adapt to relay protection devices of different models and manufacturers, and the user-friendly human-machine interface simplifies the operation process, making test operations and result analysis more convenient. In addition, automated testing reduces labor costs and test time, bringing economic benefits to the power industry.

[0048] The adaptive relay protection test technology based on IED standards has significantly improved the accuracy and efficiency of the test through the automated test system. The main conclusions are as follows:

[0049] 1) Construction of an automated test system: By implementing an automated test case generation method based on the protection device LN logical node, manual participation is reduced, thereby significantly improving the efficiency of the test. The construction of an automated test system not only improves the accuracy of the test, but also speeds up the test process, making the test process more efficient.

[0050] 2) Enhanced compatibility of the test system: The developed interface analysis technology is compatible with mainstream test equipment at home and abroad, which enhances the applicability of the test system and ensures that relay protection devices of different models and manufacturers can be effectively tested, thereby expanding the application scope of the test technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a theoretical structure diagram of a module-based test framework design provided in accordance with an embodiment of the present invention;

[0052] Figure 2 It is a schematic diagram of the software structure architecture provided according to an embodiment of the present invention;

[0053] Figure 3 The layout of the subviews in the main interface and the classes corresponding to the subviews provided in accordance with the embodiment of the present invention;

[0054] Figure 4 It is an automatic test tool topology provided according to an embodiment of the present invention;

[0055] Figure 5 It is a technical route for automatically generating use cases provided in accordance with an embodiment of the present invention;

[0056] Figure 6 It is a flow chart of an adaptive relay protection test method based on an IED model provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0058] like Figures 1 to 6 As shown, embodiment 1 of the present invention provides an adaptive relay protection test method based on an IED model, comprising the following steps:

[0059] S1: Establish a connection with the IED of the relay protection device under test by configuring the communication protocol, parse and obtain the basic information of the SCD file of the IED of the device under test, establish a device model, and load the device model into the automated test system.

[0060] In a preferred but non-limiting embodiment, step S1 specifically includes:

[0061] S1.1: The master station communication module is connected to the relay protection device IED under test by configuring the communication protocol, so as to establish a reliable communication and data exchange channel between the automatic test system and the relay protection device IED under test.

[0062] It is further explained that the configuration communication protocols IEC61850 and CMS61850 include data formats, MMS services, CMS services, and involve research on various services supported by relay protection devices IED.

[0063] like Figure 2 In the implementation of the present invention, configuring the communication protocol includes testing device interface compatibility, and testing device interface compatibility refers to the research of automatic testing tools for different testing device interface compatibility technologies. The software structure design idea adopts the domain-driven design idea, which is mainly manifested in: using a unified language, using the same concepts on the business side and the technical side; abstracting things and object-oriented analysis; the core business logic reflects the domain model and can be reused, and the technical details can be replaced while assisting the business functions, which is conducive to separating business logic and technical details.

[0064] Supplementary explanation: The automated test system conducts in-depth research on the data format, MMS service, CMS service, etc. in the IEC61850 and CMS61850 communication protocols, and involves research on various services supported by relay protection equipment IED, including data set services, report services, setting group services, control services, file services, remote call services, etc., and develops control programs and data communication interfaces that meet the requirements of automatic test tools. The main function of the master station communication module is to use IEC61850 and CMS61850 service protocols to realize the remote control device pressure plate insertion and withdrawal, setting value reading and writing, and protection action, analog quantity, SOE and other reports. Storage and parsing functions. According to MMS services and CMS services, develop automatic test tool control programs to achieve one-click automatic testing.

[0065] S1.2: Parse the basic information of the SCD configuration file of the relay protection device IED under test. The basic information of the SCD file includes logical devices, logical nodes, data objects and data attributes. Establish a device model based on the information parsed in the SCD file and generate the corresponding rule script.

[0066] In the embodiment of the present invention, the master station communication module adopts the IEC61850 and CMS61850 station control layer protocols, and is modeled by loading the SCD configuration file of the substation's entire station relay protection device IED. Before loading the file, the automatic test system will perform basic format verification to ensure that the SCD file complies with the IEC61850 standard and is not damaged or formatted incorrectly. Parse the data such as LD (logical device), LN (logical node), DO (data object) and DA (data attribute) in the configuration file, extract the IED device object data and its parameters for storage and backup.

[0067] The rule script described in the embodiment of the present invention is based on the parsed SCD file information. The automated test system will generate a corresponding rule script framework. The rule script specifically refers to a script file used to describe and define the test process, test logic, test conditions, etc. It usually contains some pre-set rules or standards to guide the automated test system on how to generate test cases based on the configuration, set values, protection logic and other parameters of the IED device, as well as how to execute and evaluate the test process. The rule script acts as a decision maker in the automated test system, determining the generation, verification conditions and execution process of the test case. For example, when the system generates a test case based on the configuration information of the IED device (such as protection set values, action conditions, etc.), the rule script provides specific rules for how to compare, trigger and verify. It describes what actions should be taken when a certain condition is met to ensure the repeatability and accuracy of the test process. In the software implementation structure design, the test script is parsed and the use case script is converted into the type and the attributes and behaviors of the type in the software system. Through reasonable object-oriented encapsulation, inheritance, polymorphism and other design elements, the business complexity is reduced or hidden, and the system is made more scalable, and a test software that is easier to maintain and responds to changes in requirements is designed.

[0068] S1.3: Load the IED device model into the automatic test system, initialize the test environment, and ensure that the configuration file of the IED device has been correctly loaded into the system.

[0069] S2: After completing the test environment initialization according to S1, parse the SCD configuration file of the IED device and match it with the corresponding rule script to find the logical node, and obtain different generation objects, including soft pressure plate status, test case setting value, tester analog quantity status sequence file, result judgment criteria and tester configuration file. Each generation object works together to automatically generate test cases.

[0070] In the embodiment of the present invention, the logical node (LN) often corresponds to the protection function, control function and monitoring function of the IED device, and is the key data for the automated test system to generate test cases and verify the equipment, including overcurrent protection logical nodes, differential protection logical nodes, undervoltage protection logical nodes and overvoltage protection logical nodes, etc.

[0071] In a preferred but non-limiting embodiment, Figure 5 As shown, the generated objects in step S2 include the tester configuration file, the soft pressure plate state, the result criterion, the case set value and the tester analog state sequence file. The specific acquisition process includes:

[0072] S2.1: Analyze the matched logical nodes, determine the corresponding test scenarios and test methods, map the logical nodes to the physical connections, simulate the actual device connections and signal transmissions to obtain the connection information settings, and generate the corresponding tester configuration files.

[0073] S2.2: Automatically generate logic formulas according to the protection logic of the logic node, and then use the logic formulas to obtain the logic truth table. According to the calculation results of the truth table, verify whether the IED device triggers the soft pressure plate action as expected, and derive the soft pressure plate status.

[0074] In a preferred but non-limiting embodiment, step S2.2 specifically includes:

[0075] S2.2.1: The protection logic is a logic rule set according to the operating status of the power system. It determines whether to trigger protection measures, including starting circuit breakers and alarms, by combining different input signals of the logic nodes.

[0076] S2.2.2: The logic formula is a mathematical expression that describes the logical relationship based on protection logic, and includes the logical operators AND, OR and NOT.

[0077] S2.2.3: Generate a logical truth table based on the logical formula in step S2.2.2 to show the results of the given logical expression under all possible input value combinations.

[0078] In the embodiments of the present invention, in the smart substation and IED equipment, the logic formula is used to define the protection logic and control logic. For example, a simple logic formula may be expressed as: F = A ∧ B, where F is the output, A and B are input variables, and ∧ represents the AND operation, indicating that the input signals A and B, if A and B are true at the same time, the protection action is triggered. For more complex logic formulas, the truth table will contain more rows to show all possible input combinations and their corresponding output results. Refer to Table 1, based on the logic formula: F = A ∧ B, the logic truth table is obtained.

[0079] Table 1 Logical truth table

[0080] A B F 0 0 0 0 1 0 1 0 0 1 1 1

[0081] S2.2.4: In the IED device, the logic formula and truth table are used to verify whether the device triggers the soft pressure plate action as expected. The expected output value is calculated by substituting the actual input value into the logic formula, and then the expected value is compared with the actual output value. If the two are consistent, it means that the IED device works as expected and generates the soft pressure plate state; if they are inconsistent, there may be a problem and further inspection and debugging are required.

[0082] S2.3: Automatically generate a logic formula according to the protection logic of the logic node, and then use the logic formula to obtain a logic truth table. According to the calculation result of the truth table, generate a result criterion for judging whether the test has passed.

[0083] S2.4: Obtain the analog quantity calculation formula through logic truth table analysis, calculate the constant error, including relative error and absolute error, and generate the use case constant after error calculation.

[0084] The analog quantity calculation formula described in the embodiment of the present invention refers to a formula for calculating analog quantities (such as current, voltage, etc.) in a smart substation according to a logic truth table and a logic formula. These formulas can be simple linear relationships or complex nonlinear relationships. For example, a simple linear relationship can be expressed as: Y = aX + b, where Y is the output analog quantity, X is the input analog quantity, and a and b are coefficients determined according to the logic truth table.

[0085] It is further explained that the set error includes relative error and absolute error, which are important indicators to measure the difference between the calculated result and the true value; the absolute error is the absolute value of the difference between the actual value and the calculated value, and the relative error is the ratio of the absolute error to the actual value; the so-called set value refers to a set value determined according to the logical truth table and the error calculation result in a specific application scenario, which is used to configure the IED device to ensure its correct response under specific conditions.

[0086] For example, if we know that the output of a protection logic should be 1 under certain input conditions, we can set a constant value so that when the input value reaches this constant value, the output of the protection logic is 1. This constant value can be determined by analyzing the logic truth table and calculating the error. Example of specific data formula description, based on the information provided in the search results, we can see some specific data formulas for error calculation. For example, for an approximate value x and its error limit ε(x), the formula is:

[0087] This formula can be used to estimate the error of function f at x, where f'(x * ) and f"(ξ) are the functions at x * The first and second derivatives at x and x * This formula can help us understand the possible range of output error given the input error.

[0088] Through these methods, we can parse the analog calculation formula from the logical truth table, calculate the set value error, and then generate the use case set value to ensure the correct response of the IED device.

[0089] S2.5: Obtain the analog quantity calculation formula through logical truth table analysis, use Newton's substitution method to reverse the analog quantity value, calculate the action time error, including relative error and absolute error, and generate the tester analog quantity state sequence file.

[0090] In a preferred but non-limiting embodiment, step S2.5 specifically includes:

[0091] S2.5.1: Obtain the logic truth table based on the analysis of the logical relationship and the change law of the analog quantity, and obtain the analog quantity calculation formula based on the analysis of the logic truth table;

[0092] S2.5.2: Use the Newton iteration method to infer the analog value, differentiate the analog value calculation formula, and apply the Newton iteration formula to iterate the calculation until the predetermined error range or number of iterations is reached;

[0093] S2.5.3: After obtaining the simulated value, calculate the absolute error and relative error between it and the actual value;

[0094] S2.5.4: Generate a tester analog quantity state sequence file based on the calculation results, and format the calculation results and error information into a file in a specific format so that the tester can read and execute it.

[0095] The Newton iteration method described in the embodiment of the present invention is a numerical method for solving the roots of nonlinear equations. The basic idea is to start from an initial guess value and gradually approach the root of the equation through an iterative formula. For a given nonlinear equation f(x)=0, the iterative formula of the Newton iteration method is: Among them, x k is the approximate value of the kth iteration, f'(x k ) is the function f(x k ) in x k For example, if the analog quantity calculation formula is f(x) = x 3 -x; we can use Newton's iteration method to solve the value of x. According to the information provided in the search results, the iteration formula of Newton's iteration method can be expressed as: Through iterative calculation, we can get the approximate value of x and calculate the action time error. Finally, organize these data into a format that the tester can recognize and generate an analog state sequence file.

[0096] S3: Execute the test cases generated in step S2 in the module-based test framework of the automated test system. In a preferred but non-limiting embodiment, Figure 4 As shown, step S3 specifically includes:

[0097] S3.1: Perform test configuration and management, responsible for setting up the test environment and managing test resources;

[0098] S3.2: Analyze the device model after the configuration in S3.1 to ensure that the test system can process and analyze the structure and function of the device under test;

[0099] S3.3: Based on the results of the device model analysis in step S3.2, test cases are automatically generated to ensure that the test cases cover all functional points of the device under test;

[0100] S3.4: The generated test cases are edited and adjusted according to actual needs to ensure accuracy and completeness;

[0101] S3.5: The test case edited in step S3.4 enters the advanced module, which is responsible for further processing and optimization of the test case;

[0102] S3.6: After executing the test case, generate a test report to record and manage the test results for subsequent analysis and tracking;

[0103] S3.7: During the entire testing process, monitor the testing process to ensure the smooth progress of the test and to identify and resolve problems in a timely manner.

[0104] like Figure 1 ,The advanced module described in the present invention refers to a module-based test framework. The principle of the module-based test framework is to divide the entire "application under test" into multiple logical and independent modules. This division can be divided in different ways such as function, business logic, data model, etc. Each module is independent and has its own test script. These tests can be combined together to build a larger test script representing multiple modules. ,In this structure, the core of the test framework is the test management module. The test management module is responsible for managing test cases, test scripts, and test data, etc. The test management module can also control the execution order and execution mode of the test. Each module has its own test script and test data. These test scripts and test data are designed according to the functions and business logic of the module. When executing the test, the test management module will call the test script and test data of each module and feed back the test results to the tester.

[0105] S4: After the automatic test system test in step S3 is completed, the defect management subsystem parses the test data, generates a report, and manages potential defects.

[0106] In a preferred but non-limiting embodiment, step S4 specifically includes:

[0107] S4.1: Defect discovery is accomplished through detailed error description reports recorded by testers and users when they encounter problems during testing. Error description reports include the symptoms of the problem, frequency of occurrence, and possible triggering conditions;

[0108] S4.2: Based on the error description report obtained in step S4.1, the defect management team will conduct a preliminary assessment to confirm whether the problem is a real defect, its priority level, and whether it needs to be fixed immediately, and then classify and assign it to the corresponding responsible person;

[0109] S4.3: In the defect tracking system, defects have a unique identifier that is used to record all activities in the repair process, including developer acceptance of tasks, repairs, code review, and regression testing, so that team members can understand the progress of defect handling;

[0110] S4.4: Developers fix the problem based on the defect report and write revised code. After the fix, regression testing is required to verify whether the problem has been solved to prevent the introduction of new errors.

[0111] S4.5: The tester reproduces and confirms whether the defect has been fixed. If the fix is ​​effective, the defect is closed. If the problem still exists, it is necessary to return to the repair step until the problem is completely resolved.

[0112] S4.6: Once the defect is resolved and verified to be correct, the defect management team will formally close the defect and notify relevant parties including developers, testers and customers.

[0113] Through these steps, the defect management subsystem can ensure that the products that failed the test are effectively handled, collect the causes of the defects, and notify the staff to conduct detailed research, thereby improving the overall efficiency and the quality of the relay protection device. The defect management subsystem is a special part of the entire relay protection device intelligent automatic test system, and it is also a part that requires manual analysis. This system mainly works on products that failed the test. During its operation, it can process the examples of test failures, fully collect the causes of the defects, and then inform the corresponding staff to conduct a more detailed study on the faulty parts. Although manpower is also applied in this process, it improves the overall efficiency. It can be seen that at the current stage, the AutoTest test system is an intelligent automatic test system for relay protection devices with many advantages. Its unique four-aspect system design can give users different experiences and feelings from multiple angles, and can also allow the corresponding detection and testing work to develop in the direction of efficiency and intelligence. Finally, the construction of the overall intelligent automatic test system for relay protection devices is realized, so as to improve the quality of relay protection devices in power safety.

[0114] S5: Design the main interface of the automatic testing tool based on user habits and interface friendliness.

[0115] like Figure 3As shown, the use case file tree is mainly used to organize and manage test case files. It displays test case files at different levels in a tree structure, which is convenient for users to find, select and manage test cases. It will be used in the "Test Case Editing" and "Test Case Automatic Generation" steps. After the test case is automatically generated, the generated use case files need to be organized and managed through the use case file tree. During the test case editing process, users can quickly locate the use case file that needs to be edited through the use case file tree.

[0116] The use case information view is mainly used to display and edit the detailed information of the test case. It can display the input parameters, expected output, execution conditions and other information of the test case, so that users can view and edit the test case in detail. It will be used in the "Test Case Editing" step. When the user needs to edit and view detailed information of a specific test case, the use case information view will be used for operation.

[0117] The device information view is mainly used to display and manage the relevant information of the device under test. It can display the model, configuration, interface and other information of the device under test, so that users can understand the situation of the device under test and make relevant configurations during the test. It will be used in the "Device Model Parsing" and "Test Configuration and Management" steps. During the device model parsing process, the device information view can help users view and confirm the parsing results. During the test configuration and management process, users can configure and manage the device under test through the device information view.

[0118] The tester view is mainly used to display and manage the relevant information of the tester. It can display the tester's status, connection status, test parameters and other information to facilitate users to operate and manage the tester. It will be used in the "Basic Function Module" and "Unified Communication Interface and Specification File" steps. During the testing process of the basic function module, the tester view can help users view and operate the tester. During the configuration process of the unified communication interface and specification file, the tester view can help users manage the connection and configuration of the tester.

[0119] The test information is mainly used to display and manage relevant information during the test process. It can display the progress, results, error information, etc. of the test, making it convenient for users to monitor and manage the test process. It will be used in the "Test Process Monitoring" and "Test Report Management" steps. During the test process monitoring, the test information can help users view the test progress and results in real time. During the test report management, the test information can help users generate and analyze test reports.

[0120] Embodiment 2 of the present invention provides an adaptive relay protection test system based on an IED model, which runs an adaptive relay protection test method based on an IED model described in embodiment 1, including: an interface compatibility module, an IED access configuration module, an automatic test case generation module, a test execution module, a defect management module, and a test tool main interface module;

[0121] The interface compatibility module is used to adapt and parse the communication messages of devices according to the communication protocols and interface requirements of devices from different manufacturers. If the device interface is incompatible, it provides a protocol conversion function so that the test system can communicate normally with different devices;

[0122] The IED access configuration module is used to connect the relay protection device IED to the test system through the network protocol of the interface compatible module, obtain the IED device model, version, and basic information of the configuration file, configure the relevant parameters of the device according to the test requirements, and use the SCD file to parse and build the device model;

[0123] The automatic test case generation module is used to obtain the SCD file of the IED device from the IED access configuration module, parse the logical node to generate the corresponding test case, and store the generated test case in the database;

[0124] The defect management subsystem is used to trigger fault detection, record fault information, analyze the cause of equipment failure, provide a detailed diagnosis report of equipment failure, generate a defect report based on the analysis results, and recommend maintenance or adjustment measures when a test failure or equipment abnormality is found during the test execution module test execution;

[0125] The test tool main interface module is used to provide a visually operated interface for the test system.

[0126] In the field of relay protection testing, the combination of theory and practice is the key to promoting technological progress. With the continuous development of smart substation technology, adaptive testing technology based on IED models has gradually moved from laboratories to field applications. The following are the applications of automation technology in smart substations:

[0127] 1) Application of digital supervision system in smart substation: With the development of the new era, automation technology is increasingly being applied to smart substations. In order to keep up with the development of the power operation system, we must pay attention to the important role played by the digital supervision system. During the operation of the entire smart substation, different working equipment may encounter unexpected situations. At this time, the data automation supervision system will conduct in-depth analysis of various abnormal situations, and at the same time integrate the data of the problems that occur in different equipment, further analyze the causes of the problems, and finally find a suitable solution. Not only that, the digital supervision system will also promptly inform the relevant management workers of the emergencies encountered in the substation through alarms. In the process of applying automation technology in smart substations, we pay attention to the use of digital supervision systems, which avoids the waste of human resources and time resources, and also ensures the safety of the power operation system, thereby meeting the development requirements of smart substations in the new era and further improving people's work efficiency and quality of life.

[0128] 2) Application of automation technology in potential connection in smart substations: Electricity plays a vital role in all aspects of people's lives and industrial development. The value of power resources in the operation of smart substations cannot be underestimated. In order to ensure sufficient electricity, relevant technicians must carry out potential connection work. Applying automation technology to potential connection work can more comprehensively ensure the safety of power system operation and avoid major property losses to smart substations.

[0129] At the same time, when performing potential connection work, the normal transmission of work information should be guaranteed to lay the foundation for the normal operation of the smart substation; relevant technical personnel should also accurately connect the conductive parts of the electrical equipment to ensure the quality of the potential connection; on this basis, they should also select appropriate models to improve the working efficiency of the power operation system.

[0130] 3) Application of automation technology in data collection and processing in smart substations: The application of automation technology in smart substations can achieve complete collection of working data and effectively handle problems arising from the operation of the power system. Automation technology mainly collects and integrates analog data and status data. When the smart substation has undesirable phenomena such as excessive circuit voltage, abnormal current, and insufficient power, the automated supervision system will alarm the emergency, and the working equipment will automatically trip, causing the wire to be disconnected. At this time, automation technology can collect and integrate the data generated by the abnormal situation in a timely manner to avoid more serious property losses in the smart substation.

[0131] 4) Application of automation technology in self-diagnosis of smart substations: The normal operation of smart substations is inseparable from the diagnostic function of automation technology. Through the use of computers, the Internet and communication technologies, the power operation system can automatically determine the correctness of equipment operation, complete real-time monitoring of smart substations, and accurately find out the causes of emergencies, and formulate appropriate solutions in time, thereby reducing the probability of abnormal situations, reducing the work pressure of relevant technical personnel, improving their work enthusiasm, and further promoting the development of smart substations and even the entire power operation system.

[0132] Compared with the prior art, the beneficial effects of the present invention include at least:

[0133] The test results show that the automated test system performs well in terms of accuracy, efficiency, flexibility, user-friendliness, and cost-effectiveness. The accuracy of the system is due to the reduction of human errors, while the efficiency is improved due to the reduction of test preparation and execution time. The enhanced flexibility enables the system to adapt to relay protection devices of different models and manufacturers, and the user-friendly human-machine interface simplifies the operation process, making test operations and result analysis more convenient. In addition, automated testing reduces labor costs and test time, bringing economic benefits to the power industry.

[0134] The adaptive relay protection test technology based on IED standards has significantly improved the accuracy and efficiency of the test through the automated test system. The main conclusions are as follows:

[0135] 1) Construction of an automated test system: By implementing an automated test case generation method based on the protection device LN logical node, manual participation is reduced, thereby significantly improving the efficiency of the test. The construction of an automated test system not only improves the accuracy of the test, but also speeds up the test process, making the test process more efficient.

[0136] 2) Enhanced compatibility of the test system: The developed interface parsing technology is compatible with mainstream test equipment at home and abroad, which enhances the applicability of the test system and ensures that relay protection devices of different models and manufacturers can be effectively tested, thereby expanding the application scope of the test technology. The present disclosure may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium on which computer-readable program instructions are loaded for causing a processor to implement various aspects of the present disclosure.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. An adaptive relay protection test method based on IED model, characterized in that: The following steps are involved: S1: Establish a connection with the IED of the relay protection device under test by configuring the communication protocol, parse and obtain the basic information of the SCD file of the IED of the device under test, establish a device model, and load the device model into the automated test system; S2: After completing the test environment initialization according to step S1, parse the SCD configuration file of the IED device and match it with the corresponding rule script to find the logical node, obtain different generation objects, including soft pressure plate status, case setting value, tester analog quantity state sequence file, result criterion and tester configuration file, all generation objects work together to automatically generate test cases; S3: Execute the test cases generated in step S2 in the module-based test framework of the automated test system; S4: After the automatic test system test in step S3 is completed, the defect management subsystem analyzes the test data, generates a report, and manages potential defects; S5: Design the main interface of the automatic testing tool based on user habits and interface friendliness.

2. The method for testing an adaptive relay protection based on an IED model according to claim 1, characterized in that: Step S1 specifically includes: S1.1: The master station communication module is connected to the relay protection device IED under test by configuring the communication protocol, so as to establish a reliable communication and data exchange channel between the automatic test system and the relay protection device IED under test; S1.2: Analyze the basic information of the SCD configuration file of the relay protection device IED under test. The basic information of the SCD file includes logical devices, logical nodes, data objects and data attributes. Establish a device model based on the information analyzed in the SCD file and generate the corresponding rule script; S1.3: Load the IED device model into the automatic test system, initialize the test environment, and ensure that the configuration file of the IED device has been correctly loaded into the system.

3. The method for testing an adaptive relay protection based on an IED model according to claim 2, characterized in that: The configuration communication protocols IEC61850 and CMS61850 include data formats, MMS services and CMS services, and involve research on various services supported by relay protection devices IED.

4. The method for testing an adaptive relay protection based on an IED model according to claim 1, characterized in that: Step S2 specifically includes: S2.1: Analyze the matched logical nodes, determine the corresponding test scenarios and test methods, map the logical nodes to the physical connections, simulate the actual device connections and signal transmissions to obtain the connection information settings, and generate the corresponding tester configuration files; S2.2: Automatically generate logic formulas according to the protection logic of the logic node, and then use the logic formulas to obtain the logic truth table. According to the calculation results of the truth table, verify whether the IED device triggers the soft pressure plate action as expected, and derive the soft pressure plate status; S2.3: Automatically generate a logic formula according to the protection logic of the logical node, and then use the logic formula to obtain a logic truth table. According to the calculation result of the truth table, generate a result criterion to determine whether the test has passed; S2.4: Obtain the analog quantity calculation formula through the logic truth table analysis, calculate the fixed value error, including relative error and absolute error, and generate the use case fixed value after the error calculation; S2.5: Obtain the analog quantity calculation formula through logical truth table analysis, use Newton's substitution method to reverse the analog quantity value, calculate the action time error, including relative error and absolute error, and generate the tester analog quantity state sequence file.

5. The method for testing an adaptive relay protection based on an IED model according to claim 4, characterized in that: The process of obtaining the logic formula and the logic truth table specifically includes: The protection logic is a logic rule set according to the operating status of the power system. It determines whether to trigger protection measures, including starting circuit breakers and alarms, by judging the combination of different input signals of the logic nodes; The logic formula is a mathematical expression that describes a logical relationship based on protection logic, and includes the logical operators AND, OR, and NOT; A logic truth table is generated based on the obtained logic formula to show the results of a given logic expression under all possible input value combinations.

6. The method for testing an adaptive relay protection based on an IED model according to claim 4, characterized in that: The fixed value error includes relative error and absolute error, which are important indicators for measuring the difference between the calculated result and the true value; the absolute error is the absolute value of the difference between the actual value and the calculated value, and the relative error is the ratio of the absolute error to the actual value; The example set values ​​described above are used to determine the set values ​​in different application scenarios based on the logic truth table and the error calculation results. The obtained set values ​​configure the IED device to ensure its correct response under different conditions.

7. The method for testing an adaptive relay protection based on an IED model according to claim 4, characterized in that: Step S2.5 specifically includes: S2.5.1: Obtain the logic truth table based on the analysis of the logical relationship and the change law of the analog quantity, and then use the logic truth table to parse and obtain the analog quantity calculation formula; S2.5.2: Use the Newton iteration method to infer the analog value, differentiate the analog value calculation formula, and apply the Newton iteration formula to iterate the calculation until the predetermined error range or the preset number of iterations is reached; S2.5.3: After obtaining the simulated value, calculate the absolute error and relative error between it and the actual value; S2.5.4: Generate a tester analog quantity state sequence file based on the calculation results, and format the calculation results and error information into a file in a specified format for the tester to read and execute.

8. The method for testing an adaptive relay protection based on an IED model according to claim 1, characterized in that: The module-based testing framework divides the entire application under test into multiple logical and independent modules, each module is independent and has a corresponding test script, and all test scripts are combined together to build a larger test script representing multiple modules.

9. The method for testing an adaptive relay protection based on an IED model according to claim 1, characterized in that: The main interface is used to centrally display the use case file tree, use case information view, device information view, tester view, and test information, making it convenient for users to comprehensively analyze the test process.

10. An adaptive relay protection test system based on an IED model, running an adaptive relay protection test method based on an IED model according to claims 1-9, characterized in that: It includes interface compatibility module, IED access configuration module, automatic test case generation module, test execution module, defect management module, and test tool main interface module; The interface compatibility module is used to adapt and parse the communication messages of devices according to the communication protocols and interface requirements of devices from different manufacturers. If the device interface is incompatible, it provides a protocol conversion function so that the test system can communicate normally with different devices; The IED access configuration module is used to connect the relay protection device IED to the test system through the network protocol of the interface compatible module, obtain the IED device model, version, and basic information of the configuration file, configure the relevant parameters of the device according to the test requirements, and use the SCD file to parse and build the device model; The automatic test case generation module is used to obtain the SCD file of the IED device from the IED access configuration module, parse the logical node to generate the corresponding test case, and store the generated test case in the database; The defect management subsystem is used to trigger fault detection, record fault information, analyze the cause of equipment failure, provide a detailed diagnosis report of equipment failure, generate a defect report based on the analysis results, and recommend maintenance or adjustment measures when a test failure or equipment abnormality is found during the test execution module test execution; The test tool main interface module is used to provide a visually convenient operation interface for the test system.