Method and system for testing synchronous digital quantity injection of regional stability control system based on network time synchronization
By using network time synchronization mechanism and digital quantity injection technology, the problems of long testing time and complicated operation of traditional testing methods are solved, realizing synchronous electrical quantity input of multiple devices in the stability control system, and improving testing efficiency and accuracy.
Patent Information
- Application Number
- CN202510979850.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-16
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2045-07-16
AI Technical Summary
Traditional testing methods for regional stability control systems are time-consuming and cumbersome, making it difficult to effectively verify control strategies, especially when simulating the synchronous operation of multiple devices and handling complex triggering conditions.
A network-based time synchronization method for regional stability control systems is adopted. The network time synchronization mechanism ensures that the clock reference of the test computer system at each site is consistent, automatically generates digital injection test scripts, and distributes them to the stability control device under a unified time scale to analyze and simulate the changes in electrical and switching quantities of power grid components.
It enables precise injection of electrical and switching signals from the control device, simplifies the testing process, improves testing efficiency and accuracy, and ensures the reliability of test results in simulated scenarios where multiple devices operate synchronously.
Smart Images

Figure CN120972852A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automatic control technology for power grid safety and stability, and in particular to a method and system for synchronous digital quantity injection testing of a regional stability control system based on network time synchronization. Background Technology
[0002] The power grid safety and stability control system, as a crucial second line of defense in the power system, plays a core role in ensuring the reliability of system operation. The accuracy of the system's control strategy directly impacts the overall performance of the power system; therefore, it must undergo a series of rigorous and multi-level tests and verifications before being put into practical application. Traditional testing methods mainly rely on relay protection devices, which simulate and trigger the conditions required for strategy verification by inputting preset electrical signals to the stability control device and combining this with the connection of the input board, thereby evaluating the effectiveness of the control strategy.
[0003] However, in regional stability control systems, due to the large number of devices and the intricate control logic, traditional testing methods are not only time-consuming and cumbersome, but also face significant difficulties in simulating the synchronous operation of multiple devices and handling complex triggering conditions, making it difficult to comprehensively and effectively verify the control strategy. In view of this situation, there is an urgent need to develop an innovative technical solution to achieve synchronous electrical and switching inputs of multiple devices in a regional stability control system, thereby accurately triggering strategy verification conditions and comprehensively and efficiently evaluating the correctness and reliability of the stability control strategy.
[0004] To address the aforementioned issues, there is an urgent need for a method and system for synchronous digital quantity injection testing of regional stability control systems based on network time synchronization. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a method and system for testing the synchronous digital injection of regional stability control systems based on network time synchronization.
[0006] The present invention adopts the following technical solution.
[0007] The first aspect of this invention relates to a method for synchronous digital quantity injection testing of a regional stability control system based on network time synchronization. The method is characterized by the following steps: S1, based on the architecture and functions of the regional stability control system, test cases required for testing the functions of each control strategy of the stability control system can be identified; S2, based on the test state sequence and test input quantities established by the test cases, a matching digital quantity injection test script for the stability control system is automatically generated; S3, through a network time synchronization mechanism, the clock reference of the test computer systems at each site is ensured to be consistent, and the triggering time stamp of the test cases is uniformly set, and the generated test case script is distributed to the stability control devices at each site; S4, the stability control devices at each site parse the received test case script and extract the test state sequence and characteristic parameters related to their own device.
[0008] The regional stability control system architecture comprises three levels: a master station, substations, and execution stations. The master station aggregates and analyzes real-time operating data from each substation, identifies the power grid's operating mode, and sends control commands to the substations and execution stations based on preset control strategies or control schemes calculated online. Substations are responsible for collecting operating condition information from their respective power plants or power grid areas and uploading this information to the master station, while also receiving and executing control commands from the master station. Execution stations, based on the received control commands, implement safety and stability control measures such as overload shedding, overload generator tripping, and DC power reduction.
[0009] The test cases required for testing the functions of each control strategy of the stability control system are test state sequences and test inputs; the test inputs simulate the input characteristic parameters of the power grid components connected to the stability control devices at each station during normal operation and faults; the characteristic parameters include the electrical quantity change characteristic parameters and switching quantity status parameters of the power grid components.
[0010] Based on the established test input quantities and test state sequences, a pre-set test case automatic generation software is used to generate digital quantity injection test scripts.
[0011] The test computer is connected to the 5G mobile communication network provided by the mobile phone via WIFI; the test computer systems at each site are synchronized and aligned using the Network Time Protocol; the test computer at each site sends the predefined test case scripts to the corresponding regional stability control device according to the preset time scale.
[0012] Each station's stability control device parses the test case scripts, extracts the test state sequences and characteristic parameters related to the station's device, automatically calculates electrical quantity sampling values and switching quantity sampling values consistent with the device's actual sampling frequency based on the characteristic parameters, and fills them into the device's sampling data area to replace the external actual sampling data; using the electrical quantity sampling values and switching quantity sampling values automatically calculated based on the characteristic parameters consistent with the device's actual sampling frequency, it simulates the changes in component electrical quantities and switching quantities under various power grid operating conditions, and performs digital quantity injection tests on the device.
[0013] The device will automatically calculate electrical quantity sampling values and switching quantity sampling values that are consistent with the actual sampling frequency of the device based on the characteristic parameters, forming a state sequence matrix to simulate the dynamic changes of voltage, current and switching states of the power grid components, and test the device.
[0014] A second aspect of this invention relates to a network-time-synchronized regional stability control system synchronous digital quantity injection test system. The system is implemented using the network-time-synchronized regional stability control system synchronous digital quantity injection test method described in the first aspect of this invention. The system includes a test module, an injection module, a distribution module, and an extraction module. The test module, based on the architecture and functions of the regional stability control system, identifies the test cases required for testing the functions of each control strategy of the stability control system. The injection module automatically generates matching digital quantity injection test scripts for the stability control system based on the test state sequence and test input quantities established by the test cases. The distribution module ensures that the clock references of the test computer systems at each site are consistent through a network time synchronization mechanism, and uniformly sets the trigger timestamps of the test cases, distributing the generated test case scripts to the stability control devices at each site. The extraction module allows the stability control devices at each site to parse the received test case scripts and extract the test state sequence and characteristic parameters related to their respective devices.
[0015] A third aspect of the present invention relates to a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to perform the steps of the method described in the first aspect of the present invention.
[0016] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in the first aspect of the present invention.
[0017] The beneficial effect of the present invention is that, compared with the prior art, the synchronous digital quantity injection test method and system of the regional stability control system based on network time synchronization in the present invention achieves the purpose of improving the test efficiency of the power grid stability control system control strategy by combining network time synchronization and digital quantity injection to realize the synchronous electrical quantity input and dynamic adjustment of sampling information of multiple devices in the regional stability control system.
[0018] The beneficial effects of this invention are:
[0019] 1. This invention employs advanced digital signal injection technology, revolutionizing the testing process for stability control devices. It eliminates the need for traditional relay protection devices and input board wiring, enabling precise injection of electrical and switching signals from the stability control device. This technological breakthrough significantly simplifies the testing process and improves testing efficiency.
[0020] 2. This invention utilizes a network time synchronization mechanism to achieve precise timing of the delivery of digital injection test scripts. This mechanism ensures that multiple devices within the regional stability control system can synchronously receive test signals at precise times or within preset time windows, effectively simulating synchronous action scenarios in actual operation and further improving the accuracy and reliability of test results. Attached Figure Description
[0021] Figure 1 This is a flowchart of the synchronous digital quantity injection test method for a regional stability control system based on network time synchronization, as per the present invention.
[0022] Figure 2 This is a schematic diagram of the standardized regional stability control system structure in an embodiment of the present invention.
[0023] Figure 3 This is a schematic diagram of the synchronous digital dosage test interface settings in an embodiment of the present invention.
[0024] Figure 4 This is a diagram showing the effect of increasing the dosage of the stabilization device in an embodiment of the present invention.
[0025] Figure 5 This is a waveform recording after the digital signal injection test of the stability control device. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this invention clearer and more accurate, the technical solutions of this invention are described in detail below through several specific embodiments. The embodiments used in this invention are merely illustrative and are not intended to limit the scope of this invention.
[0027] In a first aspect, the present invention relates to a method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization, the method being characterized by comprising the following steps:
[0028] S1. Based on the architecture and functions of the regional stability control system, the test cases required for testing the functions of each control strategy of the stability control system can be identified.
[0029] In step 1, the regional stability control system architecture comprises three levels: a master station, substations, and execution stations. The specific functions of each station are as follows: The master station, as the system's central hub, is responsible for collecting and analyzing real-time operational data from each substation, identifying the power grid's operating mode, and sending control commands to the substations and execution stations based on preset control strategies or control schemes calculated online. Substations are responsible for collecting operational status information from their respective substations or power grid areas and uploading this information to the master station, while also receiving and executing control commands from the master station. Execution stations, as the final execution units, execute key safety and stability control measures such as overload load shedding, overload generator shedding, and DC power reduction based on the received control commands, ensuring stable operation of the power grid under abnormal or fault conditions. The test input quantities and test state sequences required for testing the functions of each control strategy in the stability control system include the input characteristic parameters simulating the normal operation and fault conditions of the power grid components connected to the stability control devices at each station. These characteristic parameters include the electrical quantity change characteristic parameters and switching status of the power grid components.
[0030] In the above technical solution, step 1 includes the test input quantities and test state sequences required for testing the functions of each control strategy of the stability control system. These include the input characteristic parameters that simulate the normal operation and faults of the power grid components connected to the stability control devices at each station. The characteristic parameters include the electrical quantity change characteristic parameters and switching state of the power grid components.
[0031] S2 automatically generates a matching digital injection test script for the stability control system based on the test state sequence and test input quantities established by the test cases.
[0032] In the above technical solution, in step 2, based on the established test input quantities and test state sequences, a preset test case automatic generation software is used to generate a digital quantity injection test script. When using this software, the specific electrical and switching quantity information of the test cases must be input into the software. The electrical quantity information includes the average voltage / current value of the collected line, the frequency and phase of the AC voltage / current, etc.; while the switching quantity information includes key parameters such as the status of the functional pressure plate, the circuit breaker position status, and the protection trip signal status. Based on these parameter information, the software can automatically generate a digital quantity injection test script that the stability control device can directly parse.
[0033] S3 ensures that the clock reference of the test computer systems at each site is consistent through a network time synchronization mechanism, and uniformly sets the trigger time stamp of the test cases, distributing the generated test case scripts to the stability control devices at each site.
[0034] In the above technical solution, the following measures are required in step 3 to achieve network time synchronization. First, the test computer is connected to the 5G mobile communication network provided by the mobile phone via Wi-Fi. Then, the time stamps of the test computer systems at each site are aligned using Network Time Protocol (NTP) or other equivalent time synchronization mechanisms. Based on the time stamp alignment, the test computer at each site distributes predefined test case scripts to the corresponding regional stability control device.
[0035] S4, the stability control device at each site parses the received test case scripts and extracts the test state sequence and characteristic parameters related to the device at this site.
[0036] In the above technical solution, in step 4, each station's stability control device parses the test case script, extracts the test state sequence and characteristic parameters related to the station's device, automatically calculates the electrical quantity sampling value and switching quantity sampling value consistent with the actual sampling frequency of the device based on the characteristic parameters, and fills them into the device's sampling data area to replace the external actual sampling data. This simulates the changes in the electrical quantity and switching quantity of components under various operating conditions of the power grid, and performs digital quantity injection testing on the device. The formula for calculating the change in sampling value is as follows:
[0037] Electrical quantity: ui(k)=A(k)*cos(2*π*f(k)+φ(k));
[0038] Switch quantity: di(k) = D(k);
[0039] Wherein, ui(k) is the calculated electrical sampling value, i.e., voltage and current sampling value, A(k) is the amplitude characteristic change parameter, f(k) is the frequency characteristic change parameter, and φ(k) is the phase characteristic change parameter. Through these three characteristic change parameters, such as A(k), it can be set as a geometric slip function A(k) = M*k, or it can be set as an exponential function A(k) = eM / k. di(k) is the calculated switching quantity sampling value, and D(k) is the switching quantity characteristic change parameter.
[0040] By setting a state sequence to form a state sequence matrix, the actual dynamic changes in voltage, current, and switching states of power grid components can be simulated to test the device.
[0041] [A1(k)f1(k)φ1(k)D1(k)]……………………State Sequence 1
[0042] [A2(k) f2(k) φ2(k) D1(k)]……………………State Sequence 2
[0043] [A3(k) f3(k) φ3(k) D1(k)]……………………State Sequence 3
[0044] [A4(k) f4(k) φ4(k) D1(k)] ………………………… State sequence 4
[0045] ……………………………………
[0046] [An(k) fn(k) φn(k) Dn(k)] ………………………… State sequence n
[0047] As shown Figure 2 The standardized regional stability control system architecture includes three levels: the master station, the sub-station, and the execution station. The specific functions of each station are as follows. The master station, as the center of the system, is responsible for summarizing and analyzing the real-time operation data from each sub-station, identifying the operation mode of the power grid, and sending control commands to the sub-station and the execution station according to the preset control strategy or the control scheme calculated online. The sub-station is responsible for collecting the operation condition information of the plant station or the power grid area where it is located, uploading this information to the master station, and at the same time receiving and executing the control commands from the master station. The execution station, as the final execution unit, executes key safety and stability control measures such as load shedding for overload, generator tripping for overload, and DC power reduction according to the received control commands to ensure the stable operation of the power grid under abnormal or fault conditions. To verify the effectiveness and accuracy of the control strategy, a simulation test of line state changes needs to be carried out at the sub-station layer. The specific operation process is as follows:
[0048] S1: For the control strategy to be tested, clarify the range of state acquisition sub-stations required, as well as the specific test input quantities and test state sequences.
[0049] S2: Based on the determined test input quantities and test state sequences, use the preset test case automatic generation tool to generate the corresponding digital quantity injection test script.
[0050] As shown Figure 3 The digital quantity injection test script covers the electrical quantities and switch quantities describing the line state. Among them, the electrical quantity information covers the average voltage / current of the collected line, the frequency and phase of the AC voltage / current, etc.; while the switch quantity information includes the states of operation mode pressure plates, function pressure plates, the states of circuit breaker TWJ (tripping position relay) / HWJ (closing position relay), and key parameters such as the maintenance state of the circuit breaker / line.
[0051] S3: Through the network time synchronization mechanism, ensure that the clock benchmarks of the test computer systems at each site are consistent, and uniformly set the trigger time point of the test case. Subsequently, distribute the generated test case script to the stability control devices at each site.
[0052] To achieve network time synchronization, the following measures need to be taken. First, connect the test computer to the 5G mobile communication network provided by the mobile phone through the WIFI connection method. Subsequently, align the time stamps of the test computer systems at each site through the Network Time Protocol (NTP) or other equivalent time synchronization mechanisms. Based on the aligned time scales, the test computer at each site distributes the predefined test case scripts to the corresponding regional stability control devices.
[0053] S4: The stability control devices at each site analyze the received test case scripts and extract the test status sequences and characteristic parameters related to the devices at this site.
[0054] As Figure 4 shown, the stability control device automatically calculates the electrical quantity sampling values and switch quantity sampling values that match the actual sampling frequency, and fills these values into the sampling data area of the device to replace the external actual sampling data. Thus, simulate the changes in electrical quantities and switch quantities of components under different operating conditions of the power grid. The oscillogram after the digital quantity injection test of the stability control device is as Figure 5 shown.
[0055] In the second aspect of the present invention, it relates to a synchronous digital quantity injection test system for a regional stability control system based on network time synchronization. The system is implemented by using the method described in the first aspect of the present invention; the system includes a test module, an injection module, a distribution module, and an extraction module; the test module can clarify the test cases required for the functional tests of each control strategy of the stability control system according to the architecture and functions of the regional stability control system; the injection module automatically generates a matching digital quantity injection test script for the stability control system based on the test status sequence and test input quantity established by the test case; the distribution module ensures that the clock benchmarks of the test computer systems at each site are consistent through the network time synchronization mechanism, and uniformly sets the trigger time scale of the test case, and distributes the generated test case script to the stability control devices at each site; the extraction module analyzes the received test case script by the stability control device at each site and extracts the test status sequence and characteristic parameters related to the device at this site.
[0056] In the third aspect of the present invention, it relates to a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method described in the first aspect of the present invention. 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 the technical solutions of the present invention still include content that can be modified or equivalently replaced in the specific implementation of the present invention. Any modifications or equivalent replacements 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. A method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization, characterized in that the method includes the following steps: S1. Based on the architecture and functions of the regional stability control system, the test cases required for testing the functions of each control strategy of the stability control system can be clearly defined. S2, based on the test state sequence and test input quantities established by the test cases, automatically generates a matching digital quantity injection test script for the stability control system; S3 ensures that the clock reference of the test computer systems at each site is consistent through a network time synchronization mechanism, and uniformly sets the trigger time stamp of the test cases, distributing the generated test case scripts to the stability control devices at each site. S4, the stability control device at each site parses the received test case scripts and extracts the test state sequence and characteristic parameters related to the device at this site.
2. The method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization as described in claim 1, characterized in that: The regional stability control system architecture consists of three levels: master station, substation, and execution station. The main station summarizes and analyzes the real-time operating data from each substation, identifies the power grid's operating mode, and sends control commands to the substations and execution stations based on preset control strategies or control schemes calculated online. The substation is responsible for collecting operating condition information of its local plant or power grid area and uploading this information to the master station, while also receiving and executing control commands from the master station. The execution station performs safety and stability control measures such as overload load shedding, overload generator tripping, and DC power reduction based on the received control commands.
3. The method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization as described in claim 1, characterized in that: The test cases required for testing the functions of each control strategy of the stability control system are test state sequences and test input quantities; The test input parameters simulate the input characteristics of the power grid components connected to the stability control devices at each station during normal operation and fault conditions. Characteristic parameters include electrical quantity change characteristic parameters of power grid components and switching quantity status parameters.
4. The method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization as described in claim 1, characterized in that: Based on the established test input quantities and test state sequences, a pre-set test case automatic generation software is used to generate digital quantity injection test scripts.
5. The method for injecting synchronous digital quantities into a regional stability control system based on network time synchronization as described in claim 1, characterized in that: The test computer was connected to the 5G mobile communication network provided by the mobile phone via a WIFI connection. The test computer systems at each site are synchronized and aligned using the Network Time Protocol (NTP). The test computers at each site will send the predefined test case scripts to the corresponding regional stability control devices according to the preset time scale.
6. The method for synchronous digital quantity injection testing of a regional stability control system based on network time synchronization as described in claim 1, characterized in that: Each station's stability control device parses the test case scripts and extracts the test state sequences and characteristic parameters related to the device at that station; Based on the characteristic parameters, the electrical quantity sampling value and the switch quantity sampling value that are consistent with the actual sampling frequency of the device are automatically calculated and filled into the sampling data area of the device to replace the actual external sampling data; By automatically calculating electrical quantity sampling values and switching quantity sampling values that are consistent with the actual sampling frequency of the device based on characteristic parameters, the device simulates the changes in electrical quantity and switching quantity of components under various operating conditions of the power grid, and performs digital quantity injection test on the device.
7. The method for synchronous digital quantity injection testing of a regional stability control system based on network time synchronization as described in claim 1, characterized in that: The device will automatically calculate electrical quantity sampling values and switching quantity sampling values that are consistent with the actual sampling frequency of the device based on the characteristic parameters, forming a state sequence matrix to simulate the dynamic changes of voltage, current and switching states of the power grid components, and test the device.
8. A synchronous digital quantity injection test system for a regional stability control system based on network time synchronization, characterized in that: The system is implemented using a network-based time synchronization regional stability control system synchronous digital quantity injection test method as described in any one of claims 1-7; The system includes a testing module, an injection module, a distribution module, and an extraction module; Based on the architecture and functions of the regional stability control system, the testing module can identify the test cases required for testing the functions of each control strategy of the stability control system. The injection module automatically generates a matching digital injection test script for the stability control system based on the test state sequence and test input quantities established by the test cases. The distribution module ensures that the clock reference of the test computer systems at each site is consistent through a network time synchronization mechanism, and uniformly sets the trigger time stamp of the test cases, distributing the generated test case scripts to the stable control devices at each site. The module extracts the test case scripts received by the stability control devices at each site, and extracts the test state sequence and characteristic parameters related to the device at this site.
9. 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-7.
10. 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-7.
Citation Information
Patent Citations
Fault injection method for embedded software test
CN110704314A
Multi-processor module fault injection test method
CN115391221A
Hydropower station secondary measurement intelligent verification device and method
CN118777960A
Test data generation and synchronous triggering method and system for stability control joint debugging
CN120295275A
Digital relay, its testing method and test signal generator
JP1996317544A
