Relay protection plug-in automatic simulation test method and system based on general backboard
By using an automated simulation test method for relay protection plug-in based on a universal backplane, a test data model is dynamically constructed and multi-dimensional excitation signals are utilized. This solves the limitations of plug-in testing in existing technologies, realizes universal testing at the plug-in level, improves operation and maintenance efficiency and fault location accuracy, and reduces operation and maintenance risks.
Patent Information
- Application Number
- CN202511681541.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-17
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, the plug-in testing methods for relay protection devices have limitations. They cannot penetrate to the independent functional monitoring and in-depth diagnosis of individual plug-ins during whole-machine testing. Furthermore, there are many types of dedicated debugging instruments, which makes operation and maintenance management difficult, cannot be effectively extended to the field, and increases the fault handling cycle and power grid operation risks.
An automatic simulation test method for relay protection plug-in based on a universal backplane is adopted. By parsing the plug-in configuration file, the test data model is dynamically constructed. Multi-dimensional excitation signals are used to simulate power system operating conditions to achieve universal testing at the plug-in level. Combined with the channel multiplexing architecture of a two-level analog switch, the functional modes of the test terminals are dynamically allocated to achieve plug-and-play functionality.
It significantly improves the efficiency of operation and maintenance of relay protection devices and the level of spare parts management, enables accurate fault tracing, reduces fault handling cycle and power grid operation risks, and enhances the flexibility and cost-effectiveness of the system.
Smart Images

Figure CN121856658A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power system relay protection technology, and relates to an automatic simulation test method and system for relay protection plug-in based on a general backplane. Background Technology
[0002] As the first line of defense for power grid safety, the reliability of relay protection devices is determined by the quality of their internal functional modules. A complete protection device is usually composed of modules that perform different functions such as analog signal acquisition, digital input / output, logic calculation, and communication management. A latent fault in any module may cause the entire protection system to fail.
[0003] Currently, the industry's testing and verification of relay protection is limited at two levels: whole-system testing and component testing. At the whole-system testing level, both traditional relay protection testing instruments and emerging digital twin technology focus on the overall external behavior of the protection device, failing to penetrate the device's internal structure for independent functional monitoring and in-depth diagnostics of individual components. At the component testing level, existing methods heavily rely on dedicated testing instruments. This one-to-one correspondence between instruments and component types leads to an ever-increasing variety of testing instruments as equipment iterates and component types accumulate. This not only imposes a significant burden on equipment management and maintenance in production but also prevents the effective extension of high-quality component-level testing capabilities to field operation and maintenance.
[0004] When equipment malfunctions and requires replacement of spare parts, the lack of specialized testing equipment for various models on-site makes it difficult for maintenance personnel to quickly verify the integrity of spare parts or to perform preliminary diagnosis of faulty replacements. This inherently carries the risk of replacing faulty parts with faulty ones, and all suspected faulty parts must be returned to the factory for testing, significantly extending the troubleshooting cycle. Furthermore, the quality inspection of incoming spare parts is also limited by the scarcity and complexity of the complete equipment testing environment, often requiring a power outage and disassembly before verification can be performed, undoubtedly increasing the safety risks and downtime of power grid operations. Therefore, developing a universal testing technology that covers multiple types of components and is applicable throughout their entire lifecycle has become a key technical requirement for improving the efficiency and effectiveness of relay protection operation and maintenance. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides an automatic simulation testing method and system for relay protection plug-ins based on a universal backplane. This system achieves universal testing at the plug-in level, enabling a single testing system to replace multiple models of dedicated debugging instruments. This significantly reduces the number and types of relay protection plug-in debugging instruments required for operation and maintenance, and substantially improves the efficiency of operation and maintenance of relay protection devices and the level of spare parts management.
[0006] The present invention adopts the following technical solution.
[0007] The first aspect of this invention proposes an automatic simulation test method for relay protection plug-in based on a universal backplane, comprising:
[0008] Step 1: Connect the relay protection module under test to the universal backplane;
[0009] Step 2: Parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation plan;
[0010] Step 3: Based on the above operating scheme, set real-time simulation parameters, and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system;
[0011] Step 4: Collect the response data of the plug-in under the excitation signal through the general backplane and compare it with the expected response to obtain the test results.
[0012] Preferably, the general backplane module adopts a channel multiplexing architecture based on two-level analog switches, including four functional buses, a functional routing layer, a channel routing layer, a main control module, and multiple external test terminals.
[0013] The functional routing layer includes a four-to-one analog switch and four independent hardware loops. The four channels of the four-to-one analog switch are respectively connected to one end of the four hardware loops, and the common terminal of the four-to-one analog switch is connected to the general signal pin of the main control module.
[0014] The four functional buses are analog input, analog output, digital input, and digital output buses, respectively, and are connected to the other end of the four hardware loops.
[0015] The channel routing layer includes four sets of multiplexed analog switches. The common terminal of each set of multiplexed analog switches is connected to one of the functional buses, and each channel terminal is connected in parallel to the same multiple external test terminals.
[0016] Preferably, the general backplane module coordinates with the main control module to control the selection state of the functional routing layer and the channel routing layer, dynamically assigning any external test terminal to any hardware loop, thereby realizing software definition and time-division multiplexing of a single test terminal among the four functional modes of analog input, analog output, digital input and digital output.
[0017] Preferably, the general-purpose signal pins of the main control module include at least one reconfigurable pin of an analog front-end chip; the analog front-end chip integrates an analog-to-digital converter, a digital-to-analog converter, and a programmable gain amplifier;
[0018] The operating mode of the reconfigurable pin can be dynamically configured by software instructions, so that it functions as the following four modes respectively: high-precision ADC sampling channel in analog input mode, DAC output channel or high-resolution PWM output in analog output mode, digital input GPIO in digital input mode, and digital output GPIO in digital output mode.
[0019] Preferably, in step 2, parsing and extracting the semantic information from the relay protection configuration file of the plug-in includes:
[0020] Read the relevant relay protection configuration file of the parsing plugin, and identify and structure three types of semantic information from the file:
[0021] The hardware configuration of the plug-in, including the location, type, and range of analog / digital input / output channels, forms a hardware interface data object;
[0022] Communication interaction configuration, including the internal communication protocol types between plugins, communication point table and its data attributes, forms a communication interface data object;
[0023] The software logic configuration includes the protection element type, setpoint parameters, and logical relationships between the element and specific I / O channels and communication variables, forming a protection logic data object.
[0024] Preferably, in step 2, based on the extracted semantic information, the corresponding test data model is dynamically instantiated, including:
[0025] Dynamically instantiate hardware loop models: automatically match plug-in hardware interface data objects with physical resource libraries to generate specific wire connection schemes and clarify the functional routing and channel routing schemes of the tester;
[0026] Dynamic instantiation of communication simulation model: Based on the communication interface data object, initialize the corresponding protocol stack, and dynamically display the monitoring and control page of communication signals on the test host computer human-machine interface;
[0027] Dynamic instantiation of protection logic behavior model: Based on the protection logic data object, an instance is created for each identified protection element, and its set value and delay parameters are injected; the built-in relay protection knowledge base is queried to set the initial state of all IO and communication signals in accordance with logic.
[0028] Preferably, in step 3, the multi-dimensional excitation signal includes analog signals, digital signals, time synchronization signals, and bus communication protocols.
[0029] Preferably, in step 4, the response data is visualized, and key events defined in the event reference table in the relay protection configuration file are actively monitored and recorded.
[0030] Based on the custom configuration, the timing logic of the input and output signals is tracked and recorded;
[0031] When a program malfunction is detected, the high-frequency recording function is triggered to completely save the inter-board communication messages, analog quantity sampling sequences, and internal state variables before and after the malfunction, so as to accurately locate the fault and perform root cause analysis.
[0032] A second aspect of this invention proposes an automatic simulation test system for relay protection plug-ins based on a universal backplane, comprising:
[0033] A general-purpose hardware backplane module for connecting to the relay protection plug-in under test;
[0034] The configuration file parsing and operation scheme generation module is used to parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation scheme.
[0035] The real-time simulation module is used to set real-time simulation parameters based on the operation scheme and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system.
[0036] The response acquisition module is used to acquire the response data of the plug-in under the excitation signal through the general backplane and send it to the host computer.
[0037] The host computer is used to provide the relay protection configuration file for the plug-in; it compares the collected response data with the expected response to obtain the test results.
[0038] A third aspect of the present invention provides a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to perform operations according to the instructions to execute the steps of the method.
[0039] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method.
[0040] Compared with the prior art, the beneficial effects of the present invention include at least the following:
[0041] This invention uses a universal backplane and parsing configuration file semantics to understand the plugin functional logic and map it to the data model, dynamically reconstructing the backplane logic to achieve a plug-and-play plugin runtime environment. This is different from traditional pre-built test scenarios and significantly improves the system's generalization and forward compatibility capabilities.
[0042] This invention constructs a channel multiplexing architecture based on a two-stage analog switch. A general-purpose backplane module, through a main control module, collaboratively controls the selection states of the function routing layer and the channel routing layer, dynamically allocating any external test terminal to any hardware loop. This enables software-defined and time-division multiplexing of a single test terminal across four functional modes: analog input, analog output, digital input, and digital output. This solves the problems of existing technologies that use conventional analog and digital integrated circuits, resulting in complex hardware structures, numerous components leading to long signal paths, and susceptibility to interference. This invention achieves on-demand allocation and high integration of hardware resources by synchronously switching the selection states of the channel routing layer and the function routing layer via software instructions and reconfiguring the operating mode of the AFE pins, greatly improving the flexibility and cost-effectiveness of the test system.
[0043] During runtime, this invention automatically and adaptively instantiates the corresponding test data model in real time based on the semantic content of the parsed specific plugin configuration file, thereby improving the accuracy and adaptability of the testing system.
[0044] This invention advances anomaly troubleshooting from the whole-machine mode to the plug-in level by constructing a micro operating environment that matches the protection configuration. Synchronous excitation and full data recording in a high-fidelity environment provide an effective means to locate anomalies to specific plug-ins or even circuits, improving the accuracy and efficiency of anomaly location and achieving precise fault tracing.
[0045] This invention can enhance the ability to monitor the quality of the entire life cycle of plug-ins, and bring production line-level testing capabilities down to the field and spare parts warehouse. With its versatility, it can be widely used in management nodes such as spare parts plug-in inbound and outbound inspection, abnormal plug-in diagnosis under field replacement, and plug-in qualification diagnosis after repair, fundamentally eliminating the maintenance risk of replacing faulty plug-ins with faulty plug-ins. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of an automatic simulation test principle for a relay protection plug-in based on a universal backplane according to the present invention.
[0047] Figure 2 This is a flowchart of an automatic simulation test method for relay protection plug-in based on a universal backplane, according to the present invention.
[0048] Figure 3 This is a diagram of the channel multiplexing architecture of the universal backplane module of this invention based on two-stage analog switches. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of this invention.
[0050] Embodiment 1 of this invention provides an automatic simulation test method for relay protection plug-ins based on a universal backplane. It employs a universal test backplane with a programmable multi-protocol communication interface, high-precision analog output, and time synchronization function. The core of the system lies in its ability to automatically identify and parse the configuration files related to the plug-in under test (DUT), thereby automatically generating a matching collaborative operation scheme. During testing, the DUT is inserted into the backplane to perform functions such as analog and digital signal acquisition, basic relay protection logic, tripping, and transmission output. The DUT's response is recorded to verify its normal operation. This achieves a plug-and-play plug-in operating environment based on configuration file parsing, fundamentally different from the traditional debugging instrument's pre-set test environment and test cases, resulting in a significant leap in technical effectiveness. Traditional compatibility testing achieves compatibility through pre-setting numerous test scenarios. However, this invention dynamically reconstructs the logical relationships of backplane signals by parsing the semantic information of configuration files. It doesn't simply identify plug-in models, but rather understands their functions, channels, and interfaces, mapping setpoints, variable transmissions, and functional logic configurations onto a data model. This enhances the system's generalization ability and future compatibility potential, effectively solving problems such as existing relay protection testing technologies being limited to the whole-machine level and the numerous plug-in tester models from different equipment manufacturers making them difficult to use for on-site fault location. Figures 1-2 As shown, the method generates an independently running environment for testing the plugin, and the plugin's external loops are available, including:
[0051] Step 1: Connect the relay protection module under test to the universal backplane;
[0052] More preferably, the universal backplane module provides the physical interface, power supply and basic communication environment for the relay protection plug-in under test, and can be adapted to different models of relay protection plug-ins by changing the interface sub-board or software configuration.
[0053] The general-purpose backplane module includes a main control unit and various interface units;
[0054] The main control unit is used for backplane bus arbitration, timing control, multiple communication protocols, generation of bus analog and digital signals, and acquisition of bus analog and digital signals.
[0055] The various interface units are used to insert switching circuits, including CPLDs and high-speed analog switches, between the main control unit and the interface of the relay protection under test (RTD) plug-in. By modifying the CPLD logic, the electrical characteristics and pin functions of the slots are dynamically changed to adapt to different plug-ins at the software level. A DAC chip is used in conjunction with an operational amplifier circuit to generate a programmable small voltage signal to simulate the secondary output of the CT / VT. A high-stability constant-temperature crystal oscillator is integrated as a local clock source to achieve time synchronization between the test system and the RTD plug-in. A CAN bus controller is integrated to enable data exchange between intelligent plug-ins that use CAN communication.
[0056] In practical implementation, relay protection modules include front panel terminals and back panel terminals. Front panel terminals are used to connect external circuits, while back panel terminals are used for data exchange between modules. Within the same series of protection devices, the back panel terminals are fixed in position on power, communication, and time synchronization signal terminals. However, differences and even conflicts exist in the definitions of sampling source and receiver terminals, as well as input and output circuits, requiring a single pin to support both output and input modes. In the field of relay protection testing, to achieve connection between a universal back panel and modules with different signal specifications, existing technologies employ conventional analog and digital integrated circuits. For example, fixed analog-to-digital converter (ADC) and digital-to-analog converter (DAC) chips are used, with signal paths switched via external physical switches, jumpers, or relay arrays. This approach suffers from complex hardware structures, excessive components resulting in long signal paths, and susceptibility to interference.
[0057] To address this, the present invention constructs a channel multiplexing architecture based on a two-stage analog switch, the architecture comprising:
[0058] A functional routing layer is implemented by a four-to-one analog switch and four independent hardware loops; wherein, the four channels of the four-to-one analog switch are respectively connected to one end of the four hardware loops, and their common end is connected to the general signal pin of the tester's main control module.
[0059] The four functional buses are defined as analog input, analog output, digital input, and digital output buses, respectively, and the four functional buses are respectively connected to the other end of the four hardware loops.
[0060] A channel routing layer consists of four groups of multiplex analog switches. The common terminal of each group of switches is connected to a functional bus, and each channel terminal is connected in parallel to the same multiple external test terminals.
[0061] The main control module coordinates the selection state of the functional routing layer and the channel routing layer, and dynamically assigns any external test terminal to any hardware circuit, thereby realizing the software definition and time-division multiplexing of a single test terminal among the four functional modes of analog input, analog output, digital input and digital output.
[0062] The general-purpose signal pins of the main control module of the tester are implemented by at least one reconfigurable pin of an analog front-end chip;
[0063] The analog front-end chip integrates an analog-to-digital converter, a digital-to-analog converter, and a programmable gain amplifier.
[0064] The operating mode of this reconfigurable pin can be dynamically configured via software commands, so that it functions as follows in the four functional modes:
[0065] A high-precision ADC sampling channel in analog input mode, a DAC output channel or high-resolution PWM output in analog output mode, a digital input GPIO in digital input mode, and a digital output GPIO in digital output mode.
[0066] The core of the aforementioned channel multiplexing architecture based on two-stage analog switches lies in dynamically reconfiguring hardware connections through software definition, thereby achieving multi-functional multiplexing of test terminals. The following section combines... Figure 3 It will be explained in detail.
[0067] I. Hardware Architecture Implementation
[0068] like Figure 3 As shown, the system mainly includes a tester main control module, a function routing layer, a channel routing layer, and external test terminals.
[0069] The tester's main control module is centered around a high-performance analog front-end chip, such as TI's ADS858x series or ADI's AD7606 series. This AFE chip must provide at least one reconfigurable general-purpose signal pin and integrate a 16-bit or higher resolution ADC, a 14-bit or higher resolution DAC, and a programmable gain amplifier. This pin can be dynamically configured as an ADC input, DAC output, or digital GPIO via software instructions.
[0070] Functional routing layer: This layer consists of a 4-to-1 analog switch (such as ADI's ADG5412) and four independent hardware loops.
[0071] Analog input circuit: This is a signal conditioning circuit, including operational amplifiers and filtering devices, used to safely condition external high-voltage power frequency signals to the range of the AFE's ADC.
[0072] Analog output circuit: This is a single-channel output drive circuit containing an operational amplifier-based filter to smooth the stepped wave of the PWM or DAC output, used to output a power frequency sine wave with sufficient driving capability.
[0073] Digital input circuit: It is an optocoupler isolation circuit with an integrated high-speed optocoupler (such as TLP2361) and trigger, which is used to isolate external passive contact or high-voltage level signals and shape them into clean logic levels.
[0074] Switch output circuit: This is a relay drive circuit, which includes a MOSFET (such as 2N7002) and necessary protection components, used to drive switch loads.
[0075] The four channels of the 4-to-1 analog switch are connected to the output / input terminals of the four hardware circuits respectively, and its common terminal is connected to the general signal pin of the AFE chip.
[0076] Channel routing layer: This layer consists of four 32-to-1 analog switch chips (such as TI's SN74CBT3257). The common terminal of each switch is connected to one of the four functional buses mentioned above, while its 32 channel terminals are connected in parallel and one-to-one to 32 external test terminals.
[0077] II. Work Process
[0078] Taking the configuration of test terminal 5 as analog output mode as an example, the software control flow is as follows:
[0079] After receiving the instruction, the main control module connects the 32-to-1 analog switch A2 of the "Analog Output Bus" to channel 5 at its common terminal (connection bus). Simultaneously, it ensures that the other three 32-to-1 analog switches are disconnected from channel 5 to avoid bus conflicts.
[0080] Subsequently, the main control module uses the GPIO control function routing layer's 4-to-1 analog switch B1 to switch its common terminal (connected to the AFE pin) to the channel connected to the "analog output circuit".
[0081] Finally, the main control module configures the general signal pins of the AFE chip to DAC output mode via software, generates power frequency sine wave data, and starts the conversion.
[0082] At this point, a complete signal path is established: AFE's DAC -> 4-to-1 analog switch B1 -> analog output circuit (drive and filter) -> analog output bus -> 32-to-1 analog switch A2 -> test terminal 5. A sine wave signal can then be output to the external device under test.
[0083] When switching to other functional modes is required, repeat the above process, synchronously switching the selection states of the channel routing layer and the functional routing layer via software commands, and reconfiguring the operating mode of the AFE pin. This design achieves on-demand allocation and high integration of hardware resources, greatly improving the flexibility and cost-effectiveness of the test system.
[0084] Step 2: Parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation plan;
[0085] More preferably, the semantic information in the relay protection configuration file of the plug-in is parsed and extracted, including: analog channel position and ratio information, circuit breaker position information, internal protocol data interaction data stream, sampling calculation output information, tripping information, relay protection settings, and internal logical relationships, so as to obtain the plug-in's functional identity, specific signal interface definitions, key behavioral parameters, and internal logical connections.
[0086] The semantic information is mapped to a predefined test data model based on protection logic elements. This test data model reconstructs the semantic information into a structured object containing functional blocks, input ports, output ports, and parameters, and establishes a causal link graph accordingly.
[0087] Based on the port definitions in the test data model, the signal routing configurations of the backplane hardware, communication protocol stack, analog and digital input channels and functional modules are automatically generated, and the initialization commands of the relevant simulation components are started to form an operation plan.
[0088] The test data model of this invention is not pre-written or fixed, but rather automatically generated in real-time and adaptively by the system during runtime based on the semantic content of the parsed specific plugin configuration file. Its specific implementation includes the following steps:
[0089] Configuration file parsing and semantic information extraction:
[0090] The test system reads the relevant configuration files of the parsing plugin, identifies and structures three types of core information from the files:
[0091] Hardware configuration of the plug-in: Extract parameters such as the location, type, and range of analog / digital input / output channels to form a hardware interface data object.
[0092] Communication interaction configuration: Extract the internal communication protocol type, communication point table and its data attributes between plugins to form a communication interface data object.
[0093] Software logic configuration: Identify the type of protection element (such as overcurrent, differential), setting parameters, and the logical relationship between the element and specific IO channels and communication variables to form a protection logic data object.
[0094] Dynamic construction of test data models:
[0095] Based on the extracted semantic information, the test model building module dynamically instantiates the corresponding test data model:
[0096] Hardware loop model: Automatically match the plug-in hardware interface data objects with the physical resource library of the test instrument to generate specific wire connection schemes and clarify the functional routing and channel routing schemes of the test instrument.
[0097] Communication simulation model: Based on the communication interface data object, initialize the corresponding protocol stack, and dynamically display the monitoring and control page of communication signals on the host computer human-machine interface.
[0098] Protection logic behavior model: Create an instance for each identified protection element and inject its settings, delays, and other parameters. The system queries the built-in relay protection knowledge base to set logically consistent initial states for all I / O and communication signals, ensuring stable operation of the plug-in after power-on.
[0099] Generate the execution plan and cause-effect diagram:
[0100] The testing system automatically links the input-output relationships of all models. For example, it links the "current input channel" in the hardware loop model to the "input of the overcurrent element" in the protection logic behavior model, and connects the "action output" of that element to the "trip output channel" in the hardware loop model. Finally, the system integrates these relationships and automatically generates a graphical cause-and-effect diagram, intuitively showing the complete logical path from the test stimulus (input) to the expected response (output).
[0101] Step 3: Based on the above operating scheme, set real-time simulation parameters, and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system;
[0102] More preferably, the multi-dimensional excitation signal includes analog signals, digital signals, time synchronization signals, and bus communication protocols.
[0103] Step 4: Collect the response data of the plug-in under the excitation signal through the general backplane and compare it with the expected response to obtain the test results.
[0104] More preferably, the response data is visualized, and key events defined in the event reference table in the relay protection configuration file are actively monitored and recorded.
[0105] Based on the custom configuration, the timing logic of the input and output signals is tracked and recorded.
[0106] When a program malfunction is detected, the high-frequency recording function is triggered to completely save the inter-board communication messages, analog quantity sampling sequences, and internal state variables before and after the malfunction, so as to accurately locate the fault and perform root cause analysis.
[0107] In practice, the operator first reliably connects the relay protection module under test (DUT) to the corresponding slot on the general-purpose hardware backplane module. After the host computer parses the relay protection configuration file and configures the DUT's model as the slot number, it dynamically constructs the corresponding test data model and generates a matching collaborative operation scheme by parsing the semantic information such as function definitions, signal interfaces, and protection settings in the configuration file. Once the system is running normally, the operator sets the parameters of the real-time simulation module and applies multi-dimensional excitation signals, including analog waveforms, switching sequences, and standard communication messages, to the DUT through the backplane to accurately simulate various operating conditions of the power system. Simultaneously, the response acquisition module monitors the DUT's behavior, fully recording key data such as its electrical characteristic response, communication message interaction, and logical action timing. All acquired data is uploaded to the host computer monitoring interface for visualization. The operator compares the expected and actual responses to determine the usability of the DUT.
[0108] This invention automatically constructs a miniature test environment matched to the relay protection configuration, transforming relay protection anomaly troubleshooting from a whole-machine mode to a single-plug-in mode, improving the accuracy and efficiency of anomaly location. The test system constructs a high-fidelity operating environment matched to the relay protection configuration, synchronously applying various excitation signals to the physical plug-in and simulation test system. Various real-time data and action information are recorded by the system, helping debugging personnel directly locate which plug-in or even circuit the anomaly occurred in, providing an effective means for precise fault tracing. It enhances the ability to monitor the quality of plug-ins throughout their entire lifecycle, bringing production-line-level testing capabilities down to the field and spare parts warehouse. Due to the reduction in the number of debugging instrument models, widespread application at management nodes such as spare parts plug-in inbound and outbound inspection, abnormal plug-in diagnosis during field replacement, and plug-in qualification diagnosis after repair becomes possible, effectively avoiding the predicament of replacing faulty plug-ins with faulty ones.
[0109] Embodiment 2 of the present invention provides an automatic simulation test system for relay protection plug-ins based on a universal backplane. The system includes a universal hardware backplane that provides physical interfaces, power supply, and communication environment; a configuration file parsing and operation scheme generation module for automatically identifying the configuration file of the plug-in under test and generating corresponding collaborative operation schemes and excitation signals; a real-time simulation module that provides analog quantities, digital quantities, time synchronization, and bus communication excitations to the plug-in through the backplane; and a response acquisition module that records and displays the plug-in response. The specific details are as follows:
[0110] A general-purpose hardware backplane module for connecting to the relay protection plug-in under test;
[0111] More preferably, the universal hardware backplane module is the physical foundation of the entire system, and its core is a custom PCB backplane. The universal hardware backplane module is configured to adapt to different models of relay protection plug-ins by changing interface daughterboards or software configuration, thereby achieving the replacement of multiple dedicated debugging instruments with a single hardware platform. This backplane integrates the following key units:
[0112] Main control unit: Employs a high-performance processor as the core processing chip. This processor is responsible for real-time processing of backplane functions such as bus arbitration, timing control, multiple communication protocols, generation of analog and digital bus signals, and acquisition of analog and digital bus signals.
[0113] To accommodate the internal specifications of different relay protection series, various interface units incorporate a switching circuit consisting of a CPLD and a high-speed analog switch between the high-performance processor and the interface of the plug-in under test (UTD). By modifying the CPLD logic, the electrical characteristics and pin functions of the slot can be dynamically changed, thus achieving software-level compatibility with plug-ins from different manufacturers. A DAC chip with a precision of 16 bits or higher, in conjunction with an operational amplifier circuit, generates a programmable small voltage signal within a range of ±10V to simulate the secondary output of the CT / VT. A high-stability, temperature-controlled crystal oscillator is integrated as a local clock source to ensure time synchronization between the test system and the UTD. A CAN bus controller is integrated to support data exchange between intelligent plug-ins that communicate via CAN.
[0114] The configuration file parsing and operation scheme generation module is used to parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation scheme.
[0115] More preferably, the configuration file parsing and operation scheme generation module runs in software on a host computer or embedded industrial control computer. It parses the type, parameters, and function definitions of the plug-in under test, and automatically generates the corresponding operation scheme, backplane excitation signal, and protocol transmitted via the backplane. The specific functions are as follows:
[0116] (1) Document parsing semantic recognition:
[0117] The relay protection configuration file uploaded by the user can be a manufacturer's proprietary configuration file or a file that conforms to a certain standard.
[0118] The file parser extracts key semantics, including but not limited to: analog channel location and transformation ratio information, circuit breaker location and other switch input information, internal protocol data exchange data streams, sampling calculation output information, tripping and other switch output information, relay protection settings, internal logic relationships, etc. This process aims to accurately capture the functional identity of the plugin, specific signal interface definitions, key behavioral parameters, and internal logical connections, thereby completely transforming the "raw language" of the configuration file into a standardized set of semantic information that the system can understand, laying the foundation for subsequent processing.
[0119] (2) Data model construction:
[0120] The system creatively maps the semantic information obtained in the preceding steps into a predefined functional model based on protection logic elements. The core of this model lies in reconstructing the extracted input and output signals, protection settings, and control logic into structured objects containing elements such as functional blocks, input ports, output ports, and parameters, and establishing a clear causal link diagram accordingly.
[0121] (3) Generation of runtime environment:
[0122] The system utilizes the established unified data model and automatically generates signal routing configurations for backplane hardware, communication protocol stack, analog and digital input channels, and functional modules based on the port definitions in the model. It then initiates initialization commands for the relevant simulation components, thereby forming signal interaction between the simulation test system and the plug-in under test.
[0123] The real-time simulation module is used to set real-time simulation parameters based on the operation scheme and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system.
[0124] More preferably, the real-time simulation module runs as software on the high-performance processing chip of the general-purpose hardware backplane module. Operating under the precise scheduling of the real-time system, it executes the aforementioned operating plan and provides the device under test (DUT) with excitation signals including analog quantities, digital quantities, time synchronization signals, and bus communication protocols through the general-purpose hardware backplane module. This module is triggered by a high-precision timer interrupt, periodically sending control commands to the general-purpose hardware backplane. Its core function is to dynamically generate and output continuous sequences of analog waveforms and synchronized digital state sequences based on the test scenario requirements, simulating normal operation and fault states of the power system. The entire process ensures the timing accuracy and logical consistency of various excitation signals, constructing a high-fidelity dynamic operating environment for the DUT.
[0125] The response acquisition module is used to acquire the response data of the plug-in under the excitation signal through the general backplane and send it to the host computer.
[0126] More preferably, the response acquisition module runs as software on the high-performance processing chip of the general-purpose hardware backplane module. Through the backplane bus and debugging interface, it captures the electrical responses and communication messages of the tested component in real time, and records and displays these responses. This module not only collects and uploads the output information of the simulation components to the host computer for visualization, but also actively monitors and records key events defined in the relay protection configuration file, such as switch quantity changes, protection activation, and action outputs, based on the event reference table. Simultaneously, the module supports tracking and recording the timing logic of specific input and output signals according to the tester's custom configuration. When a program malfunction is detected, the module automatically triggers the high-frequency recording function, completely saving the inter-board communication messages, analog quantity sampling sequences, and internal state variables before and after the malfunction, providing complete data tracing support for subsequent accurate fault location and root cause analysis.
[0127] The host computer is used to provide the relay protection configuration file for the plug-in; it compares the collected response data with the expected response to obtain the test results.
[0128] More preferably, the host computer includes an automatic test control module, configured to execute the following automatic test process:
[0129] Based on the operation plan output by the relay protection configuration file parsing and operation plan generation module, the real-time simulation module is automatically scheduled to perform multi-scenario sequential tests.
[0130] The response acquisition module acquires the action response of the tested plug-in in real time and automatically compares and analyzes it with the expected behavior.
[0131] Automatically generate a complete test report containing test data, waveform records, and diagnostic conclusions.
[0132] This invention achieves a plug-and-play runtime environment by parsing configuration file semantics and dynamically reconstructing backplane logic. The fundamental difference from traditional pre-built test scenarios lies in its ability to understand plug-in functional logic and map it to the data model, significantly improving the system's generalization and forward-looking compatibility. By constructing a micro-test environment that matches the protection configuration, anomaly troubleshooting is advanced from the whole-machine mode to the plug-in level. Synchronous stimulation and full data recording in a high-fidelity environment provide an effective means to locate anomalies to specific plug-ins or even loops, achieving precise fault tracing. This system successfully extends production line-level testing capabilities to the field and warehouse stages. Due to its versatility, it can be widely applied throughout the entire lifecycle, including spare parts inspection, fault diagnosis, and maintenance verification, fundamentally eliminating the operational risks of replacing faulty plug-ins with faulty ones.
[0133] Embodiment 3 of the present invention provides a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to perform operations according to the instructions to execute the steps of the method.
[0134] Embodiment 4 of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method.
[0135] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0136] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0137] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0138] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. An automatic simulation test method for relay protection plug-in based on a universal backplane, characterized in that, include: Step 1: Connect the relay protection module under test to the universal backplane; Step 2: Parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation plan; Step 3: Based on the above operating scheme, set real-time simulation parameters, and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system; Step 4: Collect the response data of the plug-in under the excitation signal through the general backplane and compare it with the expected response to obtain the test results.
2. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 1, characterized in that: The general-purpose backplane module adopts a channel multiplexing architecture based on two-level analog switches, including four functional buses, a functional routing layer, a channel routing layer, a main control module, and multiple external test terminals. The functional routing layer includes a four-to-one analog switch and four independent hardware loops. The four channels of the four-to-one analog switch are respectively connected to one end of the four hardware loops, and the common terminal of the four-to-one analog switch is connected to the general signal pin of the main control module. The four functional buses are analog input, analog output, digital input, and digital output buses, respectively, and are connected to the other end of the four hardware loops. The channel routing layer includes four sets of multiplexed analog switches. The common terminal of each set of multiplexed analog switches is connected to one of the functional buses, and each channel terminal is connected in parallel to the same multiple external test terminals.
3. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 2, characterized in that: The general-purpose backplane module, through the main control module, coordinates the selection state of the functional routing layer and the channel routing layer, dynamically assigning any external test terminal to any hardware circuit, thereby realizing software definition and time-division multiplexing of a single test terminal among the four functional modes of analog input, analog output, digital input, and digital output.
4. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 3, characterized in that: The general-purpose signal pins of the main control module include at least one reconfigurable pin of an analog front-end chip; the analog front-end chip integrates an analog-to-digital converter, a digital-to-analog converter, and a programmable gain amplifier. The operating mode of the reconfigurable pin can be dynamically configured by software instructions, so that it functions as the following four modes respectively: high-precision ADC sampling channel in analog input mode, DAC output channel or high-resolution PWM output in analog output mode, digital input GPIO in digital input mode, and digital output GPIO in digital output mode.
5. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 1, characterized in that: In step 2, the semantic information in the relay protection configuration file of the plug-in is parsed and extracted, including: Read the relevant relay protection configuration file of the parsing plugin, and identify and structure three types of semantic information from the file: The hardware configuration of the plug-in, including the location, type, and range of analog / digital input / output channels, forms a hardware interface data object; Communication interaction configuration, including the internal communication protocol types between plugins, communication point table and its data attributes, forms a communication interface data object; The software logic configuration includes the protection element type, setpoint parameters, and logical relationships between the element and specific I / O channels and communication variables, forming a protection logic data object.
6. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 5, characterized in that: In step 2, based on the extracted semantic information, the corresponding test data model is dynamically instantiated, including: Dynamically instantiate hardware loop models: automatically match plug-in hardware interface data objects with physical resource libraries to generate specific wire connection schemes and clarify the functional routing and channel routing schemes of the tester; Dynamic instantiation of communication simulation model: Based on the communication interface data object, initialize the corresponding protocol stack, and dynamically display the monitoring and control page of communication signals on the test host computer human-machine interface; Dynamic instantiation of protection logic behavior model: Based on the protection logic data object, an instance is created for each identified protection element, and its set value and delay parameters are injected; the built-in relay protection knowledge base is queried to set the initial state of all IO and communication signals in accordance with logic.
7. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 1, characterized in that: In step 3, the multi-dimensional excitation signals include analog signals, digital signals, time synchronization signals, and bus communication protocols.
8. The automatic simulation test method for relay protection plug-in based on a universal backplane according to claim 1, characterized in that: In step 4, the response data is visualized, and key events defined in the event reference table in the relay protection configuration file are actively monitored and recorded. Based on the custom configuration, the timing logic of the input and output signals is tracked and recorded; When a program malfunction is detected, the high-frequency recording function is triggered to completely save the inter-board communication messages, analog quantity sampling sequences, and internal state variables before and after the malfunction, so as to accurately locate the fault and perform root cause analysis.
9. An automatic simulation test system for relay protection plug-in based on a universal backplane, used to implement the method described in any one of claims 1-8, characterized in that, The system includes: A general-purpose hardware backplane module for connecting to the relay protection plug-in under test; The configuration file parsing and operation scheme generation module is used to parse and extract the semantic information in the relay protection configuration file of the plug-in, dynamically construct the corresponding test data model and generate a matching operation scheme. The real-time simulation module is used to set real-time simulation parameters based on the operation scheme and apply multi-dimensional excitation signals to the plug-in through the general backplane to simulate various operating conditions of the power system. The response acquisition module is used to acquire the response data of the plug-in under the excitation signal through the general backplane and send it to the host computer. The host computer is used to provide the relay protection configuration file for the plug-in; it compares the collected response data with the expected response to obtain the test results.
10. A terminal, comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the steps of the method according to any one of claims 1-8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1-8.
Citation Information
Cited By
Cross-type test method and system for power protection device
CN122063370A
