Multi-device cooperative automatic test method and system based on dynamic delay compensation

By employing a master-slave star topology and dynamic delay compensation technology, the problem of signal asynchrony in cross-substation testing is solved, enabling efficient and reliable multi-device collaborative automatic testing, and adapting to the technological upgrade of smart substations.

CN121540951APending Publication Date: 2026-02-17YINCHUAN POWER SUPPLY COMPANY OF STATE GRID NINGXIA ELECTRIC POWER
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511642439.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-11
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

Existing distributed testing systems suffer from communication delays during cross-substation testing, making it difficult for each slave control unit to perform test operations at the same time, thus affecting the synchronization and accuracy of the test.

Method used

It adopts a star topology with one master and multiple slaves, and realizes centralized control and synchronous operation through high-speed data communication links. Combining the Ping-Pong time synchronization method and real-time compensation algorithm, it introduces an adaptive cross-site transmission delay measurement and dynamic compensation mechanism to improve the synchronization accuracy of signal output. Furthermore, it automatically generates test scripts through SCD files to realize the automated deployment of test tasks and result analysis.

Benefits of technology

It significantly improves the synchronization accuracy of signal output from multiple devices, enhances testing efficiency and reliability, reduces human error, and meets the technological upgrading needs of smart substations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121540951A_ABST
    Figure CN121540951A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-device cooperative automatic test method and system based on dynamic delay compensation. Constructing a template library according to the test object item classification; calling a multi-stage matching strategy according to a test requirement to retrieve a matching template in a template library to generate a candidate template; analyzing the SCD file of the master-slave side transformer substation, and instantiating the candidate template into a test script; the host loads the test script to generate a test instruction and transmits the test instruction to the slave, and the slave drives to output a feedback signal according to the test instruction; the host adopts a time compensation mechanism to adjust the time parameters of the test instructions at the master and slave ends, so that the plurality of slaves inject test signals at the actual synchronization moment; in the testing process, the host starts a compensation mechanism to process real-time fluctuation of transmission delay; and the host summarizes the data fed back by the slaves, compares the data with an expected result, and judges whether the test passes or not. According to the method, multi-substation cooperative automatic testing can be realized, the synchronism among different devices is ensured, and the testing efficiency and precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of secondary equipment testing of intelligent substations, and particularly relates to a multi-device cooperative automatic testing method and system based on dynamic delay compensation. BACKGROUND

[0002] With the development of smart grids, the number of automation devices inside and outside substations is gradually increasing, and the testing demand for distributed linkage is also gradually increasing. In particular, in the scenes of relay protection and electrical control logic verification, the testing system can control and observe the behaviors of multiple devices inside the substation at the same time, and can require each test node to perform operations cooperatively at a unified time node.

[0003] The patent application with the publication number CN116027135A proposes a dynamic simulation intelligent substation relay protection cooperation performance test scheme through a three-layer architecture of "simulation test platform + control host + test terminal", realizes whole-station cross-interval protection cooperation testing. The patent application with the publication number CN106569404A proposes a secondary device clock step loss online monitoring scheme through a closed-loop system of "GPS time source + time and space node + monitoring host", and improves the time synchronization accuracy. The patent application with the publication number CN117543832A proposes a distributed device time sequence consistency test scheme through a master-slave distributed test instrument architecture connected by 5G, improves the test automation and synchronization accuracy, and the synchronous trigger time depends on "preset maximum delay" or "latest expected time".

[0004] The existing distributed test system usually adopts a master-slave structure, that is, the master control unit is responsible for test task scheduling and time management, and the slave control unit responds to the instruction, outputs the test excitation or collects the response data. However, in the actual cross-substation test, due to the long distance between the stations, the optical fiber communication has a delay, and the time when the master control signal reaches each slave control unit is difficult to keep consistent. This leads to the difficulty of each slave control unit in executing the test operation at the same time, and further affects the synchronization and accuracy of the test. SUMMARY

[0005] To solve the problems in the prior art, the application provides a multi-device cooperative automatic test system and method based on high-precision time synchronization and dynamic delay compensation. The system adopts a star architecture with one master and multiple slaves, and realizes centralized control and synchronous operation of distributed devices through a high-speed data communication link between the master and the multiple slaves. In particular, the application introduces an adaptive cross-site transmission delay measurement and dynamic compensation mechanism, combined with the Ping-Pong time synchronization method and real-time compensation algorithm, which significantly improves the synchronization accuracy of the multi-device signal output. The system also integrates a test case parameter automatic instantiation module based on an SCD file, which can intelligently generate test scripts according to the actual device configuration, and realize automatic deployment, execution and result analysis of test tasks. The system is especially suitable for cross-site and multi-device cooperative testing scenarios in smart substations, effectively solving the problem of signal asynchronization caused by communication delay, and improving the test efficiency and reliability.

[0006] The first aspect of the application provides a multi-device cooperative automatic test method based on dynamic delay compensation, which adopts the following technical scheme: According to the test object and test item classification of the secondary equipment of the substation, a parameterized test case template library is constructed, and each template contains configuration items such as pressure plate / control word configuration, output state sequence, logic judgment rule and prompt check; According to the test requirements input by the user, a multi-level matching strategy is called to search for a matching template in the parameterized test case template library to generate a candidate template; the host side and the to-be-tested side substation SCD files are parsed, and the candidate template is instantiated into a test script; The host loads the test script to generate test instructions and transmits them to the slave of the to-be-tested side substation, and the slave drives the output feedback signal according to the test instructions; the host adjusts the time parameters of the test instructions at the master and slave ends according to the time compensation mechanism, so that the multiple substation slaves inject test signals at the actual synchronization time; during the test process, the host starts the compensation mechanism to process the real-time fluctuations of the transmission delay; The host collects the data feedback from the multiple slaves and compares it with the expected results to determine whether the test is passed; for intra-zone faults, it checks whether the line protection device correctly issues a protection signal; for extra-zone faults, it checks whether the signal remains unchanged.

[0007] Further, in each parameterized test case template: The pressure plate / control word configuration is used to configure the control word and soft pressure plate state of the optical fiber differential protection; the output state sequence is used to set the voltage, current amplitude and sequence under normal and fault conditions; the logic judgment rule is used to define the expected device action behavior based on a logic expression; and the manual prompt check is used to remind the test personnel to check the device display, alarm information and event record.

[0008] Further, the multi-level matching strategy comprises: According to the test object type and the test item name, a keyword completely matched basic candidate template is screened out from the parameterized test case template library to form a candidate template list; When the test object type and the test item name are not completely matched with the parameterized test case template, fuzzy matching is called for screening.

[0009] Further, the fuzzy matching step comprises: Three-dimensional knowledge features, voltage level, test object type and test item name, are constructed, and the voltage level is extracted from the test requirement text input by the user; After the three-dimensional knowledge features are approximately mapped with the three-dimensional knowledge base of the test case, similarity calculation is performed with the parameterized test case template; the similarity calculation method is to calculate the semantic similarity of the mapped three-dimensional knowledge features and the voltage level, test object type and test item name in the parameterized test case template, and then to sum up the weighted values; Templates with a similarity greater than a set standard value are included in the candidate template list; if there is a candidate template with a similarity greater than the set standard value but with a mismatched voltage level, it is further verified whether to be retained in the candidate template list.

[0010] Further, the time compensation mechanism comprises: The master calculates the total compensation value by combining the minimum processing delay inherent to each slave hardware through the Ping-Pong time synchronization program The single one-way transmission delay between the secondary master and the slave is obtained by filtering the transmission delay reference value of each slave ; After each slave receives the test instruction, it measures its dynamic processing delay in real time and sends it to the master; The master receives , adds and to calculate the total compensation value ; If the target synchronization time is , the actual sending time of the test instruction by the master is .

[0011] Further, the periodic compensation mechanism comprises: According to the test accuracy requirement, the trigger interval of the periodic compensation mechanism is configured; At each trigger, the master calls the Ping-Pong time synchronization to obtain the real-time transmission delay , which is the single one-way transmission delay calculated in real time; ​Transmitting a real-time delay with a reference value of transmission delay calculating a difference value if the absolute value of the difference value is less than or equal to a tolerance threshold of delay fluctuation, keeping the total compensation amount unchanged if the absolute value of the difference value is greater than the tolerance threshold of delay fluctuation, updating the reference value of transmission delay for the value of real-time transmission delay recomputing .

[0012] Further, the host receives and aggregates the data uploaded by each slave, compares the received signal with the expected result, judges whether the test item passes, and generates a test report; The report includes test basic information, tester output, device displacement information, test comparison result and test conclusion; The comparison content includes: In the case of in-zone fault, analyze the MMS displacement information and GOOSE displacement information of the line protection devices at the master and slave ends, and check whether the line protection devices correctly send MMS optical fiber differential protection signals and GOOSE protection action signals; In the case of out-of-zone fault, check whether the MMS optical fiber differential protection signals and GOOSE protection action signals of the line protection devices at both ends remain unchanged.

[0013] The second aspect of the application provides a multi-device cooperative automatic test system based on dynamic delay compensation, which adopts the multi-device cooperative automatic test method of the first aspect of the application, and the system comprises: a template library construction module; for constructing a parameterized test case template library according to the test objects and test items of the substation secondary equipment, each template containing configuration items such as pressure plate / control word configuration, output state sequence, logic judgment rule and prompt check; a candidate template generation module; for calling a multi-level matching strategy according to the test requirements input by the user, searching for a matching template in the parameterized test case template library to generate a candidate template; and parsing the host side and the test side substation SCD file to instantiate the candidate template into a test script; a dynamic delay compensation module; for generating test instructions by loading the test script on the host and transmitting the test instructions to the slave of the test side substation, and driving the slave to output feedback signals according to the test instructions; and adjusting the time parameters of the test instructions at both ends of the master and slave according to a time compensation mechanism, so that the slaves of multiple substations inject test signals at the actual synchronization time; and starting a follow-up mechanism to process the real-time fluctuation of transmission delay during the test process; The feedback module is used for judging whether the test is passed by comparing the data of the feedback of the plurality of slaves with the expected result through the host; for the fault in the area, checking whether the line protection device correctly sends the protection signal; for the fault outside the area, checking whether the signal remains unchanged.

[0014] Compared with the prior art, the application has the beneficial effects that: (1) The synchronization accuracy is improved: the existing distributed test system does not design a special compensation mechanism for the cross-station communication delay, resulting in time deviation of the output signals of multiple devices. The application accurately calculates the signal transmission delay between substations through Ping-Pong time measurement, and implants a time compensation mechanism in the control chip. The delay is used as a compensation amount to dynamically adjust the signal sending time, ensuring that the slave receives the signal in strict synchronization with the local clock, and solving the core problem of signal asynchronization in cross-station testing.

[0015] (2) The test efficiency and automation level are improved: the existing technology relies on manual writing of test scripts, and needs to repeatedly modify parameters when adapting to different devices and projects, which is time-consuming and prone to errors. The application constructs a test case template library containing multiple test objects (such as line protection, main transformer protection, etc.) and projects (such as SV / GOOSE test, fixed value verification, etc.), and automatically instantiates general parameters to generate test scripts in combination with SCD files, realizing the transformation from "manual writing" to "intelligent generation", shortening the test preparation time, and reducing human operation errors.

[0016] (3) Excellent system scalability and compatibility: a master-slave star structure is adopted, the host as the only control source can flexibly access multiple slaves, supporting different voltage levels and different types of secondary devices (such as measurement and control devices, intelligent terminals, etc.) to access; the test case template library adopts a flexible configuration method, new device / project templates can be conveniently added through a graphical interface or a configuration file to adapt to new test requirements brought by the upgrading of smart substations.

[0017] (4) The reliability of test results is enhanced: the host receives the data such as GOOSE messages and MMS messages collected by the slave through a real-time communication interface, automatically compares the actual signal with the expected result in combination with the preset logic, generates a standardized test report, avoids the subjectivity and omissions of manual interpretation, and improves the consistency and traceability of test results. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 It is a multi-device collaborative automatic test system architecture based on time synchronization compensation algorithm; Figure 2 It is a multi-device collaborative automatic test method flow chart based on time synchronization compensation algorithm. DETAILED DESCRIPTION

[0019] In order to make the purposes, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. The embodiments described in the present application are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art without creative labor based on the spirit of the present application shall fall within the protection scope of the present application.

[0020] In order to make the skilled in the art better understand the technical solutions provided by the embodiments of the present application, first, a brief description will be given to some technical features involved in the solutions: SCD file: a standardized file format used to describe the configuration and communication settings of all IEDs (Intelligent Electronic Devices) in a smart substation. In the SCD file, common information includes basic information such as the name, number, and physical topology of the substation, as well as detailed attributes and configurations of each device (such as circuit breakers, transformers, switches, etc.), and network-related information such as communication configuration, communication protocol, and communication interface. The SCD file can be used in various stages of the design, construction, testing, and operation of a smart substation.

[0021] MMS (Manufacturing Message Specification): In a smart substation, MMS messages are a standard protocol for communication. MMS messages can carry various types of data, including control commands, status reports, event records, etc. The station control layer and the bay layer model the actual devices using object-oriented modeling through MMS messages, thereby enabling interoperability between different manufacturing devices in a network environment.

[0022] GOOSE (Generic Object Oriented Substation Event): a message passing mechanism. It can be used to transmit real-time protection information between multiple IEDs in a smart substation. It can also be used to transmit circuit breaker status and other critical control signals.

[0023] SV (Sampled Values): the values obtained by sampling and digitizing electrical quantities in a power system through sensors. The SV protocol is a communication protocol for transmitting analog quantity sampling values. The SV protocol is mainly used for high-speed transmission of analog data such as current, voltage, and other measurement values between IEDs in a smart substation.

[0024] As an example, the following test system is constructed: (1) Hardware composition: refer to Figure 1The system comprises one host computer (core control unit) and multiple slave computers (execution units), the host computer and the slave computers establish a high-speed communication link through a standby optical fiber of a substation, and meet the low-delay data transmission requirement in a cross-station scenario.

[0025] (2) Software deployment The host computer loads core control software, integrates a time synchronization and compensation module, a test script generation module, a data acquisition and analysis module, and is responsible for test task scheduling, delay measurement and compensation, script analysis, and result analysis.

[0026] The slave computers load execution unit software, carry a multi-signal cooperative output module, receive timing compensation instructions issued by the host computer, complete the synchronous output of GOOSE / SV signals, analog excitation signals, and hard-wired signals, and real-time acquisition of measured device response data.

[0027] As an embodiment of the present application, a specific implementation of a multi-device cooperative automatic testing method based on dynamic delay compensation is provided, as shown in Figure 2 .

[0028] Step 1: Construct a parameterized test case template library; According to the test object (such as line protection, main transformer protection, etc.) and test items (such as SV / GOOSE test, fixed value verification, etc.), templates are constructed, each template includes the following core configuration items: (1) Press plate / control word configuration: configure the control word and soft press plate state of the optical fiber differential protection; (2) Output quantity state sequence: set the voltage, current amplitude and sequence under normal and fault states; (3) Logic judgment rule: define the expected device action behavior based on a logic expression; (4) Manual prompt check: remind the test personnel to check the device display, alarm information, event record, etc.

[0029] As an embodiment of the present application, the user configures the template through a self-developed graphical configuration tool software, which facilitates the management of the template library and the editing and modification of the template content / test item / test parameter, so as to adapt to the needs of different devices or test scenarios. For example, in response to the technical upgrade of the intelligent substation, the template can flexibly configure the parameters in the "optical fiber differential protection test", meeting the needs of different substation devices or test scenarios.

[0030] The following gives a template example of "control word state of 220kV line protection device": (1) Pressboard / control word configuration: Set the "optical fiber differential protection soft pressboard" and "optical fiber differential protection control word" states of the devices S1_PL220 (local line protection device) and S2_PL220 (opposite line protection device) to "put in". According to actual needs, other pressboards or control words that affect test results (such as backup protection, reclosing, etc.) are also configured accordingly.

[0031] (2) Output quantity state sequence: In the normal state, the voltage Ua / Ub / Uc is set to ${Un} (rated voltage placeholder), and the current is set to ${In} (rated current placeholder); in the intra-zone fault state, the current Ia is set to "1.2x${S1_PL22_diff_action_current_set}", and the current value at fault is configured according to actual conditions.

[0032] (3) Logic judgment rule: Use logical expressions to describe the expected action behavior of the device under test. For intra-zone faults, determine whether the line protection device can correctly act after the fault occurs. Some example expressions are given below: [S1_PL220_MMS_diff_protection_start_ACT]=1&& [S1_PL220_GSE_protection_action_ACT]=1&& [S2_PL220_MMS_diff_protection_start_ACT]=1&& [S2_PL220_GSE_protection_action_ACT]=1 This expression means that the tester should receive the MMS optical fiber differential protection start signal and the GOOSE protection action signal from both sides of the substation, ensuring that the line protection device can correctly start and act when an intra-zone fault occurs. S1 and S2 are substation identifiers, S1 is the local substation, and S2 is the opposite substation; PL220 is the name identifier of the general 220kV line protection device, which should be the actual device name identifier after instantiation.

[0033] (4) Artificial inspection prompt: Prompt the tester to check the device display interface to ensure "optical fiber differential protection start" and "protection action". Prompt the tester to check the event record of the protection device to ensure that the fault occurrence time, fault type, protection action time, etc. information is correctly recorded.

[0034] The test case template is saved in JSON format.

[0035] Step 2: Select the target template according to the test requirements and instantiate; automatically retrieve the test template based on the test requirements and generate an instantiated test script combined with the SCD file.

[0036] 2.1: Receive user input test requirements, including test objects and test items; call intelligent matching algorithm to retrieve matching templates in the pre-built test case template library to generate a candidate template set for the test personnel to screen and confirm the target template.

[0037] As an embodiment of the present application, when the test personnel needs to test, the test object can be selected as the line protection device, and the test item can be selected as the optical fiber differential protection verification. The system extracts the corresponding optical fiber differential protection verification test template of the line protection device through the intelligent matching algorithm, and the test personnel further confirms it.

[0038] The core strategy of the intelligent matching algorithm is to realize accurate retrieval by combining multi-dimensional parameters and multi-level matching mechanism. Specifically, it includes: Exact match: first, the test object type (such as "line protection device") and the test item name (such as "optical fiber differential protection verification") are matched by keywords to filter out the basic candidate templates.

[0039] Fuzzy matching: when there is a similarity in the name (such as "optical fiber differential verification" and "optical fiber differential protection verification"), fuzzy matching will be performed to expand the range of candidate templates.

[0040] The specific implementation principle and steps of fuzzy matching are as follows: First, a structured three-dimensional knowledge base is established based on the voltage level, test object, and test item of the test case template. Table 1 below gives an example.

[0041] Table 1 Three-dimensional knowledge base of test case templates

[0042] Then, the fuzzy matching process is executed according to the following steps: (1) The user input requirement text is disassembled by keywords to extract three-dimensional knowledge feature words of voltage level, test object, and test item; (2) The extracted three-dimensional knowledge features are approximately mapped to the specialized knowledge base to unify the user's fuzzy expression and the knowledge base standard content; (3) The mapped voltage level, test object type, and test item name are respectively calculated for semantic similarity with the voltage level, test object type, and test item name in the parameterized test case template, and then weighted sum is performed, represented as: ; In the formula, is the total similarity; , and are the semantic similarities of voltage level, test object type, and test item name in three-dimensional knowledge features and test case templates, respectively.

[0043] In this embodiment, the total similarity between user requirements and knowledge base templates is calculated (maximum score 1.0) according to the weights of test object (0.4), test item (0.2), and voltage level (0.4). As an optional implementation method in this embodiment, semantic similarity can be calculated using cosine similarity.

[0044] (4) Select templates with a total similarity of ≥0.7 and include them in the candidate list. For candidate templates with mismatched voltage levels, prompt that the compatibility needs to be confirmed. 2.2: Import the SCD files of the two substations (the two substations to be tested) respectively, parse the XML structure of the SCD files according to the current specifications, extract the relevant IED information (equipment name, equipment type, and bay), obtain the MMS, GOOSE, and SV signal configurations, and match the station control layer and process layer communication configurations of the device.

[0045] 2.3: Based on the information extracted from the SCD file, replace the placeholders in the template (such as device names, signal points, electrical quantities, etc.) with actual parameter values. For example, in the sample test case template above: Replace the equipment name "S1_PL220" with the line protection device "PL2201A" of a certain substation on this side, and replace the equipment name "S2_PL220" with the line protection device "PL2212A" of a certain substation on the opposite side; The electrical quantity “Un” represents the rated voltage of the device, which should be replaced with the actual rated voltage of the device, 57.735V. The electrical quantity “In” represents the rated current of the device, which should be replaced with the actual rated current of the device, 5A. Replace the signal point “S1_PL22_MMS_Fiber Optic Differential Action” with the actual signal point reference of the device “PL2201APROT / PDIF1.Op.stVal”, and do the same for other parameters.

[0046] Generate scripts that conform to the execution system's syntax rules; these scripts are used to automate test execution.

[0047] Step 3: Convert the instantiated test script into instructions and coordinate the output at both ends; 3.1: The host loads the instantiated test script for cross-site fiber optic differential testing, and generates test instructions that the machine can recognize based on the output state sequence parameter information in the test script. The test instructions include information such as voltage and current output time, voltage and current amplitude and phase angle, output duration, GOOSE output state value, and state switching mode. The test instructions are transmitted to the slave devices at both substations through the remote communication interface.

[0048] 3.2: Test commands are transmitted through the communication channel between the master and slave devices. After receiving the test command, the slave device drives its own signal output module to output excitation and signal according to the content of the test command.

[0049] 3.3: The host adjusts the timing parameters of the test commands at both ends of the master and slave based on the time compensation mechanism to ensure that the slave devices at both substations inject test signals at the "actual synchronization moment". The time compensation mechanism in this application includes the following steps: 3.3.1 The host starts the Ping-Pong time synchronization program, and obtains the slave time data through multiple consecutive time synchronization measurements and the Kalman filter algorithm. The cross-site transmission delay baseline value, This represents the number of slave devices that need to be synchronized. The calculation method for the cross-site transmission delay baseline is as follows: (1) The master sends data to the slave. Send the first frame synchronization signal, carrying the host's transmission timestamp T1 (based on the host's built-in high-stability crystal oscillator clock, with an error of <±1ns). (2) Slave After receiving the synchronization signal, the receiving completion time T2 is immediately recorded through the hardware interrupt mechanism (to avoid delay errors caused by software polling), and T2 is encapsulated into a return signal and sent back to the host. (3) The host receives the return signal, records the reception timestamp T3, calculates the single-pass transmission delay, and expresses it as follows: ; in, To minimize the inherent "receive-return" processing delay of the slave hardware, the configuration is pre-stored in the local configuration after factory calibration and is automatically loaded upon power-on. (4) Repeat the above steps. 5 times (e.g., 5 times) to obtain Group (respectively denoted as) ; (5) The Kalman filter algorithm is used to... The data is processed as follows: Using the state equation constraint of "substation fiber optic transmission delay fluctuation range < ±200ns", outliers caused by temperature and electromagnetic interference are filtered out, and a stable transmission delay reference value is output. .

[0050] 3.3.2, Master combined with transmission delay + slave Dynamic delay processing and calculation of the final total compensation ensure strict alignment between the slave signal output time and the target synchronization time, thereby adapting to hardware differences between different slave models: (1) Slave Upon receiving the test command, the system measures the dynamic processing delay of its own "command parsing - signal output preparation" process in real time. (i.e. the time consumption from the completion of the instruction cache to the readiness of the SV / GOOSE signal generation unit, which is collected by the slave local timer (accuracy <±5ns) in real time), and is actively sent to the master through the "delay reporting frame"; (2) Master receiving After that, the slave corresponding total compensation: ; (3) If the target synchronization time is (i.e. the time when both ends of the slave inject test signals simultaneously), the master adjusts the "actual sending time" of the test instruction to , ensuring that the slave outputs the test signal accurately at .

[0051] After measuring the transmission and processing delay between the master and each slave (such as , ), the master adjusts the issuance time of the instruction according to the total compensation of these slaves, ensuring that each slave receives the instruction at the same time. For example, if the test project requires to execute excitation output at , the master will issue instructions to slave 1, slave 2, etc. at , , etc. After transmission and processing delay, ensure that each slave outputs excitation signal accurately at .

[0052] 3.3.3, during the test execution process, the master starts the periodic compensation mechanism to cope with the real-time fluctuation of the transmission delay: (1) Every 100ms (can be configured according to the test accuracy requirement, the shortest support interval is 50ms), the master triggers "simplified Ping-Pong time synchronization" once (only transmit T1, T2 timestamp, frame length is compressed to 1 / 3 of the original time synchronization frame, time consumption <1ms, does not affect the continuity of test signal output); (2) The master calculates the real-time transmission delay according to the latest time synchronization result, the real-time transmission delay is the real-time calculated single one-way transmission delay, that is, the latest .

[0053] Compare the real-time transmission delay with the delay reference value ; If (the fluctuation is within the allowed range), keep unchanged; if , immediately update to , and recalculate , through the "compensation amount update frame" to the slave , real-time adjustment of the sending timing of subsequent test instructions. Wherein, 50ns is the delay fluctuation tolerance threshold.

[0054] It should be noted that in some single substation test scenarios, the master and slave are in the same substation, and the distance is short, so the communication delay between the master and slave can be ignored, but in the cross-substation test scenario with long distance, the communication delay between the master and slave is a non-negligible factor, and the above time synchronization process is necessary.

[0055] In the test process, the master coordinates the output time of the slave at both ends to ensure the synchronization of the output within 2us. For example, when simulating an internal fault, in order to ensure that the fault currents at both ends are injected at the same time, and considering the delay of optical fiber transmission, the time of the test instructions issued to both ends is coordinated according to the length of the optical fiber and the transmission speed.

[0056] Step 4: Collect operation data and feedback, generate report after comparison of results; 4.1: The slave of the two-end substation collects the GOOSE message and MMS message of the line protection device at both ends in real time, and transmits them to the master for data processing and analysis.

[0057] Specifically, the GOOSE message is collected through the optical fiber connected to the measured device, and the MMS message is collected through the Ethernet port connected to the switch in the substation and the IEC61850 protocol communication link established with the measured device.

[0058] 4.2: The master collects the data uploaded by each slave, compares the received signal with the expected result of the above logical judgment items through the data analysis module, judges whether the test item passes or not, and generates a test report.

[0059] Specifically, for the internal fault condition, the MMS displacement information and GOOSE displacement information of the line protection at both ends are analyzed to check whether the line protection device correctly issues the MMS optical fiber differential protection signal and the GOOSE protection action signal. For external fault conditions, check whether the MMS optical fiber differential protection signal and the GOOSE protection action signal of the line protection device at both ends remain unchanged.

[0060] The test report includes test basic information, tester output, device displacement information, test comparison results, and test conclusions, etc. Table 2 gives an example.

[0061] Table 2 Test report example

[0062] As an embodiment of the present application, a multi-device cooperative automatic test system based on dynamic time compensation is disclosed, which adopts the specific implementation of the multi-device cooperative automatic test method, and the system comprises: A template library construction module is used to construct a parameterized test case template library according to test objects and test items of substation secondary equipment, and each template contains modules such as platen / control word configuration, output quantity state sequence, logic judgment rule and prompt inspection. A candidate template generation module is used to call a multi-level matching strategy according to user input test requirements, search for matching configuration items in the parameterized test case template library to generate a candidate template, and parse host side and to-be-tested side substation SCD files to instantiate the candidate template into a test script. A dynamic time compensation module is used to generate test instructions by loading the test script on the host and transmitting the test instructions to the slave of the to-be-tested side substation, the slave drives output feedback signals according to the test instructions, and the host adjusts time parameters of test instructions at both ends according to a time compensation mechanism, so that multiple substation slaves inject test signals at an actual synchronization time; during the test process, the host starts a compensation mechanism to process real-time fluctuations of transmission delay. An execution feedback module is used to aggregate data fed back by multiple slaves through the host and compare the data with expected results to determine whether the test is passed; for intra-zone faults, it is checked whether the line protection device correctly issues a protection signal; for out-of-zone faults, it is checked whether the signal remains unchanged.

[0063] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them, although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that the specific embodiments of the present application can be modified or replaced equivalently without departing from the spirit and scope of the present application, any modification or equivalent replacement thereof should be covered within the protection scope of the claims of the present application.

Claims

1. A method for dynamic delay compensation based multi-device cooperative automatic testing, characterized in that, The application relates to a kind of parameterized test case template library based on substation secondary equipment, and the application also relates to a kind of multi-device cooperative automatic test method based on dynamic delay compensation. The application comprises: According to the test object and test item classification of substation secondary equipment, a parameterized test case template library is constructed, and each template contains configuration items such as pressure plate / control word configuration, output quantity state sequence, logic judgment rule and prompt check; According to the test requirements input by a user, a multi-level matching strategy is called to search for a matching template in the parameterized test case template library to generate a candidate template; and the host side and the substation SCD file of the side to be tested are parsed to instantiate the candidate template into a test script; The host loads the test script to generate test instructions and transmits the test instructions to the slave of the substation to be tested; and the slave drives an output feedback signal according to the test instructions; The host adjusts the time parameters of the test instructions at the host and slave ends according to a time compensation mechanism, so that the slaves of multiple substations inject test signals at an actual synchronous time; during the test, the host starts a pursuit mechanism to process real-time fluctuations of transmission delay; The host collects data fed back by the slaves and compares the data with expected results to determine whether the test is passed; 2. The method of claim 1, wherein, For an in-zone fault, whether the line protection device correctly sends a protection signal is checked; and for an out-zone fault, whether the signal remains unchanged is checked. In each parameterized test case template:

3. The method of claim 1, wherein, The pressure plate / control word configuration is used to configure the control word and soft pressure plate state of fiber differential protection; the output quantity state sequence is used to set the voltage, current amplitude and sequence in normal and fault states; the logic judgment rule is used to define the expected device action behavior based on a logic expression; and the prompt check is used to remind a tester to check device display, alarm information and event records. The multi-level matching strategy comprises: According to the test object type and test item name, a basic candidate template with complete keyword matching is filtered out from the parameterized test case template library and included in a candidate template list; 4. The method of claim 3, wherein, When the test object type and test item name do not completely match the parameterized test case template, fuzzy matching is called to filter. The steps of the fuzzy matching comprise: A three-dimensional knowledge feature is constructed, including voltage level, test object type and test item name, which are extracted from the test requirement text input by a user; After the three-dimensional knowledge feature is approximately mapped to a three-dimensional knowledge base for constructing a test case, a similarity calculation is performed on the parameterized test case template; the similarity calculation is performed by calculating the semantic similarity of the mapped three-dimensional knowledge feature and the voltage level, test object type and test item name in the parameterized test case template and then performing weighted summation; 5. The method of claim 1, wherein, Templates with a similarity greater than a set standard value are included in the candidate template list; if there is a candidate template with a similarity greater than the set standard value but with unmatched voltage level, the candidate template is further verified to determine whether to be retained in the candidate template list. The host computer calculates the minimum processing delay of each slave computer through a Ping-Pong time procedure The single one-way transmission delay between the secondary master and the slave is obtained by filtering the transmission delay reference value of each slave computer ; Each slave receives test instructions, and measures its own dynamic processing delay in real time and sends to the host The host receives The total compensation is calculated by adding The total compensation is calculated by adding The total compensation is calculated by adding ; If the target synchronization time instant is , then the host will test the actual sending time of the instruction .

6. The method of claim 1, wherein, The time compensation mechanism comprises: The pursuit mechanism comprises: At each trigger, the host calls Ping-Pong pair time to get real-time transmission delay , which is a real-time calculated single one-way transmission delay; transmission delay reference value the difference value; If the absolute value of the difference is less than or equal to the delay fluctuation tolerance threshold, the total compensation amount is maintained If the absolute value of the difference is greater than the delay fluctuation tolerance threshold, the transmission delay reference value is updated The value of the real-time transmission delay is recalculated . According to the test accuracy requirement, the trigger interval of the pursuit mechanism is configured.

7. The multi-device cooperative automatic test method based on dynamic delay compensation according to claim 1, wherein The host receives and collects data uploaded by each slave, compares the received signal with an expected result to determine whether a test item is passed, and generates a test report. The report includes test basis information, tester output, device displacement information, test comparison results and test conclusion; The comparison content includes: In the case of intra-zone fault, the MMS displacement information and GOOSE displacement information of the master and slave line protection devices are analyzed to check whether the line protection devices correctly send MMS optical fiber differential protection signals and GOOSE protection action signals; In the case of inter-zone fault, it is checked whether the MMS optical fiber differential protection signals and GOOSE protection action signals of the line protection devices at both ends remain unchanged.

8. A multi-device cooperative automatic test system based on dynamic delay compensation, adopting the multi-device cooperative automatic test method according to any one of claims 1-7, characterized in that, The system comprises: A template library construction module for constructing a parameterized test case template library according to test objects and test items of substation secondary equipment, each template containing configuration items such as pressure plate / control word configuration, output state sequence, logic judgment rule and prompt check; A candidate template generation module for calling a multi-level matching strategy according to user input test requirements, searching for a matching template in the parameterized test case template library to generate a candidate template, and parsing files of host side and to-be-tested side substation SCD to instantiate the candidate template into a test script; A dynamic time compensation module for generating test instructions by host loading of the test script and transmitting the test instructions to slave machines of the to-be-tested side substation, the slave machines driving output feedback signals according to the test instructions, and the host adjusting time parameters of test instructions at both ends according to a time compensation mechanism to enable multiple substation slave machines to inject test signals at an actual synchronous time; during the test, the host starts a pursuit mechanism to process real-time fluctuations of transmission time delay; An execution feedback module for aggregating data feedback from multiple slave machines by the host and comparing the data with expected results to determine whether the test is passed; for intra-zone faults, it is checked whether the line protection devices correctly send protection signals; for inter-zone faults, it is checked whether the signals remain unchanged.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The computer program, when loaded into a processor, implements the multi-device cooperative automatic test method according to any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program, when executed by a processor, implements the multi-device cooperative automatic test method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Secondary device clock out-of-step online monitoring system and secondary device clock out-of-step online monitoring method

    CN106569404A

  • System and method for testing relay protection cooperation performance of intelligent substation based on dynamic analog simulation

    CN116027135A

  • Distributed device time sequence consistency test method and system

    CN117543832A