Relay protection test method, system and equipment without editing comparison logic and medium

Through the test method of competing logic for the editing logic, the complexity of editing in the test of relay protection devices is solved, and the effect of simplifying operations and improving automatic test efficiency is achieved.

CN119355408APending Publication Date: 2025-01-24STATE GRID JIANGSU ELECTRIC POWER CO LTD RESEARCH INSTITUTE +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411541467.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the testing of existing relay protection devices, the editing of the test result results is complicated, resulting in limited promotion and application of automatic testing technology.

Method used

Use the test method of the edit -free comparison logic. By editing the test command sequence and parameters, generate test case data, and analyze the data to generate the executable test command sequence, receive the return data in real time, and compare whether the expectations are expected to generate test reports.

Benefits of technology

The operation of the test engineer was simplified, the learning cost of the automatic test system was reduced, and the promotion and application efficiency of the automatic test technology was improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119355408A_ABST
    Figure CN119355408A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of relay protection device testing, in particular to an editing-free comparison logic relay protection testing method, system, equipment and medium, and the method comprises the following steps: editing a test command sequence and parameters, and generating test case data; analyzing the test case data and generating an executable test command sequence; sending the executable test command sequence to a tester or a relay protection device, and receiving returned data in real time; and analyzing the test command sequence, converting the test command sequence into a uniform comparison parameter, comparing whether returned data accords with expectation or not, and generating a test report. According to the invention, a tester only needs to set a test command and parameters according to knowledge in the field, and does not need to specially edit comparison logic, so that the editing operation is simplified; complicated script grammar does not need to be remembered, so that the learning cost of the automatic test system is reduced; and test result judgment and comparison logic is realized in the test execution module, so that comparison can be realized by utilizing dynamic reloading of a modern software technology, and the program development complexity is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of relay protection device testing, and in particular to a relay protection testing method, system, equipment and medium free of editing comparison logic. Background Art

[0002] Relay protection devices can quickly cut off power grid faults, protect the safety of large equipment such as transformers and generators, and ensure the stable operation of the power grid. They are the first line of defense for power grid safety. Therefore, relay protection devices need to undergo rigorous testing in the research and development, grid access, production, and on-site links.

[0003] The relay protection device in the prior art has basically achieved automation, but the editing of the test result judgment conditions is complicated, which restricts the promotion and application of automatic testing technology. The common scheme of the existing test case editing tools is as follows: in the test case editing stage, the test return data is converted into variables, and the logical conditions are generated using scripts or graphical interfaces. In the automatic test execution stage, the actual data returned by the test is substituted into the logical conditional statement to complete the comparison. This script-like method can flexibly describe various comparison requirements, but there are problems such as difficulty in editing the comparison parameters and high requirements for testers.

[0004] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0005] The present invention provides a relay protection test method, system, device and medium without editing comparison logic, thereby effectively solving the problems in the background technology.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is: a relay protection test method without editing comparison logic, comprising the following steps: Edit test command sequences and parameters to generate test case data; Parsing the test case data and generating an executable test command sequence; Sending the executable test command sequence to the tester or relay protection device, and receiving return data in real time; The test command sequence is parsed and converted into a unified comparison parameter, the returned data is compared to see whether it meets expectations, and a test report is generated.

[0007] Furthermore, the editing test command sequence and parameters include the following test commands: Read fixed value, write fixed value, state sequence, sampling value comparison, event sequence record SOE event sequence comparison.

[0008] Further, The read fixed value command includes the communication point number of the fixed value item; The write set value command includes the communication point number and value of the set value item; The state sequence command includes: fault voltage and current parameters, output parameters, input parameters, whether to test the action time option, expected action time parameters and standard action time accuracy parameters; when the action time test item is checked, the expected action time parameters and standard action time accuracy parameters take effect, the input parameters include the tester input channel number and the expected displacement state, and the tester state sequence flip and test result comparison are controlled by the output state of the relay protection device; The sampling value comparison command includes the communication point number of the relay protection device, the expected value and the standard accuracy requirement parameters; The SOE event sequence comparison command editing includes the communication point number of the relay protection device and the expected state parameters.

[0009] Furthermore, the parsing of the test command sequence and converting it into a unified comparison parameter, and generating the required comparison parameter according to the command type of the test command sequence, includes: When the command type is a state sequence command, a value range comparison logic is generated; When the command type is a sample value comparison command, a value range comparison logic is generated; When the command type is a SOE event sequence comparison command, a value equality comparison logic is generated.

[0010] Furthermore, the value range comparison logic is |Val-ValExp|<=AccExp, Val is the measured value, ValExp is the expected value, AccExp is the expected precision, applicable to integer and floating point data, and the comparison parameters are data object identifier, ValExp and AccExp; The value equality comparison logic is Val==ValExp, which is applicable to string, integer and Boolean data, and the parameters are data object identifier and ValExp; The data object identifier corresponds to Val.

[0011] Furthermore, when generating the test report, timeout monitoring is started after receiving the test command sequence. If the return data is received, a comparison is performed and the test results and formatted report are generated. If a timeout occurs or the data is incomplete, a failed test result is generated.

[0012] Furthermore, when receiving the return data, if no valid return data is received, its value is set to empty, and in the generated test report, the measured value is an empty data mark, the measured accuracy is an empty data mark, and the test conclusion is an unqualified mark.

[0013] The present invention also includes a comparison logic-free relay protection automatic test system, using the above-mentioned test method, the test system includes: a host computer, a tester and a relay protection device; The host computer includes a test case editing module, a test case execution module, a communication manager and a test report generation module; The test case editing module provides a command sequence editing interface and generates test case data; The test case execution module parses the test case data, generates an executable command sequence, and automatically executes the test commands according to the set parameters; The communication manager provides a communication function between the tester and the relay protection device to realize the tester control and data collection; The test report generation module compares the returned data with the expected value and generates a test report.

[0014] The present invention also includes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described above is implemented.

[0015] The present invention also includes a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described above is implemented.

[0016] The beneficial effects of the present invention are as follows: relay protection test engineers only need to set test commands and parameters according to the knowledge in this field, and do not need to specially edit the comparison logic, thereby simplifying the editing operation; there is no need to remember complex script syntax, which reduces the learning cost of the automatic test system and is conducive to the promotion and application of automatic testing technology; the test result judgment and comparison logic is implemented in the test execution module, which is convenient for using modern software technology to dynamically overload and realize comparison, thereby simplifying the complexity of program development. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a flow chart of the method in Example 1; Figure 2 It is a composition diagram of the test system in Example 2; Figure 3 The comparison result of the state sequence command and the SOE event command in Example 2; Figure 4The sample value command comparison result in Example 2; Figure 5 The test method steps in Example 2; Figure 6 It is a schematic diagram of the structure of the computer device of the present invention. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0020] Embodiment 1: like Figure 1 As shown: A relay protection test method without editing comparison logic includes the following steps: Edit test command sequences and parameters to generate test case data; Parse test case data and generate executable test command sequences; Send executable test command sequences to the tester or relay protection device and receive return data in real time; Parse the test command sequence and convert it into unified comparison parameters, compare whether the returned data meets expectations, and generate a test report.

[0021] The beneficial effects of this embodiment are as follows: relay protection test engineers only need to set test commands and parameters based on the knowledge in this field, and do not need to specially edit the comparison logic, thereby simplifying the editing operation; there is no need to remember complex script syntax, which reduces the learning cost of the automatic test system and is conducive to the promotion and application of automatic testing technology; the test result judgment and comparison logic is implemented in the test execution module, which facilitates the use of modern software technology to dynamically overload and realize comparison, thereby simplifying the complexity of program development.

[0022] In this embodiment, the test command sequence and parameters are edited, including the following test commands: Read fixed value, write fixed value, state sequence, sampling value comparison, event sequence record SOE event sequence comparison.

[0023] Wherein, the command to read the fixed value includes the communication point number of the fixed value item; The command to write a fixed value includes the communication point number and value of the fixed value item; The state sequence command includes: fault voltage and current parameters, output parameters, input parameters, whether to test the action time option, expected action time parameters and standard action time accuracy parameters; when the action time test item is checked, the expected action time parameters and standard action time accuracy parameters take effect, the input parameters include the tester input channel number and the expected displacement state, and the tester state sequence flip and test result comparison are controlled by the output state of the relay protection device; The sampling value comparison command includes the communication point number of the relay protection device, the expected value and the standard accuracy requirement parameters; The SOE event sequence comparison command editing includes the communication point number and expected state parameters of the relay protection device.

[0024] As a preferred embodiment of the above, parsing the test command sequence and converting it into a unified comparison parameter, generating the required comparison parameter according to the command type of the test command sequence, includes: When the command type is a state sequence command, a value range comparison logic is generated; When the command type is a sample value comparison command, a value range comparison logic is generated; When the command type is a SOE event sequence comparison command, a value equality comparison logic is generated.

[0025] In this embodiment, the value range comparison logic is |Val-ValExp|<=AccExp, Val is the measured value, ValExp is the expected value, AccExp is the expected precision, and it is applicable to integer and floating point data. The comparison parameters are the data object identifier, ValExp and AccExp; The value equality comparison logic is Val==ValExp, which is applicable to string, integer and Boolean data. The parameters are data object identifier and ValExp. The data object identifier corresponds to Val.

[0026] When generating a test report, timeout monitoring is started after receiving the test command sequence. If return data is received, a comparison is performed and the test results and formatted report are generated. If a timeout occurs or the data is incomplete, a failed test result is generated.

[0027] As a preferred embodiment of the above embodiment, when receiving return data, if no valid return data is received, its value is set to empty. In the generated test report, the measured value is marked as empty data, the measured accuracy is marked as empty data, and the test conclusion is marked as unqualified.

[0028] This embodiment also includes a relay protection automatic test system without comparison logic, using the test method as described above, the test system includes: a host computer, a tester and a relay protection device; The host computer includes a test case editing module, a test case execution module, a communication manager and a test report generation module; The test case editing module provides a command sequence editing interface and generates test case data; The test case execution module parses the test case data, generates executable command sequences, and automatically executes the test commands according to the set parameters; The communication manager provides the communication function between the tester and the relay protection device to realize the tester control and data collection; The test report generation module compares the returned data with the expected value and generates a test report.

[0029] Embodiment 2: See also Figure 2 , a relay protection device automatic test system without comparison logic configuration shown in this embodiment includes a host computer, a tester and a relay protection device, the host computer is a computer capable of running automatic test software, and the test software consists of a test case editing, a test case execution, a communication manager and a test report generation module; The test case editing module provides a command sequence editing interface and generates test case data; The test case execution module parses the test case data, generates an executable command sequence, and automatically sends the test command parameters to the communication manager and the test report generation module according to the set parameters; The communication manager has the communication function between the tester and the relay protection device, realizing instrument and equipment control and data collection; The test report generation module compares the returned data with the expected value and generates a test report.

[0030] The test command editing interface consists of interfaces such as read set value, write set value, state sequence, sampling value comparison, SOE event sequence comparison, etc. The edit interface of read fixed value command contains the communication point number of fixed value item; The edit interface of write set value command contains the communication point number and value of the set value item; The state sequence command editing interface contains fault voltage and current parameters, output parameters, input parameters, whether to test the action time option, expected action time parameters and standard action time accuracy parameters. When the action time test item is checked, the latter two parameters take effect. The input parameters include the tester input channel number and the expected displacement state. The tester state sequence flip and test result comparison are controlled by the output state of the relay protection device. The sampling value comparison command editing interface contains the communication point number, expected value and standard accuracy requirement parameters of the relay protection device; The SOE event sequence comparison command editing interface contains the communication point number and expected state parameters of the relay protection device; The test report generation module converts the command parameters into unified comparison logic parameters, and the unified comparison logic is value range comparison and value equality comparison; Unified comparison logic parameters are generated according to the test command type. The state sequence command generates value range comparison logic, the sampling value comparison command generates value range comparison logic, and the SOE event sequence comparison command generates value equality comparison logic. The value range comparison logic is |Val-ValExp|<=AccExp, Val is the measured value, ValExp is the expected value, AccExp is the expected precision, applicable to integer and floating point data, the comparison parameters are data object identifier (corresponding to Val), ValExp and AccExp; The value equality comparison logic is Val==ValExp, which is applicable to string, integer and Boolean data. The parameters are data object identifier (corresponding to Val) and ValExp. The test report generation module starts timeout monitoring after receiving the test command parameters. If the test data sent by the communication manager is received, the comparison module is called to generate the test results and formatted report. If the test data is not received within the timeout, a failed test result is generated.

[0031] Test results and formatted reports. See Figure 3 The comparison results of the state sequence command include the action value, expected action value, action time, expected action time, measured accuracy, expected accuracy and test status, and the comparison results of the action event command include the measured value, expected value and test status. Figure 4 The result of the sampling value comparison command includes the measured value, expected value, measured accuracy, expected accuracy and test status.

[0032] like Figure 5 As shown, a method for automatically testing a relay protection device without comparison logic configuration includes the following test steps: The first step is to edit the test command sequence and parameters to generate test case data; During the second step, the test case data is automatically parsed to generate an executable test command sequence; The third step is to send the command to the communication manager and test report generation module according to the sequence parameters; Step 4: The communication manager sends the command parameters to the tester or relay protection device and receives the returned data in real time; Step 5: The communication manager sends the received return data to the test report generation module; In the sixth step, the test report generation module parses the test command data into unified comparison parameters, compares the returned data to see if it meets expectations, and generates a test report.

[0033] The test command parameters are set according to technical specifications and test requirements. The expected action time of the state sequence command is the fixed value of the relay protection time, and the expected accuracy is 30 milliseconds or 40 milliseconds as required by the technical specifications. The expected value of the sampling value comparison parameter is the theoretical value of the current test item, and the expected accuracy is 0.2%, 0.5% or 0.01 Hz as required by the technical specifications.

[0034] The comparison return data is obtained from the return data according to the data object identifier and assigned to Val.

[0035] Considering the need to correctly record abnormal test results, when the returned data is incomplete and the Val of the missing data object is empty, the measured value in the test report is an empty data identifier. If it contains measured accuracy, its value is an empty data identifier, and the test conclusion is an unqualified identifier. The empty data identifier can be agreed upon as "Invalid" or "Null", etc., and the unqualified identifier can be agreed upon as "Unqualified", "NG" or "UnPass", etc.

[0036] In this embodiment, during the test case editing stage, the comparison parameters are described according to the test items such as AC sampling, action time and action message comparison, and the comparison logic such as greater than and less than is not specifically described. During the test execution stage, the test execution module completes the comparison according to the test item type. This embodiment has been applied to the intelligent verification system of Jiangsu power grid relay protection, which greatly reduces the complexity of automatic test comparison parameter design. The test case is closer to the technical specifications of secondary equipment and the usage habits of testers, which is conducive to promotion and use.

[0037] See also Figure 6 A computer device 400 provided in an embodiment of the present application includes: a processor 410 and a memory 420, wherein the memory 420 stores a computer program executable by the processor 410, and when the computer program is executed by the processor 410, the above method is executed.

[0038] The embodiment of the present application further provides a storage medium 430 on which a computer program is stored. When the computer program is run by the processor 410, the above method is executed.

[0039] Among them, the storage medium 430 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0040] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0041] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like 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 a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0042] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0043] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0044] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0045] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0046] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0047] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A relay protection test method without editing comparison logic, characterized in that: The steps include: Edit test command sequences and parameters to generate test case data; Parsing the test case data and generating an executable test command sequence; Sending the executable test command sequence to the tester or relay protection device, and receiving return data in real time; The test command sequence is parsed and converted into a unified comparison parameter, the returned data is compared to see whether it meets expectations, and a test report is generated.

2. The relay protection test method without editing comparison logic according to claim 1 is characterized in that: The editing test command sequence and parameters include the following test commands: Read fixed value, write fixed value, state sequence, sampling value comparison, event sequence record SOE event sequence comparison.

3. The relay protection test method without editing comparison logic according to claim 2 is characterized in that: The read fixed value command includes the communication point number of the fixed value item; The write set value command includes the communication point number and value of the set value item; The state sequence command includes: fault voltage and current parameters, output parameters, input parameters, whether to test the action time option, expected action time parameters and standard action time accuracy parameters; when the action time test item is checked, the expected action time parameters and standard action time accuracy parameters take effect, the input parameters include the tester input channel number and the expected displacement state, and the tester state sequence flip and test result comparison are controlled by the output state of the relay protection device; The sampling value comparison command includes the communication point number of the relay protection device, the expected value and the standard accuracy requirement parameters; The SOE event sequence comparison command editing includes the communication point number of the relay protection device and the expected state parameters.

4. The relay protection test method without editing comparison logic according to claim 3 is characterized in that: The step of parsing the test command sequence and converting it into a unified comparison parameter, and generating the required comparison parameter according to the command type of the test command sequence, includes: When the command type is a state sequence command, a value range comparison logic is generated; When the command type is a sample value comparison command, a value range comparison logic is generated; When the command type is a SOE event sequence comparison command, a value equality comparison logic is generated.

5. The relay protection test method without editing comparison logic according to claim 4 is characterized in that: The value range comparison logic is |Val-ValExp|<=AccExp, Val is the measured value, ValExp is the expected value, AccExp is the expected precision, and it is applicable to integer and floating point data. The comparison parameters are data object identifier, ValExp and AccExp; The value equality comparison logic is Val==ValExp, which is applicable to string, integer and Boolean data, and the parameters are data object identifier and ValExp; The data object identifier corresponds to Val.

6. The relay protection test method without editing comparison logic according to claim 1 is characterized in that: When generating the test report, timeout monitoring is started after receiving the test command sequence. If the return data is received, a comparison is performed and the test result and formatted report are generated. If a timeout occurs or the data is incomplete, a failed test result is generated.

7. The relay protection test method without editing comparison logic according to claim 1 is characterized in that: When receiving the return data, if no valid return data is received, its value is set to empty. In the generated test report, the measured value is an empty data mark, the measured accuracy is an empty data mark, and the test conclusion is an unqualified mark.

8. A relay protection automatic test system without comparison logic, characterized in that: Using the test method as described in any one of claims 1 to 7, the test system comprises: a host computer, a tester and a relay protection device; The host computer includes a test case editing module, a test case execution module, a communication manager and a test report generation module; The test case editing module provides a command sequence editing interface and generates test case data; The test case execution module parses the test case data, generates an executable command sequence, and automatically executes the test commands according to the set parameters; The communication manager provides a communication function between the tester and the relay protection device to realize the tester control and data collection; The test report generation module compares the returned data with the expected value and generates a test report.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Automatic checking system, method and equipment for machine room wiring and storage medium

    CN120434155A