Gateway machine double-confirmation closed-loop test system and method

Through the gateway machine double confirmation closed-loop test system, which adopts modular architecture and two-way data flow verification, the problems of long gateway machine testing cycle and poor result comparability are solved, and efficient and accurate full-function verification and data reliability assurance are achieved.

CN120658664APending Publication Date: 2025-09-16GUODIAN NANJING AUTOMATION SOFTWARE ENG
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510598173.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The existing gateway machine testing system relies on on-site equipment linkage verification, resulting in a long test scenario construction cycle, high operational errors, poor comparability of test results, and difficulty in quickly locating faults. The test entropy increase effect brought by heterogeneous equipment also leads to extended detection cycles and increased costs.

Method used

A dual-confirmation closed-loop test system for the gateway machine is adopted, including an intelligent device simulation module, a multi-source database interface module, a master station protocol simulation module and an intelligent analysis module. Through a modular architecture and a two-way data flow verification mechanism, full-function verification of the gateway machine and data reliability assurance are achieved.

Benefits of technology

It realizes the automation of signal consistency detection, improves detection efficiency and accuracy, reduces data silo problems, generates detailed difference analysis reports, and supports operation and maintenance decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658664A_ABST
    Figure CN120658664A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power system automation, in particular to a gateway machine double-confirmation closed-loop test system and method, and the system comprises an intelligent equipment simulation module which is used for simulating secondary equipment in an intelligent substation, achieving the transmission of remote signaling and telemetering data, and responding to remote control and remote regulation commands; the multi-source database interface module is used for being connected with a database of the tested gateway machine and querying, analyzing and monitoring data of the database; the master station protocol simulation module is used for simulating a master station protocol and communicating with the tested gateway machine; the intelligent analysis module compares and analyzes signal data from different modules through double-layer verification to ensure the consistency and accuracy of the data; the intelligent equipment simulation module, the multi-source database interface module and the master station protocol simulation module are respectively connected with the tested gateway machine and the intelligent analysis module. According to the method, the whole-process data reliability and the system function integrity are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system automation, and in particular to a gateway machine double-confirmation closed-loop testing system and method. Background Art

[0002] In the field of power system automation, gateways serve as the core communications hub connecting smart substations and dispatching master stations, undertaking key functions such as data collection, protocol conversion, security encryption, and remote control. With the advancement of smart grid construction, grid dispatchers are placing increasing demands on the reliability, compatibility, and real-time performance of gateways. However, existing testing systems are gradually becoming inadequate.

[0003] Technical limitations of the collaborative testing model: Traditional testing methods rely heavily on a "field equipment + remote master station" linkage verification mechanism, requiring coordinated debugging of multiple types of equipment, including dispatch systems, protection devices, and measurement and control units, in a real operating environment. This model presents three technical obstacles: First, the coupling of physical devices results in test scenario construction cycles lasting several weeks, significantly reducing R&D iteration efficiency; second, a high proportion of manual intervention leads to extremely high operational error rates in complex scenarios; and third, the testing process lacks traceability, making it difficult to quickly determine whether a fault occurs with the device itself or a system integration issue.

[0004] Heterogeneous equipment increases testing entropy: Smart substations are characterized by a combination of diverse equipment vendors and fragmented communication protocols, leading to an exponential expansion of testing dimensions. Protocol compatibility testing requires interoperability verification across multiple mainstream protocols; functional scenario testing encompasses a wide range of basic functions and various exception handling scenarios; and performance boundary testing requires verification of system stability under extreme operating conditions. This heterogeneity leads to a surge in the number of test cases, while differences in equipment parameters across different vendors reduce the comparability of test results, even leading to technical paradoxes where the same device performs wildly differently in different test environments.

[0005] The above technical defects directly lead to: 1) The inspection period for new equipment entering the grid is extended, which restricts the progress of intelligent transformation of the power grid; 2) The high proportion of on-site debugging costs significantly increases the burden of power grid operation and maintenance; 3) Testing blind spots cause some gateway machines to be put into operation with defects, which poses a hidden danger to the safe operation of the power grid. Summary of the Invention

[0006] The purpose of the present invention is to provide a gateway machine double confirmation closed-loop testing system and method in order to solve at least one of the above technical problems.

[0007] The present invention achieves the above-mentioned purpose through the following technical solutions:

[0008] A gateway machine double confirmation closed-loop test system, comprising: an intelligent device simulation module, a multi-source database interface module, a master station protocol simulation module and an intelligent analysis module;

[0009] The intelligent device simulation module, the multi-source database interface module, and the master station protocol simulation module are respectively connected to the gateway machine under test and the intelligent analysis module;

[0010] The intelligent device simulation module is used to simulate the secondary equipment in the intelligent substation, realize the transmission of telesignaling and telemetering data, and respond to remote control and remote adjustment commands;

[0011] The multi-source database interface module is used to connect to the database of the gateway under test and query, analyze and monitor the data in the database;

[0012] The master station protocol simulation module is used to simulate the master station protocol and communicate with the gateway machine under test;

[0013] The intelligent analysis module is used to compare and analyze signal data from different modules to ensure data consistency and accuracy;

[0014] The intelligent analysis module performs a double-layer verification on data consistency, specifically including:

[0015] Verify the consistency between the historical data stored in the database of the gateway under test and the real-time data of the intelligent device simulation module;

[0016] Verify the consistency of the data received by the master station protocol simulation module and the data sent by the intelligent device simulation module.

[0017] Furthermore, the intelligent device simulation module includes: an analysis and modeling unit, a dynamic behavior simulation unit, a simulation data processing unit and a recording unit;

[0018] The parsing and modeling unit is used to parse and model the SCD file and build a full-process simulation model of the secondary equipment;

[0019] The dynamic behavior simulation unit is used to perform dynamic behavior simulation on the secondary equipment;

[0020] The simulation data processing unit is used to trigger the telesignaling and telemetry data according to a preset time sequence and transmit them to the intelligent analysis module in real time;

[0021] The recording unit is used to record all simulation data generated during the test process.

[0022] Furthermore, the intelligent device simulation module simulates the MMS communication of secondary devices based on the IEC 61850Ed2.0 / Ed1.0 standard, supports the import of custom SCD files and device template configuration, and realizes the flexible definition of device types, parameters and communication behaviors;

[0023] Extracting IED device information, communication configuration and logical relationships based on the SCD file, and building a full-process simulation model of the secondary equipment;

[0024] Dynamic behavior simulation of secondary devices includes simulating the behavior, response and state changes of intelligent devices;

[0025] The simulation data generated during the test includes input control signals, simulation responses, communication messages and timestamps.

[0026] Furthermore, the multi-source database interface module includes: an access unit, a retrieval unit and a data transmission unit;

[0027] The access unit is used to connect to the database of the gateway under test;

[0028] The retrieval unit is used to perform multi-dimensional data retrieval on the database;

[0029] The data transmission unit is used to transmit the data retrieval results to the intelligent analysis module in real time.

[0030] Furthermore, the multi-source database interface module is based on JDBC / ODBC and ORM framework to achieve low coupling docking; built-in B+ tree index; using paging query and asynchronous streaming transmission mechanism;

[0031] The databases of the gateway host under test include: MySQL, Oracle, DAMO, and Renmin University of China Jincang;

[0032] The multi-dimensional data retrieval includes: providing a multi-condition screening function, supporting combined queries by time period, device ID, measurement point type, and data quality label, and built-in indexing to optimize query performance.

[0033] Furthermore, the master station protocol simulation module includes: a first simulation unit, a second simulation unit, a third simulation unit, a fourth simulation unit and a simulation data transmission unit;

[0034] The first simulation unit is used to simulate the telecontrol 101 master station;

[0035] The second simulation unit is used to perform measurement 102 master station simulation;

[0036] The third simulation unit is used to simulate the Baoxin 103 master station;

[0037] The fourth simulation unit is used to simulate the telecontrol 104 master station;

[0038] The simulation data transmission unit is used to transmit the received data to the intelligent analysis module in real time.

[0039] Furthermore, the master station protocol simulation module supports automatic negotiation and dynamic switching of protocol versions; a built-in script engine supports batch issuance, serialized execution and result verification of remote control / remote adjustment commands;

[0040] The telecontrol 101 master station simulation realizes the reception of telesignaling / telemetry data and the sending of remote control / telemodulation commands, supports serial and network communication modes, and is compatible with a variety of non-standard extension protocols;

[0041] The metering 102 master station simulation realizes remote monitoring and control of metering information, supports electricity meter data collection, rate calculation and abnormal alarm functions;

[0042] The Baoxin 103 master station simulation realizes data collection, processing and management of relay protection devices, and supports protection event recording, fault recording and setting value management;

[0043] The telecontrol 104 master station simulates and parses RCD files, simulates multiple telecontrol channels, realizes the reception of telesignaling / telemetry data and the sending of remote control / telemodulation commands, and supports dual network redundancy and link status monitoring;

[0044] The received data is transmitted to the intelligent analysis module in real time through a standardized interface.

[0045] Furthermore, the intelligent analysis module further comprises: a signal receiving and parsing unit, a historical data comparison unit, a master station data verification unit, a control command closed-loop verification unit and a verification report generation unit;

[0046] The signal receiving and analyzing unit is used to receive and analyze the signal sent by the smart device simulation module, and analyze the received signal;

[0047] The historical data comparison unit is used to trigger the multi-source database interface module to query the historical signal of the gateway machine under test from the database, and compare the query result with the real-time signal of the intelligent device simulation module;

[0048] The master station data verification unit is used to receive the signal of the master station protocol simulation module and compare the signal of the master station protocol simulation module with the signal of the smart device simulation module;

[0049] The control command closed-loop verification unit is used to trigger the master station protocol simulation module to perform corresponding operations according to the remote control / remote adjustment command in the RCD file. The smart device simulation module then responds to the command of the gateway machine under test and records the execution result and response time;

[0050] The verification report generating unit is used to summarize the comparison results of the historical data comparing unit, the master station data checking unit, and the control command closed-loop verification unit and generate a verification report.

[0051] Furthermore, the signal sent by the intelligent device simulation module includes a signal reference, a Chinese description, a numerical value, a timestamp, and data quality;

[0052] The historical data comparison unit verifies the consistency of values, timestamps and data quality;

[0053] The master station data verification unit compares the signal value, timestamp and data quality, and supports dynamic time warping algorithm to compensate for time deviation;

[0054] The verification report includes differences, consistency analysis and repair suggestions.

[0055] A gateway machine double confirmation closed-loop test method, using any of the gateway machine double confirmation closed-loop test systems described above, the method comprising the following steps:

[0056] After the test system is started, the SCD file, RCD file and metering point table file are automatically loaded;

[0057] Simulate the MMS communication of the secondary equipment based on the SCD file, transmit the simulation data to the intelligent analysis module in real time and record the full process test data;

[0058] Access the database of the gateway under test through the JDBC / ODBC protocol and perform real-time retrieval of the database according to control instructions;

[0059] Execute multi-master station protocol simulation in parallel and transmit protocol interaction data to the intelligent analysis module in real time;

[0060] The verification step includes: verifying the consistency of historical data stored in the database of the gateway machine under test and the real-time data of the intelligent device simulation module; verifying the consistency of data received by the master station protocol simulation module and the data sent by the intelligent device simulation module;

[0061] The intelligent analysis module triggers the master station protocol simulation module to parse the remote control / remote regulation point table in the RCD file and generate a command sequence according to priority. The intelligent device simulation module receives the command forwarded by the gateway under test and triggers the remote signal change and telemetry data change.

[0062] Repeat the verification steps to control the test system for closed-loop verification and generate a verification report.

[0063] The beneficial effects of the present invention are:

[0064] (1) It realizes the full automation of signal consistency detection, can compare and analyze signal data from multiple modules in real time, and significantly improves detection efficiency and accuracy;

[0065] (2) Reduced data silos and achieved comprehensive comparison of multi-source data;

[0066] (3) It can generate detailed difference analysis reports and display the comparison results through visualization tools to provide decision support for operation and maintenance personnel and managers. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 This is a schematic diagram of the structure of a gateway machine double confirmation closed-loop test system according to an embodiment of the present invention;

[0068] Figure 2 This is a flow chart of a double confirmation closed-loop testing method for a gateway machine according to an embodiment of the present invention. DETAILED DESCRIPTION

[0069] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only intended to enable those skilled in the art to better understand and implement the present invention, rather than to imply any limitation on the scope of the present invention.

[0070] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including, but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment."

[0071] Example 1

[0072] Figure 1 This is a schematic diagram of the structure of a gateway machine double confirmation closed loop test system according to an embodiment of the present invention. Figure 1 As shown, according to one embodiment of the present invention, a gateway machine double confirmation closed-loop test system includes: an intelligent device simulation module 10, a multi-source database interface module 20, a master station protocol simulation module 30 and an intelligent analysis module 40;

[0073] The intelligent device simulation module 10, the multi-source database interface module 20, and the master station protocol simulation module 30 are respectively connected to the gateway under test and the intelligent analysis module 40;

[0074] The intelligent device simulation module 10 is used to simulate the secondary equipment in the intelligent substation, realize the transmission of telesignaling and telemetering data, and respond to remote control and remote adjustment commands;

[0075] The multi-source database interface module 20 is used to connect to the database of the gateway under test and query, analyze and monitor the data in the database;

[0076] The master station protocol simulation module 30 is used to simulate the master station protocol and communicate with the gateway machine under test;

[0077] Intelligent analysis module 40, used to compare and analyze signal data from different modules to ensure data consistency and accuracy;

[0078] The intelligent analysis module 40 performs a double-layer check on the data consistency, specifically including:

[0079] Verify the consistency between the historical data stored in the database of the gateway under test and the real-time data of the intelligent device simulation module 10;

[0080] The consistency of the data received by the master station protocol simulation module 30 and the data sent by the smart device simulation module 10 is verified.

[0081] This embodiment proposes a modular-architecture, dual-confirmation, closed-loop test system for gateways. By establishing a bidirectional data flow verification mechanism and a multi-dimensional consistency verification system, this system achieves full functional verification and data reliability assurance for smart substation gateways. The test system comprises an intelligent device simulation module 10, a multi-source database interface module 20, a master station protocol simulation module 30, and an intelligent analysis module 40. The intelligent device simulation module 10 uses virtualization technology to fully replicate the operating characteristics of typical secondary equipment, such as protection devices, measurement and control units, stabilization and control, low-frequency load shedding, and metering devices. It supports dynamic generation of telesignaling and telemetering values ​​and offers closed-loop response capabilities for remote control / telecontrol commands, simulating device behavior across a full range of scenarios, from normal to abnormal operating conditions. The multi-source database interface module 20 utilizes a standardized interface protocol to deeply couple with the database of the gateway under test. This not only achieves millisecond-level data synchronization but also provides a three-dimensional data retrieval engine based on time, device, and measurement point dimensions. This supports aggregated analysis of historical data, trend prediction, and anomaly detection, providing a quantitative basis for system performance evaluation. The master station protocol simulation module 30 has built a complete protocol stack for mainstream power communication protocols such as IEC101 / 102 / 103 / 104. It can simulate typical business flows such as remote control operations, parameter setting, and general call commands initiated by the dispatching master station. It also has the ability to deeply analyze protocol messages to ensure compliance verification of communications between the gateway machine and the upper system. The intelligent analysis module 40, which is the core of the system, adopts a two-layer verification mechanism: the first layer of verification uses timeline alignment technology to compare the feature values ​​of the historical trajectory data stored in the database with the real-time data generated by the intelligent device simulation module 10 to verify the integrity of the data persistence process; the second layer of verification builds an end-to-end data link tracking system, performs a semantic-level comparison of the original messages of the data received by the master station protocol simulation module 30 and the data sent by the intelligent device simulation module 10, and combines timestamp accuracy verification and data quality bit verification to form a full-link data consistency proof. When a data discrepancy is detected, the system automatically launches the root cause analysis engine to analyze the discrepant data. Using signature library matching techniques, the system locates the likely cause, identifying typical failure modes such as transmission errors, signal attenuation / loss, and device response timeouts. The system then generates a visual diagnostic report containing a discrepancy waveform, a timing correlation matrix, and a fault probability tree. The analysis results are output as a report or log, providing detailed information on signal consistency, discrepancy details, and error types.

[0082] Through a modular architecture and a two-way data flow verification mechanism, the present invention achieves full-scenario coverage verification of the functional integrity and data reliability of the smart substation gateway. It adopts a two-layer verification system, combined with timeline alignment and end-to-end semantic comparison technology, to ensure the dual consistency of data storage persistence and communication link transmission. It integrates automated root cause analysis and visual diagnosis functions to accurately locate the source of data differences and generate multi-dimensional analysis reports, significantly improving system testing efficiency and fault diagnosis capabilities.

[0083] According to one embodiment of the present invention, the intelligent device simulation module 10 includes: an analysis and modeling unit 11, a dynamic behavior simulation unit 12, a simulation data processing unit 13 and a recording unit 14;

[0084] Parsing and modeling unit 11, used for parsing and modeling SCD files and building a full-process simulation model of secondary equipment;

[0085] A dynamic behavior simulation unit 12 is used to perform dynamic behavior simulation on secondary equipment;

[0086] The simulation data processing unit 13 is used to trigger the telesignaling and telemetry data according to a preset time sequence and transmit them to the intelligent analysis module 40 in real time;

[0087] The recording unit 14 is used to record all simulation data generated during the test process.

[0088] Preferably, the intelligent device simulation module 10 simulates the MMS communication of secondary devices based on the IEC 61850Ed2.0 / Ed1.0 standard, supports the import of custom SCD files and device template configuration, and realizes the flexible definition of device types, parameters and communication behaviors;

[0089] Extract IED device information, communication configuration, and logical relationships based on SCD files to build a full-process simulation model for secondary equipment;

[0090] Dynamic behavior simulation of secondary devices includes simulating the behavior, response and state changes of intelligent devices;

[0091] The simulation data generated during the test includes input control signals, simulation responses, communication messages and timestamps.

[0092] In this embodiment, the intelligent device simulation module 10 is the core component of the gateway machine double confirmation closed loop test system, which adopts the IEC The layered architecture design of the 61850Ed2.0 / Ed1.0 standard implements in-depth analysis of the substation configuration description file (SCD) through the parsing and modeling unit 11, automatically extracts key information such as IED device instantiation configuration, logical device (LD) / logical node (LN) / data object instance (DOI) structure and GOOSE subscription relationship, and constructs a full-lifecycle simulation model of secondary equipment including communication links, data set mapping and logical associations. The dynamic behavior simulation unit 12 is based on state machine drive technology. By combining preset behavior templates with a custom rule engine, it accurately reproduces the dynamic response characteristics of equipment such as protection devices and measurement and control units, supports millisecond-level precision telesignaling position change triggering, dynamic generation of telemetered values ​​and device status self-description functions, and has built-in typical fault injection scenarios such as communication interruption, data packet loss, and telesignaling jitter, which can simulate full-scenario equipment behavior from normal operation to extreme working conditions. The simulation data processing unit 13 adopts a double buffer mechanism to achieve data timing control. The high-precision clock synchronization module ensures the timing consistency of SOE event sequence and analog / digital output, and supports IEC 61850Ed2.0 / Ed1.0 standard. The 61850-9-2LE protocol transmits MMS messages to the intelligent analysis module 40 in real time. The recording unit 14 completely records the control instruction sequence, device response messages, communication quality parameters and nanosecond timestamp information through a combination of a ring buffer and persistent storage, providing a multi-dimensional data playback function based on test cases, supporting the complete tracing of historical test processes and the reproduction of abnormal scenarios.

[0093] The intelligent device simulation module of the present invention realizes comprehensive, accurate and real-time simulation of the secondary equipment of the smart substation through standardized modeling, dynamic behavior simulation, data timing control and complete data recording, and supports the traceability of the test process and the reproduction of abnormal scenarios, which significantly improves the accuracy and efficiency of gateway machine testing.

[0094] According to one embodiment of the present invention, the multi-source database interface module 20 includes: an access unit 21, a retrieval unit 22 and a data transmission unit 23;

[0095] The access unit 21 is used to connect to the database of the gateway under test;

[0096] The retrieval unit 22 is used to perform multi-dimensional data retrieval on the database;

[0097] The data transmission unit 23 is used to transmit the data retrieval results to the intelligent analysis module 40 in real time.

[0098] Preferably, the multi-source database interface module 20 is based on JDBC / ODBC and ORM framework to achieve low coupling docking; built-in B+ tree index; using paging query and asynchronous streaming transmission mechanism;

[0099] The databases of the gateway hosts under test include: MySQL, Oracle, DAMO, and Renmin University of China Jincang;

[0100] Multi-dimensional data retrieval includes: providing multi-condition filtering functions, supporting combined queries by time period, device ID, measurement point type, and data quality tags, and built-in indexes to optimize query performance.

[0101] In this embodiment, the multi-source database interface module 20 serves as the data hub of the gateway machine double confirmation closed-loop test system, adopts a layered architecture design, and provides unified access capabilities to mainstream relational databases such as MySQL, Oracle, DAMO, and Renmin University of China Jincang through the access unit 21. It implements low-coupling encapsulation of database connections based on the JDBC / ODBC standard protocol and ORM framework, supports SQL query optimization and distributed query acceleration technology, and ensures the compatibility and efficiency of cross-platform data access; the retrieval unit 22 constructs a multidimensional data retrieval engine, supports multi-dimensional combination queries such as timestamp range, device ID, measurement point type (such as telesignaling / telemetering / electricity measurement), data quality label, etc., and has a built-in B+ tree index and query plan optimization module to shorten the response time of complex conditional retrieval and meet the rapid retrieval requirements of TB-level historical data; the data transmission unit 23 adopts a dual-channel transmission mechanism, and realizes the parallel transmission of historical data and real-time updated data through paging query and asynchronous streaming transmission technology, combined with data compression and breakpoint resumption functions to ensure low latency and high reliability of data flow transmission characteristics.

[0102] The multi-source database interface module of the present invention realizes efficient access to cross-platform data, rapid positioning of TB-level historical data and low-latency transmission of real-time data streams through standardized interface adaptation, intelligent multi-dimensional retrieval and asynchronous streaming transmission mechanism, significantly improving the compatibility and data analysis efficiency of heterogeneous databases.

[0103] According to one embodiment of the present invention, the master station protocol simulation module 30 includes: a first simulation unit 31, a second simulation unit 32, a third simulation unit 33, a fourth simulation unit 34 and a simulation data transmission unit 35;

[0104] The first simulation unit 31 is used to simulate the telecontrol 101 master station;

[0105] The second simulation unit 32 is used to perform measurement 102 master station simulation;

[0106] The third simulation unit 33 is used to simulate the Baoxin 103 master station;

[0107] The fourth simulation unit 34 is used to simulate the telecontrol 104 master station;

[0108] The simulation data transmission unit 35 is used to transmit the received data to the intelligent analysis module 40 in real time.

[0109] Preferably, the master station protocol simulation module 30 supports automatic negotiation and dynamic switching of protocol versions; a built-in script engine supports batch issuance, serialized execution and result verification of remote control / remote adjustment commands;

[0110] The telecontrol 101 master station simulation realizes the reception of telesignaling / telemetering data and the sending of remote control / telemodulation commands, supports serial and network communication modes, and is compatible with a variety of non-standard extension protocols;

[0111] The metering 102 master station simulation realizes remote monitoring and control of metering information, and supports electricity meter data collection, rate calculation and abnormal alarm functions;

[0112] The Baoxin 103 master station simulation realizes data collection, processing and management of relay protection devices, and supports protection event recording, fault recording and setting value management;

[0113] The telecontrol 104 master station simulates and parses RCD files, simulates multiple telecontrol channels, receives telesignaling / telemetry data, and sends remote control / telemodulation commands, supporting dual-network redundancy and link status monitoring.

[0114] The received data is transmitted to the intelligent analysis module 40 in real time through a standardized interface.

[0115] In this embodiment, the master station protocol simulation module 30 serves as the core communication verification component of the gateway machine double confirmation closed-loop test system. It adopts a modular protocol stack architecture design, fully supports the IEC 101 / 102 / 103 / 104 series power communication protocols and non-standard extension protocols, and realizes dynamic adaptation with the gateway machine under test through the protocol version automatic negotiation mechanism. This module consists of four professional simulation units: the first simulation unit 31 realizes the simulation of the telecontrol master station based on the IEC 101 protocol, supports serial RS-232 / RS-485 and network TCP / IP dual-mode communication, and the built-in protocol extension parser is compatible with a variety of manufacturer-specific extension instructions; the second simulation unit 32 builds a metering master station simulation environment for the IEC 102 protocol, realizes the functions of electricity meter data collection, time-of-use rate calculation and abnormal power consumption alarm, and supports DLMS / COSEM standard data model mapping; the third simulation unit 33 simulates the relay protection information system based on the IEC103 protocol, and has the ability to generate protection event SOE sequences, parse fault recording files (COMTRADE format) and verify constant value setting; the fourth simulation unit 34 builds a dual-network redundant simulation platform based on the IEC 104 protocol, supports RCD file parsing and multi-channel parallel simulation, and realizes link layer status monitoring and network storm testing through a virtual network adapter. Each simulation unit shares an embedded scripting engine, allowing testers to define complex business flows through Python / Lua scripts, enabling batch issuance of remote control commands, timing control, and automatic verification of response results. The simulation data transmission unit 35 utilizes a double-buffered queue mechanism, encapsulating raw ASDU messages and structured parsed data into standard data packets. These are then transmitted in real time to the intelligent analysis module 40 via shared memory and socket channels. The data packets are accompanied by CRC checksums, timing tags, and quality bit markers to ensure traceability and data integrity during the communication process.

[0116] The master station protocol simulation module of the present invention realizes comprehensive protocol consistency testing and abnormal scenario coverage of the master station-gateway machine communication link through multi-protocol deep simulation, automated test scripts and dual-network redundant verification, significantly improving the verification efficiency and reliability of communication protocol implementation.

[0117] According to one embodiment of the present invention, the intelligent analysis module 40 further includes: a signal receiving and analyzing unit 41, a historical data comparison unit 42, a master station data verification unit 43, a control command closed-loop verification unit 44, and a verification report generation unit 45;

[0118] The signal receiving and analyzing unit 41 is used to receive and analyze the signal sent by the intelligent device simulation module 10, and analyze the received signal;

[0119] The historical data comparison unit 42 is used to trigger the multi-source database interface module 20 to query the historical signals of the gateway under test from the database and compare the query results with the real-time signals of the intelligent device simulation module 10;

[0120] The master station data verification unit 43 is used to receive the signal of the master station protocol simulation module 30 and compare the signal of the master station protocol simulation module 30 with the signal of the smart device simulation module 10;

[0121] The control command closed-loop verification unit 44 is used to trigger the master station protocol simulation module 30 to perform corresponding operations according to the remote control / remote adjustment commands in the RCD file. The smart device simulation module 10 then responds to the command of the gateway machine under test and records the execution result and response time;

[0122] The verification report generating unit 45 is used to summarize the comparison results of the historical data comparing unit 42 , the master station data checking unit 43 , and the control command closed-loop verification unit 44 and generate a verification report.

[0123] Preferably, the signal sent by the intelligent device simulation module 10 includes a signal reference, a Chinese description, a value, a timestamp, and data quality;

[0124] The historical data comparison unit 42 verifies the consistency of values, timestamps and data quality;

[0125] The data verification unit 43 of the master station compares the signal value, timestamp and data quality, and supports the dynamic time warping (DTW) algorithm to compensate for time deviation.

[0126] The verification report includes differences, consistency analysis, and repair suggestions.

[0127] In this embodiment, the intelligent analysis module 40 serves as the core analysis engine of the gateway machine's dual-confirmation closed-loop test system. It adopts a layered verification architecture design and implements standardized access to multi-source signals through the signal receiving and parsing unit 41. It supports real-time analysis of all-factor information sent by the intelligent device simulation module 10, including signal reference, Chinese description, value, timestamp, and data quality. The built-in signal type automatic identification engine is compatible with the IEC 61850 standard data set and private protocol format conversion. The historical data comparison unit 42 constructs a dual-time axis comparison model, triggers the multi-source database interface module 20 to perform cross-database joint query, and performs a three-dimensional comparison of the value, time stamp, and quality bit between the historical trajectory data stored in the gateway machine and the real-time data of the simulation module. The sliding window algorithm is used to achieve incremental verification of TB-level historical data. The master station data verification unit 43 deploys a dynamic time warping (DTW) algorithm to compensate for the clock deviation between the master station and the simulation module, and performs semantic-level comparison of telesignaling changes, telemetering values, and data quality labels. The built-in threshold adaptive mechanism can automatically identify the reasonable error range. Based on the RCD file parsing results, the control command closed-loop verification unit 44 drives the master station protocol simulation module 30 through a state machine to execute the remote control / remote adjustment command sequence. Combined with the response timing monitoring and device status tracking of the intelligent device simulation module 10, this forms a complete closed-loop verification chain of "command issuance - device response - status confirmation." The verification report generation unit 45 uses multi-dimensional data aggregation technology to integrate key information such as comparison results, timing deviations, and device responses into a structured report. This report includes visualization components such as difference waveform overlays, time-scale offset histograms, and device state transition trees. It supports PDF / Excel export and test case correlation and tracing. By combining intelligent comparison algorithms with closed-loop verification mechanisms, this module achieves in-depth analysis of gateway data and control flows, significantly improving the quantitative assessment value and problem location accuracy of test reports.

[0128] The intelligent analysis module of the present invention realizes in-depth analysis of gateway machine data flow and control flow through multi-level data verification and closed-loop verification mechanism, significantly improving the quantitative evaluation value and problem location accuracy of the test report.

[0129] Example 2

[0130] like Figure 1 As shown, according to one embodiment of the present invention, a gateway machine double confirmation closed-loop test system adopts a modular architecture, and the test system includes: an intelligent device simulation module 10, a multi-source database interface module 20, a master station protocol simulation module 30 and an intelligent analysis module 40;

[0131] Through bidirectional data flow closed-loop verification and multi-dimensional consistency verification, the functional integrity and data reliability of the smart substation gateway are ensured. Specifically,

[0132] Intelligent Device Simulation Module 10: Based on the IEC 61850 Ed2.0 / Ed1.0 standard, it simulates MMS communications for secondary devices such as protection devices, measurement and control units, and stability control systems. It supports the import of custom SCD files and templated device configuration, enabling flexible definition of device types, parameters, and communication behaviors.

[0133] The intelligent device simulation module 10 includes an analysis and modeling unit 11 , a dynamic behavior simulation unit 12 , a simulation data processing unit 13 and a recording unit 14 .

[0134] The parsing and modeling unit 11 is used to parse and model the SCD file, including: parsing the substation SCD file, extracting IED device information, communication configuration (such as LD / LN / DOI structure) and logical relationships (such as GOOSE subscription relationship), and building a full-process simulation model of secondary equipment.

[0135] The dynamic behavior simulation unit 12 is used to perform dynamic behavior simulation, including: simulating the behavior, response and state changes of intelligent devices, supporting fault injection (such as communication interruption, data packet loss) and abnormal scenario simulation (such as remote signaling jitter, telemetry limit violation).

[0136] The simulation data processing unit 13 is used for data generation and transmission, including: triggering telesignaling (SOE events) and telemetry (analog / digital) data according to a preset time sequence, and transmitting them to the intelligent analysis module 40 in real time.

[0137] The recording unit 14 is used to record the test process, including: recording all simulation data generated during the test process, including input control signals, simulation responses, communication messages and timestamps, and supporting playback and retrospective analysis.

[0138] Multi-source database interface module 20: provides a unified access interface for MySQL, Oracle, and domestic databases (DaMeng, Renmin University of China Golden Warehouse), and realizes low-coupling docking based on JDBC / ODBC and ORM framework; supports combination filtering such as timestamp range, device ID, data quality label, etc., and has built-in B+ tree index to optimize query efficiency; adopts paging query and asynchronous streaming transmission mechanism to ensure the real-time retrieval of TB-level historical data.

[0139] The multi-source database interface module 20 includes an access unit 21 , a retrieval unit 22 and a data transmission unit 23 .

[0140] The access unit 21 is used for database access, including connecting to the gateway database under test (such as MySQL, Oracle), and supporting SQL query optimization and distributed query acceleration.

[0141] The retrieval unit 22 is used to perform multi-dimensional data retrieval, including: providing multi-condition filtering functions, supporting combined queries by time period, device ID, measurement point type (such as telesignaling, telemetry), data quality tags, etc., and built-in indexes to optimize query performance.

[0142] The data transmission unit 23 is used for real-time data transmission, including: transmitting the query results (including historical data and real-time updated data) to the intelligent analysis module 40 in real time to ensure low latency and high reliability of the data flow.

[0143] Master Station Protocol Emulation Module 30: Fully supports IEC 101 (serial), IEC 102, IEC 103 (Protection Device Protocol), IEC 104, and non-standard extension protocols, and supports automatic negotiation and dynamic switching of protocol versions. A built-in scripting engine supports batch issuance, serialized execution, and result verification of remote control / remote adjustment commands.

[0144] The master station protocol simulation module 30 includes a first simulation unit 31 , a second simulation unit 32 , a third simulation unit 33 , a fourth simulation unit 34 and a simulation data transmission unit 35 .

[0145] The first simulation unit 31 is used to simulate the telecontrol 101 master station, including: receiving telesignaling / telemetry data and sending remote control / telemodulation commands, supporting serial and network communication modes, and being compatible with multiple non-standard extension protocols.

[0146] The second simulation unit 32 is used to simulate the metering master station 102, including: realizing remote monitoring and control of metering information, supporting electricity meter data collection, rate calculation and abnormal alarm functions.

[0147] The third simulation unit 33 is used to simulate the Baoxin 103 master station, including: realizing data collection, processing and management of relay protection devices, supporting protection event recording, fault recording and setting value management.

[0148] The fourth simulation unit 34 is used to simulate the telecontrol 104 master station, including: parsing RCD files, simulating multiple telecontrol channels, receiving telesignaling / telemetry data and sending remote control / telemodulation commands, and supporting dual network redundancy and link status monitoring.

[0149] The simulation data transmission unit 35 is used for real-time data transmission, including: transmitting the received data (including the original message and the parsing result) to the intelligent analysis module 40 in real time through a standardized interface, supporting data quality labels and anomaly markings.

[0150] The intelligent analysis module 40 includes: a signal receiving and analyzing unit 41 , a historical data comparing unit 42 , a master station data verifying unit 43 , a control command closed-loop verifying unit 44 and a verification report generating unit 45 .

[0151] The intelligent analysis module 40 is used to perform a double-layer verification on the system data, specifically:

[0152] The first level of verification - basic data consistency verification, includes: comparing the data stored in the gateway machine with the original data of the simulation device to ensure the integrity and accuracy of the data.

[0153] The second layer of verification - data stream consistency verification, includes: based on the original data of the smart device simulation module 10 and the actual received and sent data of the master station protocol simulation module 30, multi-dimensional consistency verification is performed, including data value, timestamp and data quality comparison, automatic marking of inconsistent data points and triggering of the fault scenario playback mechanism.

[0154] The intelligent analysis module 40 includes: a signal receiving and analyzing unit 41 , a historical data comparing unit 42 , a data checking unit 43 , a control command closed-loop verification unit 44 and a verification report generating unit 45 .

[0155] The signal receiving and analyzing unit 41 is used for signal receiving and analyzing, including: receiving the signal from the intelligent device simulation module 10, including signal reference, Chinese description, value, timestamp and data quality information, and supporting automatic signal type identification and format conversion.

[0156] The historical data comparison unit 42 is used to perform historical data comparison, including: triggering the multi-source database interface module 20 to query the historical signal of the gateway device, comparing the query result with the real-time signal of the intelligent device simulation module 10, and focusing on verifying the consistency of the value, timestamp and data quality.

[0157] The master station data verification unit 43 is used to perform master station data verification, including: after receiving the signal of the master station protocol simulation module 30, it is compared with the signal of the smart device simulation module 10, including the verification of the signal value, timestamp and data quality, and supporting the dynamic time warping (DTW) algorithm to compensate for time deviation.

[0158] The control command closed-loop verification unit 44 is used to perform control command closed-loop verification, including: triggering the master station protocol simulation module 10 to perform corresponding operations according to the remote control / remote adjustment command in the RCD file, and the smart device simulation module 10 then responds to the gateway machine command and records the execution result and response time.

[0159] The verification report generation unit 45 is used to generate a verification report, including: by comparing the signals of the intelligent device simulation module 10, the multi-source database interface module 20 and the master station protocol simulation module 30, generating a verification report including difference points, consistency analysis and repair suggestions, and supporting PDF / Excel format export.

[0160] This system utilizes a collaborative closed-loop system consisting of an intelligent device simulation module, a master station protocol simulation module, and an intelligent analysis module to build a complete automated test chain, from device modeling to protocol communication to data verification and report generation. The system supports automatic test case generation driven by SCD files, serialized execution of instructions parsed by RCD files, and dual-timeline (historical data / real-time data) comparison, improving test efficiency and reducing the need for manual intervention. It is particularly suitable for full-scenario regression testing of substations.

[0161] The present invention adopts a two-layer verification architecture: the basic layer uses the historical data comparison unit to realize the full-element (numerical value / time stamp / quality bit) comparison between the gateway machine storage data and the simulation source data to ensure the integrity of data storage; the data flow layer combines the dynamic time regularization algorithm of the master station data verification unit and the timing monitoring of the control command closed-loop verification unit to realize the data flow consistency verification across the master station-gateway machine-terminal device, and the time deviation compensation accuracy reaches the microsecond level, which effectively solves the false alarm problem caused by the asynchronous clock of the distributed system.

[0162] The master station protocol simulation module of the present invention supports the full range of IEC 101 / 102 / 103 / 104 protocols and non-standard extended protocols, and can be adapted to devices from different manufacturers through a dynamic negotiation mechanism for protocol versions; the built-in fault injection engine supports simulation of more than 20 abnormal scenarios such as communication interruption, data packet loss, and remote signal jitter. Combined with the GOOSE subscription relationship modeling of the intelligent device simulation module, it can reproduce typical defect scenarios such as substation relay protection malfunction and data refresh delay, significantly improving test coverage. The intelligent analysis module integrates a machine learning anomaly detection algorithm, which can automatically identify hidden defects such as data mutations and time scale jumps; the verification report generation unit uses multi-dimensional data aggregation technology to combine visual components such as difference waveform overlays and device state transition trees with quantitative indicators (such as data consistency rate and response delay distribution) to assist operation and maintenance personnel in quickly locating the root cause; the system supports the association of test cases with defect libraries, providing a quantitative evaluation basis for equipment network access detection. The multi-source database interface module realizes the unified access of MySQL / Oracle and domestic databases such as DAMO / Renda Jincang, and improves the efficiency of historical data retrieval through the ORM framework and SQL query optimization technology; the system supports the deployment of domestic software and hardware environments, meets the requirements of information technology transformation in the power industry, and provides independent and controllable testing solutions for smart grid equipment.

[0163] Through the deep integration of modular design, deep protocol simulation and intelligent analysis, this invention constructs a test and verification platform covering the entire life cycle of substation gateway machines, effectively solving the pain points of traditional testing methods such as high labor costs, incomplete scenario coverage, and difficulty in reproducing defects, and provides key technical support for the quality control of power grid secondary equipment.

[0164] Example 3

[0165] Figure 2 This is a flow chart of a double confirmation closed loop test method for a gateway machine according to an embodiment of the present invention. Figure 2 As shown, according to one embodiment of the present invention, a gateway machine double confirmation closed-loop test method adopts any gateway machine double confirmation closed-loop test system of the present invention, and the method includes the following steps:

[0166] Step S102: After the test system is started, the SCD file, RCD file and metering point table file are automatically loaded;

[0167] Step S104, simulating the secondary device MMS communication based on the SCD file, transmitting the simulation data to the intelligent analysis module 40 in real time, and recording the full process test data;

[0168] Step S106, accessing the database of the gateway under test through the JDBC / ODBC protocol, and performing real-time retrieval of the database according to the control instructions;

[0169] Step S108, executing multi-master station protocol simulation in parallel, and transmitting protocol interaction data to the intelligent analysis module 40 in real time;

[0170] Step S110, a verification step, includes: verifying the consistency of historical data stored in the database of the gateway under test with the real-time data of the intelligent device simulation module 10; verifying the consistency of data received by the master station protocol simulation module 30 with the data sent by the intelligent device simulation module 10;

[0171] Step S112: The intelligent analysis module 40 triggers the master station protocol simulation module 30 to parse the remote control / remote adjustment point table in the RCD file, generates a command sequence by priority, and the intelligent device simulation module 10 receives the command forwarded by the gateway under test, triggering the remote signaling change and telemetry data change;

[0172] Repeat the verification steps to control the test system for closed-loop verification and generate a verification report.

[0173] In this embodiment, the present invention proposes a gateway machine double confirmation closed-loop testing method. Through a modular architecture and multi-level verification mechanism, an automated testing system covering the entire life cycle of the substation gateway machine is constructed. This method is based on the gateway machine double confirmation closed-loop testing system implementation, specifically including:

[0174] During the system initialization phase, the test platform automatically loads the SCD file, RCD file, and metering point table file upon startup, completing protocol parameter configuration and device model construction. The SCD file is parsed based on the IEC 61850Ed2.0 / Ed1.0 standard, extracting the IED device logical node (LD / LN / DOI) structure and GOOSE subscription relationships to build a full-process simulation model for the secondary equipment. The RCD file defines the telecontrol channel protocol parameters (IEC 101 / 104) and the remote control / remote regulation point table. The metering point table file configures collection rules such as the energy meter address and rate type.

[0175] During the intelligent device simulation phase, MMS communication simulation of secondary equipment, such as protection devices and measurement and control units, is driven by SCD files. Telesignaling (SOE events), telemetry (analog / digital), and metering data are generated according to a preset sequence. The test system supports fault injection (such as communication interruptions and packet loss rate settings) and abnormal scenario simulation (such as telesignaling jitter and telemetry over-limit triggering). A double-buffering mechanism enables real-time transmission of simulation data to the intelligent analysis module 40. Control signals, response messages, and nanosecond timestamps are also recorded, enabling test replay and root cause tracing.

[0176] During the multi-source database access phase, unified access to databases such as MySQL, Oracle, and DAMO is achieved through the JDBC / ODBC protocol, with low-coupling achieved based on the ORM framework. After receiving query requests from the intelligent analysis module 40, the test system uses a B+ tree index to accelerate multi-dimensional combined queries based on timestamp range (nanosecond accuracy), device IED name, and signal type. Paging (1,000 entries per page) and asynchronous streaming ensure real-time retrieval of terabytes of historical data.

[0177] During the master station protocol simulation phase, the full range of IEC 101 / 102 / 103 / 104 protocol simulations are executed in parallel, supporting dynamic protocol version negotiation and non-standard extension adaptation. The first and fourth simulation units 31 and 34 use a scripting engine to batch-issue remote control commands (such as the "open → close" sequence), supporting timeout detection and status result assertions. The second simulation unit 102 collects electricity meter data and calculates rates, triggering alarms for abnormalities such as loss of voltage. The third simulation unit 103 analyzes protection device settings and waveform recording files, supporting online setting modification and event classification verification.

[0178] During the double-layer verification stage, the intelligent analysis module 40 performs two-level consistency verification: the first-level verification compares the historical data stored in the gateway machine with the simulation source data, and verifies the consistency of all elements such as numerical values, time stamps, and quality bits; the second-level verification compensates for the time deviation between the master station and the simulation module through the dynamic time warping (DTW) algorithm, performs semantic-level comparison of signal values, time stamps, and data quality, automatically marks the differences, and triggers the playback of the fault scenario.

[0179] During the closed-loop verification phase, the intelligent analysis module 40 triggers the master station protocol simulation module 30 to parse the remote control / telecontrol point table in the RCD file and generate a command sequence based on priority (e.g., "remote control selection → execution → return to calibration verification"), supporting conditional branching and retry mechanisms. The intelligent device simulation module 10 responds to commands forwarded by the gateway, triggering changes in telesignaling and telemetered data. The system repeatedly performs a double-layer check to verify command execution timing (e.g., telesignaling time difference ≤ 200ms) and data consistency.

[0180] During the report generation phase, the test system aggregates multi-dimensional comparison results to generate a verification report that includes consistency statistics, root cause analysis, and repair suggestions. It supports visualization components such as difference waveform overlays and device status migration trees, and provides PDF / Excel export and API interface push functions.

[0181] Through the integration of deep protocol simulation, automated test scripts, dual-network redundancy verification and intelligent data analysis, this invention realizes a complete closed loop from device modeling → protocol communication → data verification → defect location, significantly improving the efficiency and coverage of substation gateway testing, and providing quantitative evaluation support for the quality control of power secondary equipment.

[0182] Example 4

[0183] According to one embodiment of the present invention, a gateway machine double confirmation closed-loop test method is implemented by any gateway machine double confirmation test system of the present invention, and the method includes the following steps:

[0184] Step S201, test system initialization and multi-protocol file loading;

[0185] After the test system is started, load the following configuration files:

[0186] SCD file: Based on the IEC 61850Ed2.0 / Ed1.0 standard, it parses IED device information (LD / LN / DOI structure) and logical node configuration to build a full-process simulation model for secondary equipment.

[0187] RCD file: defines telecontrol channel protocol parameters (IEC 101 / 104), remote control, remote adjustment, remote signaling and telemetering point table.

[0188] Metering point table file: configures metering device parameters (such as electricity meter address, rate type) and data collection rules.

[0189] Step S202: smart device simulation and dynamic behavior injection;

[0190] Based on the SCD file, the MMS communication of secondary equipment such as protection devices and measurement and control units is simulated, and telesignaling (SOE events), telemetering (analog / digital) and metering data are generated according to the preset timing.

[0191] Supports fault injection (communication interruption, data packet loss rate setting) and abnormal scenario simulation (telesignaling jitter, telemetry threshold crossing triggering).

[0192] The simulation data is transmitted to the intelligent analysis module 40 in real time.

[0193] Record simulation process data (control signals, response messages, timestamps), and support test playback and retrospective analysis.

[0194] Step S203: Efficient access and data synchronization of multiple source databases;

[0195] Step 1, database connection:

[0196] Access MySQL, Oracle, DAMO and other databases through JDBC / ODBC protocol, and achieve low-coupling docking based on ORM framework.

[0197] Step 2: Data query:

[0198] Receive the query request from the intelligent analysis module 40, the parameters of which include the timestamp range (nanosecond precision), the device IEDName, the signal type (telesignaling / telemetry), and the data quality tag (such as validity=good).

[0199] Built-in B+ tree index accelerates queries, adopts paging mechanism (1000 records per page) and asynchronous streaming transmission, and supports real-time retrieval of TB-level data.

[0200] Step S204, master station protocol simulation and multi-protocol support;

[0201] Telecontrol master station simulation (IEC 101 / 104): Supports serial (RS485) and network (TCP / IP) communication modes, with automatic protocol version negotiation (e.g., IEC 104-2002 vs. 2016). It uses a scripting engine to batch issue remote control commands (e.g., sequentially execute "open → close") and perform assertion verification on execution results (e.g., timeout detection, status result matching).

[0202] Metering master station simulation (IEC 102): enables data collection from electric energy meters (voltage, current, and power factor), supports rate segmentation calculation, and supports abnormal alarms (such as voltage loss events).

[0203] Baoxin master station simulation (IEC 103): collects relay protection device settings and waveform recording files, supports protection event classification (such as overcurrent stage I action) and online modification of settings.

[0204] Step S205: consistency check between original data and historical data (first level check);

[0205] After receiving the signal from the intelligent device simulation module 10, the intelligent analysis module 40 first records key information such as the signal's reference, Chinese description, value, timestamp, and data quality. It then triggers the multi-source database interface module 20 to query the historical database for relevant data and compare it with the real-time signal to check for consistency in parameters such as value, timestamp, and data quality. This comparison process helps ensure the accuracy of signal data and promptly identify potential anomalies or inconsistencies, providing more reliable data support for decision-making and analysis.

[0206] Step S206, consistency check between original data and real-time data of the master station (second level check);

[0207] Intelligent analysis module 40 compares the signals received by master station protocol emulation system 30, checking the accuracy of parameters such as values, timestamps, and data quality using references and Chinese descriptions in the RCD file. This comparison process not only verifies data reliability but also enhances the system's monitoring capabilities and anomaly detection capabilities, ensuring consistency and reliability during data transmission and processing, further improving system accuracy and stability.

[0208] Step S207, closed-loop verification of the telecontrol master station control command;

[0209] The intelligent analysis module 40 triggers the master station protocol simulation module 30 to parse the remote control / remote adjustment point table in the RCD file and generate an instruction sequence (such as "remote control selection → remote control execution → return to school verification") according to priority.

[0210] The script engine is used to implement batch issuance of instructions (such as controlling 10 circuit breakers at the same time) and support conditional branching (such as "retry 3 times if return to school fails").

[0211] The intelligent device simulation module 10 receives the instructions forwarded by the gateway machine, triggering the remote signal change (such as circuit breaker status update) and telemetry data change (such as line current returning to zero).

[0212] Repeat steps S205 and S206 to verify whether the command execution result meets expectations (such as the difference between the remote signal change time and the command issuance time is ≤ 200ms).

[0213] Step S208, data collection and verification at the metering master station;

[0214] The intelligent analysis module 40 triggers the metering master station protocol simulation module 30 to send a data call command (such as freezing the electric energy meter data), and the intelligent device simulation module 10 responds and uploads the metering data (such as forward active electric energy).

[0215] Verify data integrity (e.g., rate period is consistent with point meter configuration) and accuracy (e.g., error in accumulated energy value is <0.5%).

[0216] Step S209, the security master station executes commands and uploads protection information;

[0217] The intelligent analysis module 40 triggers the protection master station protocol simulation module 10 to execute commands such as "call configuration", "call setting", and "general call", and the intelligent device simulation module 10 uploads the protection device setting list and fault recording file.

[0218] Verify the consistency of the set value parameters (such as the set value of overcurrent stage I = 5A) and the integrity of the recording file (waveform sampling rate ≥ 4kHz).

[0219] Step S210, signal comparison and verification report generation;

[0220] The intelligent analysis module 40 generates a detailed verification report by comparing the signals of the intelligent device simulation module 10, the master station protocol simulation module 30 and the multi-source database interface module 20, specifically including:

[0221] Consistency statistics: percentage of consistent signals, classification of discrepant signals (such as timestamp deviation, value exceeding the limit, and data quality).

[0222] Root cause analysis: Communication messages, device configuration, and protocol analysis logs associated with discrepancy signals.

[0223] Repair suggestion: Automatically recommend configuration modifications (such as correcting the LD name of the SCD file) or adjusting protocol parameters (such as extending the IEC104 timeout).

[0224] Supports report export (PDF / Excel) and API interface push to third-party platforms.

[0225] The present invention improves the reliability of telesignaling and telemetering data and enhances the accuracy and reliability of remote control and remote adjustment command execution through a double confirmation mechanism and a closed-loop feedback mechanism; the test system ensures the consistency and integrity of test data through the synergy of the intelligent device simulation module, the master station protocol simulation module and the multi-source database interface module; the double confirmation step enables the gateway machine to undergo two independent verifications after executing the command to ensure that the execution result of each command meets the expectations.

[0226] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the method described above can refer to the corresponding process in the aforementioned system embodiment and will not be repeated here.

[0227] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features having similar functions disclosed in this application.

[0228] It should be understood that the size of the serial numbers of each step in the content of the invention and the embodiments of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

Claims

1. A gateway machine double confirmation closed loop test system, characterized in that: include: An intelligent device simulation module (10), a multi-source database interface module (20), a master station protocol simulation module (30) and an intelligent analysis module (40); The intelligent device simulation module (10), the multi-source database interface module (20), and the master station protocol simulation module (30) are respectively connected to the gateway machine under test and the intelligent analysis module (40); The intelligent device simulation module (10) is used to simulate the secondary equipment in the intelligent substation, realize the transmission of remote signaling and telemetry data, and respond to remote control and remote adjustment commands; The multi-source database interface module (20) is used to connect to the database of the gateway under test and query, analyze and monitor the data in the database; The master station protocol simulation module (30) is used to simulate the master station protocol and communicate with the gateway machine under test; The intelligent analysis module (40) is used to compare and analyze signal data from different modules to ensure the consistency and accuracy of the data; The intelligent analysis module (40) performs a double-layer verification on the data consistency, specifically including: Verifying the consistency between historical data stored in the database of the gateway under test and real-time data of the intelligent device simulation module (10); The consistency of the data received by the master station protocol simulation module (30) and the data sent by the intelligent device simulation module (10) is verified.

2. The gateway machine double confirmation closed-loop test system according to claim 1 is characterized in that: The intelligent device simulation module (10) includes: an analysis and modeling unit (11), a dynamic behavior simulation unit (12), a simulation data processing unit (13) and a recording unit (14); The parsing and modeling unit (11) is used to parse and model the SCD file and construct a full-process simulation model of the secondary equipment; The dynamic behavior simulation unit (12) is used to perform dynamic behavior simulation on the secondary device; The simulation data processing unit (13) is used to trigger the telesignaling and telemetry data according to a preset time sequence and transmit them to the intelligent analysis module (40) in real time; The recording unit (14) is used to record all simulation data generated during the test process.

3. The gateway machine double confirmation closed-loop test system according to claim 2, characterized in that: The intelligent device simulation module (10) simulates the MMS communication of secondary devices based on the IEC 61850Ed2.0 / Ed1.0 standard, supports the import of custom SCD files and device template configuration, and realizes the flexible definition of device types, parameters and communication behaviors; Extracting IED device information, communication configuration and logical relationships based on the SCD file, and building a full-process simulation model of the secondary equipment; Dynamic behavior simulation of secondary devices includes simulating the behavior, response and state changes of intelligent devices; The simulation data generated during the test includes input control signals, simulation responses, communication messages and timestamps.

4. The gateway machine double confirmation closed-loop test system according to claim 1, characterized in that: The multi-source database interface module (20) includes: an access unit (21), a retrieval unit (22) and a data transmission unit (23); The access unit (21) is used to connect to the database of the gateway machine under test; The retrieval unit (22) is used to perform multi-dimensional data retrieval on the database; The data transmission unit (23) is used to transmit the data retrieval result to the intelligent analysis module (40) in real time.

5. The gateway machine double confirmation closed-loop test system according to claim 4, characterized in that: The multi-source database interface module (20) realizes low coupling docking based on JDBC / ODBC and ORM framework; has built-in B+ tree index; and adopts paging query and asynchronous streaming transmission mechanism; The databases of the gateway host under test include: MySQL, Oracle, DAMO, and Renmin University of China Jincang; The multi-dimensional data retrieval includes: providing a multi-condition screening function, supporting combined queries by time period, device ID, measurement point type, and data quality label, and built-in indexing to optimize query performance.

6. The gateway machine double confirmation closed-loop test system according to claim 1, characterized in that: The master station protocol simulation module (30) comprises: a first simulation unit (31), a second simulation unit (32), a third simulation unit (33), a fourth simulation unit (34) and a simulation data transmission unit (35); The first simulation unit (31) is used for simulating the telecontrol 101 master station; The second simulation unit (32) is used to simulate the metering 102 master station; The third simulation unit (33) is used to simulate the Baoxin 103 master station; The fourth simulation unit (34) is used for performing telecontrol 104 master station simulation; The simulation data transmission unit (35) is used to transmit the received data to the intelligent analysis module (40) in real time.

7. The gateway machine double confirmation closed-loop test system according to claim 6, characterized in that: The master station protocol simulation module (30) supports automatic negotiation and dynamic switching of protocol versions; a built-in script engine supports batch issuance, serialized execution and result verification of remote control / remote adjustment instructions; The telecontrol 101 master station simulation realizes the reception of telesignaling / telemetry data and the sending of remote control / telemodulation commands, supports serial and network communication modes, and is compatible with a variety of non-standard extension protocols; The metering 102 master station simulation realizes remote monitoring and control of metering information, supports electricity meter data collection, rate calculation and abnormal alarm functions; The Baoxin 103 master station simulation realizes data collection, processing and management of relay protection devices, and supports protection event recording, fault recording and setting value management; The telecontrol 104 master station simulates and parses RCD files, simulates multiple telecontrol channels, realizes the reception of telesignaling / telemetry data and the sending of remote control / telemodulation commands, and supports dual network redundancy and link status monitoring; The received data is transmitted to the intelligent analysis module (40) in real time via a standardized interface.

8. The gateway machine double confirmation closed-loop test system according to claim 1, characterized in that: The intelligent analysis module (40) further includes: a signal receiving and analyzing unit (41), a historical data comparison unit (42), a master station data verification unit (43), a control command closed-loop verification unit (44), and a verification report generation unit (45); The signal receiving and analyzing unit (41) is used to receive and analyze the signal sent by the intelligent device simulation module (10), and analyze the received signal; The historical data comparison unit (42) is used to trigger the multi-source database interface module (20) to query the historical signal of the gateway machine under test from the database, and compare the query result with the real-time signal of the intelligent device simulation module (10); The master station data verification unit (43) is used to receive a signal from the master station protocol simulation module (30) and compare the signal from the master station protocol simulation module (30) with the signal from the intelligent device simulation module (10); The control command closed-loop verification unit (44) is used to trigger the master station protocol simulation module (30) to perform corresponding operations according to the remote control / remote adjustment command in the RCD file, and the intelligent device simulation module (10) then responds to the command of the gateway machine under test and records the execution result and response time; The verification report generating unit (45) is used to summarize the comparison results of the historical data comparison unit (42), the master station data verification unit (43), and the control command closed-loop verification unit (44) and generate a verification report.

9. The gateway machine double confirmation closed-loop test system according to claim 8, characterized in that: The signal sent by the intelligent device simulation module (10) includes a signal reference, a Chinese description, a numerical value, a timestamp and data quality; The historical data comparison unit (42) verifies the consistency of values, timestamps and data quality; The master station data verification unit (43) compares the signal value, time stamp and data quality, and supports a dynamic time warping algorithm to compensate for time deviation; The verification report includes differences, consistency analysis and repair suggestions.

10. A gateway machine double confirmation closed loop test method, using the gateway machine double confirmation closed loop test system according to any one of claims 1 to 9, characterized in that: The method comprises the following steps: After the test system is started, the SCD file, RCD file and metering point table file are automatically loaded; Simulating secondary equipment MMS communication based on the SCD file, transmitting simulation data to the intelligent analysis module (40) in real time and recording full-process test data; Access the database of the gateway under test through the JDBC / ODBC protocol and perform real-time retrieval of the database according to control instructions; executing multi-master station protocol simulation in parallel and transmitting protocol interaction data to the intelligent analysis module (40) in real time; The verification step includes: verifying the consistency of historical data stored in the database of the gateway machine under test and the real-time data of the intelligent device simulation module (10); verifying the consistency of data received by the master station protocol simulation module (30) and data sent by the intelligent device simulation module (10); The intelligent analysis module (40) triggers the master station protocol simulation module (30) to parse the remote control / remote adjustment point table in the RCD file, generates an instruction sequence according to priority, and the intelligent device simulation module (10) receives the instruction forwarded by the gateway machine under test, triggering the remote signaling change and the telemetry data change; Repeat the verification steps to control the test system for closed-loop verification and generate a verification report.

Citation Information

Cited By

  • Data communication equipment network access test system and method based on full stack simulation

    CN121940328A

  • A programmable fault injection test method and system

    CN122578498A