Transformer substation configuration file verification method and device, terminal equipment and storage medium
By clustering and automatically comparing the structured data of equipment nodes, the problems of low efficiency and low accuracy in substation configuration file verification are solved, achieving efficient and accurate configuration file verification and reducing manual operation time and false detection rate.
Patent Information
- Application Number
- CN202511008556.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-11-04
AI Technical Summary
In existing technologies, the verification of substation configuration files relies on manual reading, which is inefficient, inaccurate, and difficult to detect deep-seated matching problems. Furthermore, it is greatly affected by subjective factors, resulting in a high rate of missed errors in configuration files.
The system uses structured data of device nodes for type clustering, selects reference nodes for automatic comparison, identifies noisy nodes and generates configuration difference reports, and improves verification efficiency and accuracy by comparing data within clusters.
It achieves efficient and accurate configuration file verification, reduces manual operation time, lowers the false detection rate, and improves the consistency and reliability of configuration files.
Smart Images

Figure CN120892852A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent substation, and particularly relates to a substation configuration file verification method and device, a terminal device and a storage medium. BACKGROUND
[0002] In an intelligent substation system, a substation configuration file carries core configuration information such as device parameters, communication links and signal connection relationships, and the correctness of the substation configuration file directly affects the safe and stable operation of the substation. At present, the verification of the configuration file in the prior art mainly relies on manual reading, and the correctness and standardization of virtual connections and parameter configurations in the configuration file are checked by manually checking the file content line by line.
[0003] However, this manual verification method has significant defects. On the one hand, the substation configuration file is stored in a specific format, and has a complex text structure, strong professionalism and poor readability, so the verifier needs to have deep knowledge of the power system and understanding ability to judge the correctness and standardization of the configuration file content. For deep matching problems such as virtual connection logic errors and cross-device signal mapping, manual verification is difficult to fully and accurately find, which may lead to potential safety hazards. On the other hand, with the increasing intelligentization of substations, the data volume and complexity of the configuration file are increasing, and manual verification is low in efficiency, time-consuming and greatly affected by subjective factors, resulting in a high error detection rate of the configuration file and difficulty in meeting the high-precision verification requirements of the substation for the configuration file.
[0004] Therefore, it is urgent to solve the problems of low efficiency and low accuracy of manual verification of the configuration file in the prior art. SUMMARY
[0005] The present application provides a substation configuration file verification method, device, terminal device and storage medium, which can effectively solve the problems of low efficiency and low accuracy of manual verification of the configuration file in the prior art.
[0006] An embodiment of the present application provides a substation configuration file verification method, comprising:
[0007] Obtaining configuration files of a plurality of substation to be verified, wherein each configuration file comprises a plurality of device node structured data and device configuration information corresponding to the device node;
[0008] Performing type clustering on the device node structured data of the configuration file, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types;
[0009] In each clustering cluster, a clustering node in the current clustering cluster that meets a preset reference configuration condition corresponding to the current device node type is taken as a reference node of the current clustering cluster.
[0010] According to the device node structured data and the corresponding device configuration information, data comparison is performed between the remaining cluster nodes in the current cluster and the reference node, and it is determined whether the data comparison is consistent;
[0011] In the case of consistent comparison, an comparison mark is added to the current cluster node;
[0012] In the case of inconsistent comparison, the current cluster node is regarded as a noise node; and the difference between the noise node and the reference node is regarded as a node configuration difference, and the corresponding configuration file is modified according to the node configuration difference.
[0013] Further, it further comprises: based on a plurality of cluster clusters, identifying a double-configuration cluster node in each cluster cluster for representing a double-function configuration;
[0014] The connection configuration information of the double-configuration cluster node and the virtual terminal configuration information in the device node structured data are respectively stored in a preset first list and a second list;
[0015] The connection configuration information in the first list and the second list is compared to identify the connection configuration difference;
[0016] According to the semantic analysis of the connection configuration difference, in the case that the connection configuration difference is different in naming or coding format, it is determined that the connection configuration difference is a manufacturer difference; in the case that the connection configuration difference is functionally asymmetric, it is determined that the connection configuration difference is a function missing difference;
[0017] The virtual terminal configuration information in the first list and the second list is compared to identify the missing items in the virtual terminal configuration information; wherein the virtual terminal configuration information comprises: source node, external reference address, external virtual terminal signal description, target node, internal reference address and internal virtual terminal signal description;
[0018] According to the connection configuration difference and the missing items in the virtual terminal configuration information, a double-configuration verification report is generated.
[0019] Further, it further comprises:
[0020] According to the configuration file, the device configuration information in the configuration file and the virtual terminal configuration information in the device node structured data are extracted;
[0021] According to the virtual terminal configuration information, the virtual connection relationship between each device is determined;
[0022] According to the virtual connection relationship between each device, the input virtual terminal subgraph and the output virtual terminal subgraph of each device are generated;
[0023] According to the device configuration information and the virtual connection relationship between devices, a device macroscopic graph is generated;
[0024] According to the device macroscopic graph, the input virtual terminal subgraph and the output virtual terminal subgraph of each device, a visual virtual terminal connection graph is constructed.
[0025] Further, the device node structured data includes device node type, device access point, device logic, device logic node function, data object, data attribute, communication parameter and device external signal interface;
[0026] According to the device node structured data of the configuration file, type clustering is performed, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types, including:
[0027] Taking the device node structured data as a clustering node, a plurality of device node structured data are randomly selected as initial clustering centers for initial clustering, to obtain a plurality of initial clustering clusters;
[0028] Based on the plurality of clustering clusters, according to feature vectors corresponding to the device access point, the device logic, the device logic node function, the data object, the data attribute, the communication parameter and the device external signal interface, distances from current clustering nodes in each clustering cluster to clustering centers are calculated; wherein, the current clustering node when the distance is calculated for the first time is a clustering node in the initial clustering cluster;
[0029] The current clustering node is assigned to a clustering cluster corresponding to a clustering center with the smallest distance, to obtain a new clustering cluster;
[0030] The center vector in each new clustering cluster is recalculated, and a clustering node corresponding to the center vector is taken as a new clustering center, until all clustering centers are unchanged, to obtain a plurality of clustering clusters for representing device node types.
[0031] Further, the preset reference configuration condition includes logic node integrity condition, data object integrity condition and communication parameter integrity condition;
[0032] A clustering node in the current clustering cluster that meets the preset reference configuration condition corresponding to the current device node type is taken as a reference node of the current clustering cluster, including:
[0033] A clustering node in the current clustering cluster is randomly selected, and according to the device node type corresponding to the clustering node, the corresponding logic node integrity condition, data object integrity condition and communication parameter integrity condition are determined;
[0034] According to the device logic of the current clustering node, it is judged whether all the logical nodes in the corresponding logical node integrity condition are included; if yes, it is determined that the logical node integrity condition is met; if no, it is determined that the logical node integrity condition is not met;
[0035] According to the data object of the current clustering node and the reference object quantity in the data object integrity condition, a quantity deviation is calculated by comparison;
[0036] It is judged whether the quantity deviation is less than a preset deviation threshold; if yes, it is determined that the data object integrity condition is met; if no, it is determined that the data object integrity condition is not met;
[0037] According to the communication parameter of the current clustering node, it is judged whether there is a missing communication parameter; if yes, it is determined that the communication parameter integrity condition is not met; if no, it is determined that the communication parameter integrity condition is met;
[0038] In the case that the logical node integrity condition, the data object integrity condition and the communication parameter integrity condition are all met, the current clustering node is taken as a reference node in the current clustering cluster.
[0039] Further, the configuration file further includes device configuration information; the device node structured data further includes virtual terminal configuration information; the virtual terminal configuration information includes an external reference address, an external virtual terminal signal description, a target node and an internal virtual terminal signal description;
[0040] Data comparison is performed between the remaining clustering nodes in the current clustering cluster and the reference node, and it is judged whether the data comparison is consistent, including:
[0041] According to the device access point and the device external signal interface in the device configuration information and the device node structured data, connection comparison is performed between the remaining clustering nodes in the current clustering cluster and the reference node, and it is judged whether the connection type is consistent;
[0042] In the case that the connection type is inconsistent, it is judged that the data comparison is inconsistent;
[0043] In the case that the connection type is consistent, it is judged whether the device node type and the voltage level in the device configuration information of the current clustering node and the reference node are consistent; if not, it is judged that the data comparison is inconsistent;
[0044] If yes, virtual terminal comparison is performed between the virtual terminal configuration information of the current clustering node and the virtual terminal configuration information of the reference node, and it is judged whether the current clustering node forms a double mapping relationship with the reference node;
[0045] In the case that the current clustering node does not form a double mapping relationship with the reference node, it is judged that the data comparison is inconsistent;
[0046] In the case that the current clustering node and the reference node form a bidirectional mapping relationship, if any item in the virtual terminal configuration information of the current clustering node and the reference node is consistent, it is determined that the data comparison is consistent; otherwise, it is determined that the data comparison is inconsistent.
[0047] Further, the node configuration difference includes: a device configuration information difference, a connection configuration difference, a virtual terminal configuration difference, and a first configuration difference for representing the difference of the device node structured data except the virtual terminal configuration information.
[0048] As an improvement of the above-mentioned scheme, another embodiment of the present application correspondingly provides a substation configuration file verification device, comprising:
[0049] a configuration file acquisition module, configured to acquire configuration files of a plurality of substation to be verified; wherein each configuration file includes a plurality of device node structured data and device configuration information corresponding to the device node;
[0050] a device node type clustering module, configured to perform type clustering according to the device node structured data of the configuration file, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types;
[0051] a reference node determination module, configured to, in each clustering cluster, take a clustering node in the current clustering cluster which meets a preset reference configuration condition corresponding to the current device node type as a reference node of the current clustering cluster;
[0052] a data comparison module, configured to perform data comparison between the reference node and the remaining clustering nodes in the current clustering cluster according to the device node structured data and the corresponding device configuration information, and determine whether the data comparison is consistent;
[0053] a node marking module, configured to, in the case that the comparison is consistent, add a comparison mark to the current clustering node;
[0054] a configuration file modification module, configured to, in the case that the comparison is inconsistent, take the current clustering node as a noise node; and take the difference between the noise node and the reference node as a node configuration difference, and modify the corresponding configuration file according to the node configuration difference.
[0055] Another embodiment of the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a substation configuration file verification method as described in the above-mentioned embodiments when executing the computer program.
[0056] Another embodiment of the present application provides a computer readable storage medium comprising a stored computer program, wherein the computer readable storage medium controls a device on which the computer readable storage medium is located to perform the substation configuration file verification method of the above embodiment when the computer program is run.
[0057] By implementing the present application, at least the following beneficial effects are achieved:
[0058] The present application provides a substation configuration file verification method and device, a terminal device and a storage medium. The method can simultaneously obtain configuration files of a plurality of substation to be verified, and then cluster the device node structured data according to the device node structured data, and cluster the same type of devices in one cluster. After selecting a reference node in each cluster, each cluster node can be compared with the reference node, without manually comparing a plurality of device node structured data of a plurality of substations, reducing the number of comparisons, greatly shortening the comparison time, and improving the verification efficiency of the configuration file. At the same time, through automatic data comparison, whether the cluster nodes in each cluster are consistent with the reference node in the cluster can be determined, and in the case of consistent comparison, a comparison mark can be automatically added to avoid repeated comparison and improve the comparison efficiency, thereby improving the configuration file verification efficiency. In the case of inconsistent comparison, the corresponding configuration file can be modified according to the node configuration difference, reducing the time of manual operation and improving the efficiency. By presetting a reference node meeting the standard condition, the remaining cluster nodes are compared with the reference node to avoid human judgment error and improve the accuracy of comparison. Furthermore, on the basis of obtaining a plurality of cluster clusters representing the type of device node by clustering operation, the cluster nodes of the same cluster cluster are compared, that is, the device node structured data is clustered into the same type, and the device node structured data of the same type of device node is compared to obtain the node configuration difference, further improving the accuracy of comparison, thereby improving the configuration file verification efficiency and improving the verification accuracy. BRIEF DESCRIPTION OF DRAWINGS
[0059] Figure 1 is a flowchart of a substation configuration file verification method provided by an embodiment of the present application;
[0060] Figure 2 is a flowchart of a visual virtual terminal connection diagram construction provided by an embodiment of the present application;
[0061] Figure 3 is a flowchart of an SCD file verification provided by an embodiment of the present application;
[0062] Figure 4 is a structural diagram of a substation configuration file verification device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0063] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the scope of protection of the present application.
[0064] Referring to Figure 1 To solve the problems of low efficiency and low accuracy of manual verification of configuration files in the prior art, an embodiment of the present application provides a flowchart of a substation configuration file verification method, comprising the following steps.
[0065] S1, obtaining configuration files of a plurality of substation to be verified; wherein each configuration file comprises a plurality of device node structured data and device configuration information corresponding to the device node;
[0066] Specifically, in the power grid, there are a plurality of substations, and each substation has a corresponding configuration file. Each configuration file records the structured data of intelligent electronic devices (IED) in the substation. Therefore, the configuration file represents a file recording the parameters and connection relationship of intelligent electronic devices (IED), communication network, etc. in the substation. Usually, the SCD (substation configuration description) file format is adopted, which includes device configuration information, device node structured data and connection configuration information. The device configuration information represents the data of device basic attributes and function parameters, such as device model, voltage level, function configuration, etc. The device node structured data represents the hierarchical description of the internal logical structure of the intelligent electronic device, which is the structured data of IED, including device node type (IED), device access point (AccessPoint), device logic (LD), device logic node function (LN), data object (DO), data attribute (DA), communication parameter, device external signal interface (Input) and virtual terminal configuration information. The connection configuration information represents the connection configuration of devices between different nodes, which is a parameter set of physical and logical connection relationship between devices. The virtual terminal configuration information represents a parameter set of logical signal mapping relationship between devices, which defines the transmission path and mapping rule of signals from the source device to the target device, and does not involve specific communication protocol details.
[0067] In a preferred embodiment of the present application, a plurality of substation configuration files to be verified are read from a substation automation system database or a file storage server, and each configuration file contains device node structured data and corresponding device configuration information.
[0068] S2, type clustering according to the device node structured data of the configuration file, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types;
[0069] Specifically, the clustering cluster represents a set formed by clustering algorithm to classify device node structured data with similar features into a category, for representing device node types.
[0070] In a preferred embodiment of the present application, taking the device node structured data as an object, a clustering algorithm (such as K-Means algorithm) is used to classify similar device nodes into the same clustering cluster according to device node types, logical node functions and other features, to form a plurality of sets representing different device node types.
[0071] Preferably, the device node structured data includes device node types, device access points, device logics, device logic node functions, data objects, data attributes, communication parameters and device external signal interfaces.
[0072] According to the device node structured data of the configuration file, type clustering is performed, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types, including:
[0073] Taking the device node structured data as a clustering node, a plurality of device node structured data are randomly selected as initial clustering centers for initial clustering, to obtain a plurality of initial clustering clusters.
[0074] Based on the plurality of clustering clusters, according to feature vectors corresponding to device access points, device logics, device logic node functions, data objects, data attributes, communication parameters and device external signal interfaces, distances from current clustering nodes in each clustering cluster to each clustering center are calculated; wherein, the current clustering node when calculating the distance for the first time is a clustering node in the initial clustering cluster.
[0075] The current clustering node is assigned to a clustering cluster corresponding to a clustering center with the smallest distance, to obtain a new clustering cluster.
[0076] The center vector in each new clustering cluster is recalculated, and a clustering node corresponding to the center vector is taken as a new clustering center, until all clustering centers are unchanged, to obtain a plurality of clustering clusters for representing device node types.
[0077] In particular, the device node type (IED) represents a classification identifier of device functions, devices for implementing functions such as measurement, control, and protection, as the basic unit of a substation, interacting with other devices through a communication interface, such as a protection device, a measurement and control device, and an intelligent terminal. The device access point (Access Point) represents a logical abstraction of the communication interface of the IED device, used to define the communication connection parameters (such as IP address, port, communication protocol, etc.) of the device with external systems, to implement network communication configuration between devices, and to ensure the accuracy and reliability of data interaction. The device logic (LD) represents a logical unit in the IED divided by function (such as a protection function, a measurement function, etc.), which modularizes the complex function modules of the IED, facilitating configuration and management (for example, a protection IED can include a "protection LD" and a "measurement LD"). The device logic node function (LN) represents a logical node, which is the smallest logical unit subdivided by function within the LD (such as a circuit breaker control logic node XCBR, a measurement logic node MMXU, etc.). The data object (DO) represents a specific data entity in the LN (such as "Pos" in XCBR representing the position of the circuit breaker), encapsulating real-time data of the device (such as state quantities, analog quantities) for external access and processing. The data attribute (DA) represents the specific parameters of the DO (such as the data type, value range, unit of "Pos", etc.), defining the physical characteristics and logical meaning of the data, and ensuring the consistency of data interaction. The communication parameter represents the parameters required for device communication, such as the IP address. The device external signal interface (Input) represents the interface or data channel through which the IED device receives external signals (such as receiving trip commands, telemetering, etc. from other devices), implementing signal interaction between devices, and is a key parameter for virtual connection configuration. The feature vector represents a vector formed by quantitatively representing each feature (such as device access point, logic node function, etc.) in the structured data of the device node, used to calculate the similarity between the nodes in the cluster.
[0078] Preferably, the structured data of the device node is used as a clustering node, c nodes are randomly selected as initial cluster centers according to the number of clusters c, and a clustering algorithm is used for initial clustering to form a plurality of initial clustering clusters. Based on each clustering cluster, the distance from each clustering center to the current clustering node in the device node structured data is calculated according to the feature vector corresponding to the device access point, device logic, etc. The current clustering node is assigned to the clustering cluster corresponding to the clustering center with the smallest distance, forming a new clustering cluster, i.e. The minimum distance D(w i ), w i is the current clustering center, and u rFor each cluster node, r represents the index of all cluster nodes. Then, the center vector in each new cluster is recalculated (e.g., the average value of the feature vectors of all nodes in the cluster is taken). The cluster node corresponding to the center vector is taken as the new cluster center. The steps of distance calculation, node allocation and updating cluster centers are repeated until all cluster centers no longer change, and a stable cluster is obtained to characterize the device node type.
[0079] In a preferred embodiment of the present invention, the performance evaluation of the clustering method for SCD files in intelligent substations mainly includes two aspects: accuracy and speed. Specifically, speed can be analyzed by examining and calculating the clustering processing time of the SCD files, while accuracy indicators mainly include precision and recall.
[0080] Accuracy is the percentage of correctly predicted clustering results out of the total number of cluster nodes:
[0081]
[0082] Accuracy has a different meaning than accuracy. When used to predict results, it refers to the probability that all predicted positive samples are actually positive samples. The expression is:
[0083]
[0084] Recall is the probability that a sample is predicted to be positive from among actual positive samples, expressed as:
[0085]
[0086] For ease of comparison, this embodiment uses accuracy and recall as the measurement standards for simulation results. TP stands for True Positive Instance, referring to the number of nodes correctly clustered by the model. FP stands for False Positive Instance, referring to the number of negative class nodes incorrectly clustered by the model (false positives). TN stands for True Negative Instance, referring to the number of nodes correctly clustered into the negative class by the model. FN stands for False Negative Instance, referring to the number of positive class nodes incorrectly clustered into the negative class by the model (false negatives). Through feature vectors and iterative calculations, device nodes with similar characteristics can be accurately and efficiently grouped into one class, providing a foundation for subsequent determination of reference nodes and data comparison, thus improving the targeting and accuracy of configuration file verification.
[0087] S3. Within each cluster, take the cluster node that meets the preset baseline configuration conditions corresponding to the current device node type as the reference node of the current cluster.
[0088] Specifically, a reference node refers to a node within a cluster that meets the preset baseline configuration conditions for that type of device node, and serves as the standard for comparison with other cluster nodes within that cluster.
[0089] In a preferred embodiment of the present application, in each cluster, a cluster node meeting the preset reference configuration condition (such as logical node integrity, data object integrity, etc.) is selected as the reference node of the cluster.
[0090] Preferably, the preset reference configuration condition includes a logical node integrity condition, a data object integrity condition, and a communication parameter integrity condition.
[0091] The cluster node in the current cluster meeting the preset reference configuration condition corresponding to the type of the current device node is selected as the reference node of the current cluster, including:
[0092] A cluster node in the current cluster is randomly selected, and the corresponding logical node integrity condition, data object integrity condition, and communication parameter integrity condition are determined according to the type of the device node corresponding to the cluster node.
[0093] According to the device logic of the current cluster node, it is determined whether all logical nodes in the corresponding logical node integrity condition are contained; if yes, it is determined that the logical node integrity condition is met; if no, it is determined that the logical node integrity condition is not met.
[0094] According to the data object of the current cluster node and the reference object quantity in the data object integrity condition, a quantity deviation is calculated.
[0095] It is determined whether the quantity deviation is less than a preset deviation threshold; if yes, it is determined that the data object integrity condition is met; if no, it is determined that the data object integrity condition is not met.
[0096] According to the communication parameter of the current cluster node, it is determined whether there is a missing communication parameter; if yes, it is determined that the communication parameter integrity condition is not met; if no, it is determined that the communication parameter integrity condition is met.
[0097] In the case where the logical node integrity condition, the data object integrity condition, and the communication parameter integrity condition are all met, the current cluster node is selected as the reference node in the current cluster.
[0098] Specifically, the logical node integrity condition represents a standard of the kind and quantity of logical nodes that the device should have, such as the protection device should contain PDIF, PTRC, and the like logical nodes. The data object integrity condition represents a definition of the quantity and type of data objects of the device, such as the data objects of the measuring device should contain voltage, current, and the like, and the quantity should be within a certain range. The communication parameter integrity condition represents a requirement for whether the parameters required for the device communication, such as the IP address, the MAC address, and the like, are complete. The quantity deviation represents a difference between the quantity of data objects of the current clustering node and the quantity of reference objects in the data object integrity condition. The preset deviation threshold value represents a threshold value for judging whether the quantity of data objects meets the requirement.
[0099] In a preferred embodiment of the present application, a clustering node is randomly selected in the current clustering cluster. According to the type of the device node corresponding to the clustering node, such as the protection device, the measuring and control device, the logical node integrity condition, the data object integrity condition, and the communication parameter integrity condition corresponding thereto are determined. It is checked whether the device logic of the current clustering node contains all the logical nodes in the corresponding logical node integrity condition, and if yes, the condition is met, otherwise, the condition is not met. The quantity of data objects of the current clustering node is compared with the quantity of reference objects in the data object integrity condition, and the quantity deviation is calculated, and if the deviation is less than the preset deviation threshold value, the condition is met, otherwise, the condition is not met. It is checked whether there is a loss of the communication parameter of the current clustering node, and if not, the condition is met, otherwise, the condition is not met. When the clustering node meets the logical node integrity condition, the data object integrity condition, and the communication parameter integrity condition at the same time, it is determined as the reference node in the current clustering cluster.
[0100] Through strict judgment of the integrity of the logical node, the data object, and the communication parameter, it is ensured that the selected reference node has high configuration accuracy and integrity, and a reliable benchmark is provided for subsequent data comparison, and the accuracy of the configuration file verification is improved.
[0101] S4, according to the device node structured data and the corresponding device configuration information, data comparison is performed between the remaining clustering nodes in the current clustering cluster and the reference node, and it is judged whether the data comparison is consistent;
[0102] In a preferred embodiment of the present application, the remaining clustering nodes in the current clustering cluster except the reference node are compared with the device node structured data and the device configuration information of the reference node, and it is judged whether the data is consistent.
[0103] Preferably, the configuration file further comprises device configuration information; the device node structured data further comprises virtual terminal configuration information; the virtual terminal configuration information comprises an external reference address, an external virtual terminal signal description, a target node, and an internal virtual terminal signal description.
[0104] The remaining clustering nodes in the current clustering cluster are compared with the reference node, and it is determined whether the data comparison is consistent, including:
[0105] According to the device configuration information, the device access point in the device node structured data, and the device external signal interface, the remaining clustering nodes in the current clustering cluster are compared with the reference node, and it is determined whether the connection type is consistent;
[0106] In the case where the connection type is inconsistent, it is determined that the data comparison is inconsistent;
[0107] In the case where the connection type is consistent, it is determined whether the device node type of the current clustering node and the reference node and the voltage level in the device configuration information are consistent; if not, it is determined that the data comparison is inconsistent;
[0108] If yes, according to the virtual terminal configuration information of the current clustering node and the virtual terminal configuration information of the reference node, the virtual terminal comparison is performed, and it is determined whether the current clustering node and the reference node form a double mapping relationship;
[0109] In the case where the current clustering node and the reference node do not form a double mapping relationship, it is determined that the data comparison is inconsistent;
[0110] In the case where the current clustering node and the reference node form a double mapping relationship, if any one of the virtual terminal configuration information of the current clustering node and the reference node is consistent, it is determined that the data comparison is consistent; otherwise, it is determined that the data comparison is inconsistent.
[0111] Specifically, the double mapping relationship means that the source node and the target node form a bidirectional corresponding relationship between the current clustering node and the reference node, that is, the source node of the current clustering node corresponds to the target node of the reference node, and the target node of the current clustering node corresponds to the source node of the reference node.
[0112] In a preferred embodiment of the present application, the connection types of the remaining cluster nodes in the current cluster and the reference node are compared according to the device configuration information, the device access points in the device node structured data, and the device external signal interface. It is determined whether the connection types are consistent (such as whether the GOOSE connection and the SV connection type are the same). If the connection types are not consistent, it is directly determined that the data comparison is inconsistent. If the connection types are consistent, it is further determined whether the device node types and the voltage levels in the device configuration information of the current cluster node and the reference node are consistent. If they are not consistent, it is determined that the data comparison is inconsistent. If the device node types and the voltage levels are consistent, the virtual terminal configuration information of the current cluster node and the reference node is compared to determine whether a double mapping relationship is formed. If the double mapping relationship is not formed, it is determined that the data comparison is inconsistent. If the double mapping relationship is formed, it is further checked whether any item (such as the external reference address, the external virtual terminal signal description, and the internal virtual terminal signal description) in the virtual terminal configuration information of the two is consistent. If yes, it is determined that the data comparison is consistent. Otherwise, it is determined that the data comparison is inconsistent. The current cluster is of the same type of IED (such as PL2201A and PL2202A), and the similarity comparison of the same type of IED can be performed, that is, the data comparison.
[0113] Through the multi-dimensional judgment of the connection type, the device attribute, and the virtual terminal configuration, the accuracy and comprehensiveness of the data comparison are improved, the subtle differences in the configuration file can be effectively identified, and the consistency and correctness of the configuration file are ensured.
[0114] S5, in the case of consistent comparison, adding a comparison mark to the current cluster node;
[0115] In a preferred embodiment of the present application, if the comparison is consistent, a comparison mark is added to the current cluster node, which is set to 1, indicating that the data of the current cluster node has been compared, preventing repeated verification.
[0116] S6, in the case of inconsistent comparison, the current cluster node is taken as a noise node. The difference between the noise node and the reference node is taken as a node configuration difference, and the corresponding configuration file is modified according to the node configuration difference.
[0117] Specifically, the noise node represents a node that is not consistent with the reference node in data comparison, and it is generally considered that there is a configuration error or an exception.
[0118] Compared with the traditional manual verification, the verification efficiency can be greatly improved, the false detection and missed detection caused by human judgment can be reduced, the accuracy and consistency of the configuration file can be ensured, and the risk of failure of the substation caused by configuration errors can be reduced.
[0119] Preferably, the node configuration difference includes: device configuration information difference, connection configuration difference, virtual terminal configuration difference, and first configuration difference for representing difference of structured data of device node except virtual terminal configuration information.
[0120] In a preferred embodiment of the present application, the device configuration information difference represents difference of device configuration information (such as voltage level) between different device nodes. The connection configuration difference represents difference of device connection configuration (such as SV transmission parameter) between different nodes. The virtual terminal configuration difference represents difference of virtual terminal configuration information (such as source node, target node, external reference address, etc.) between different nodes. The first configuration difference represents difference of other parts (such as device logic, logic node function, data object, etc.) of structured data of device node except virtual terminal configuration information. The operation and maintenance personnel can use different correction methods according to different difference types, such as directly modifying parameters for device configuration information difference, and reconfiguring links for connection configuration difference, thereby improving the efficiency and accuracy of configuration file correction and ensuring the consistency and reliability of substation device configuration.
[0121] In a preferred embodiment of the present application, the connection types between IEDs are divided into intra-bay connection and inter-bay connection. The connection types are matched first, and if the results are consistent, the device types and voltage levels of the connection nodes are checked. If they are all consistent, it is considered that the two connections are corresponding, indicating that the connection configuration information comparison of the current clustering node and the reference node is consistent. When checking the virtual terminal, the virtual terminal configuration information in the SCD file is classified as "source node (virtual terminal sending signal), external reference address, external virtual terminal signal description, target node (virtual terminal receiving signal), internal reference address, and internal virtual terminal signal description". First, it is judged whether the source nodes of the two virtual terminal information correspond to the target nodes. If so, the external reference address, external virtual terminal signal description, target node, and internal virtual terminal signal description are checked. As long as one of them is consistent, it is considered that the transmission contents of the two virtual terminals are the same, that is, the virtual terminal configuration information comparison is consistent.
[0122] Illustratively, the reference node SL1104 is the reference node of the noise node SL1113. If the noise node has no similar node IED, it cannot find a similar reference node through clustering, such as the virtual connection information being mostly inconsistent with the IED of the same type, indicating that the current noise node has no similar clustering node. If the noise node is a completely isolated abnormal configuration, such as the virtual connection information being completely inconsistent with the IED of the same type, it indicates that the noise node has no reference node.
[0123] In a preferred embodiment of the present application, when verifying the configuration file of a certain substation, it is found that there are differences between two protection device nodes. The voltage level in the device configuration information of one of the nodes is different from that of the other nodes, which belongs to device configuration information difference; the GOOSE link APPID configuration of the other node is wrong, which belongs to connection configuration difference; the target node reference in the virtual terminal configuration of the node is wrong, which belongs to virtual terminal configuration difference; and the logic node of the node is missing, which belongs to the first configuration difference. The system modifies the voltage level, reconfigures the GOOSE link APPID, corrects the virtual terminal target node reference, and supplements the missing logic node according to the difference types, to complete the correction of the configuration file.
[0124] Illustratively, it also includes: based on a plurality of cluster clusters, identifying each cluster cluster for representing a dual-configuration cluster node with a dual-function configuration;
[0125] The connection configuration information of the dual-configuration cluster node and the virtual terminal configuration information in the device node structured data are respectively stored in a preset first list and a second list;
[0126] Comparing the connection configuration information in the first list and the second list, a connection configuration difference is identified;
[0127] According to the semantic analysis of the connection configuration difference, if the connection configuration difference is in different naming or coding formats, it is determined that the connection configuration difference is a manufacturer difference; if the connection configuration difference is functionally asymmetric, it is determined that the connection configuration difference is a function missing difference;
[0128] Comparing each virtual terminal configuration information in the first list and the second list, a missing item in the virtual terminal configuration information is identified; wherein the virtual terminal configuration information includes: source node, external reference address, external virtual terminal signal description, target node, internal reference address and internal virtual terminal signal description;
[0129] According to the connection configuration difference and the missing item in the virtual terminal configuration information, a dual-configuration verification report is generated.
[0130] Specifically, the dual-configuration clustering node represents a node with dual-function configuration in the clustering cluster, which is commonly seen in the dual-redundancy configuration scenario of a substation, such as the A set and B set configurations of a protection device, and the PL2201A and PL2201B are called dual sets, i.e., dual-configuration clustering nodes; the first list represents a pre-set list for storing connection configuration information; the second list represents a pre-set list for storing virtual terminal configuration information in the device node structured data; the manufacturer difference represents the difference in naming or coding format of the connection configuration information due to different manufacturers, but the functions are essentially the same; the function missing difference represents the case that the connection configuration information is not symmetrical in function, i.e., a configuration lacks the function it should have; the dual-configuration verification report represents a report summarizing the connection configuration difference of the dual-configuration clustering node and the missing items of the virtual terminal configuration information, which is used to guide the configuration correction. In theory, the overall structure of the A group and B group devices and the data connection between the two groups, including the topology structure and the virtual terminal connection, should be basically similar. Through the verification of the A and B set configurations of the IED, the output difference not only includes the configuration difference caused by different manufacturers, but also includes the content that needs to be configured for the A and B sets but is only configured in one group of IEDs. If such virtual terminal configuration is missing, the designer can modify it as needed.
[0131] Preferably, in the formed clustering cluster, the dual-configuration clustering node with dual-function configuration is identified according to the device configuration information and the redundant configuration identification in the device node structured data. The connection configuration information of the dual-configuration clustering node and the virtual terminal configuration information in the device node structured data are stored in the first list and the second list, respectively. Then the connection configuration information in the first list is compared to find the differences, and the difference type is judged through semantic analysis, if it is different in naming or coding format, it is identified as a manufacturer difference, if it is not symmetrical in function, it is identified as a function missing difference. The virtual terminal configuration information in the second list is analyzed to identify the missing items. For example, one or more of the source node, external reference address, external virtual terminal signal description, target node, internal reference address, and internal virtual terminal signal description in the virtual terminal configuration information are missing. Finally, according to the connection configuration difference and the missing items of the virtual terminal configuration information, a dual-configuration verification report is generated.
[0132] In a preferred embodiment of the present application, in the double configuration clustering node of the protection device of a certain substation, the system identifies the connection configuration information of the A set and B set protection devices and stores them respectively. After comparison, it is found that the GOOSE control block of the A set device is named "GOOSE_TRIP_A" and that of the B set is named "TRIP_GOOSE_B", which are determined to be manufacturer differences through semantic analysis; at the same time, it is found that the external reference address of a certain trip signal is missing in the virtual terminal configuration of the B set device, and these differences and missing items are recorded in the double configuration verification report, and the operation and maintenance personnel perfect the configuration of the B set device according to the report. For another example, the double configuration clustering node represents AB set configuration, and PL2201A and PL2201B are called double sets. PL2201A and PL2201B are protection devices of the same line (2201), and A / B respectively represent double set configuration. The functions of the two are the same but physically independent and serve as backups for each other. The virtual connection configuration of the AB set should be basically the same, and the functionally identical and model-consistent device nodes in the same set configuration (A set or B set) are similar nodes such as PL2201A and PL2202A. Usually, A set or B set is compared. PL2201A (2201 line A set protection) and PL2202A (2202 line A set protection) belong to similar nodes in the A set; and PL2201B and PL2202B belong to similar nodes in the B set. Similar nodes do not compare PL2201A and PL2202B.
[0133] According to the characteristics of the double configuration of the substation, the manufacturer differences and functional missing differences existing in the double configuration clustering node can be accurately identified, and the missing items of the virtual terminal configuration information can be generated. Detailed verification reports are generated to provide accurate guidance for the operation and maintenance personnel to correct the configuration, and the reliability and consistency of the double system in the substation are ensured.
[0134] Illustratively, it further comprises:
[0135] According to the configuration file, the device configuration information in the configuration file and the virtual terminal configuration information in the device node structured data are extracted;
[0136] According to the virtual terminal configuration information, the virtual connection relationship between each device is determined;
[0137] According to the virtual connection relationship between each device, the input virtual terminal subgraph and the output virtual terminal subgraph of each device are generated;
[0138] According to the device configuration information and the virtual connection relationship between each device, a device macrograph is generated;
[0139] According to the device macrograph, the input virtual terminal subgraph and the output virtual terminal subgraph of each device, a visual virtual terminal connection graph is constructed.
[0140] Specifically, the virtual connection relationship represents a logical signal transmission relationship between devices defined based on the virtual terminal configuration information, such as an SV sample value transmission path. The input virtual terminal subgraph represents a subgraph with devices as nodes, showing the input virtual signal connection relationship of the devices. The output virtual terminal subgraph represents a subgraph with devices as nodes, showing the output virtual signal connection relationship of the devices. The device macrograph represents a graph that shows the overall layout and connection relationship of the devices from a macro perspective, in combination with the device configuration information and the virtual connection relationship. The visual virtual terminal connection graph represents a graph that visually shows the virtual connection relationship between devices in a graphical manner, by integrating the input virtual terminal subgraph, the output virtual terminal subgraph, and the device macrograph.
[0141] Preferably, the device configuration information and the virtual terminal configuration information in the device node structured data are extracted from the configuration file. According to the source node, target node, and other contents in the virtual terminal configuration information, the virtual connection relationship between devices is determined. Based on the virtual connection relationship, the input virtual terminal subgraph and the output virtual terminal subgraph of each device are generated, showing the signal input and output connection of the devices. Then, the device macrograph is generated in combination with the device configuration information (such as voltage level) and the virtual connection relationship. Finally, the device macrograph, the input virtual terminal subgraph, and the output virtual terminal subgraph are integrated to construct the visual virtual terminal connection graph. As shown in Figure 2 The virtual terminal connection between IED devices in the SCD file is displayed, the virtual connection between the local IED (current cluster node) and the specific transmitting and receiving device is formed, and the graphical interactive design is formed through the input or output virtual connection subgraph of the local IED. The virtual connection details of specific devices are displayed from different observation angles, interacted with the IED macrograph, and seamlessly switched between the macrograph and the subgraph of different devices. The detailed information of part of the virtual connection between IEDs, all virtual connection details between IEDs, all input virtual terminal information of IEDs, and all output virtual terminal information of IEDs can be viewed at any time.
[0142] In a preferred embodiment of the present application, after the SCD file (configuration file) is visually processed, as shown in Figure 3 The device node structured data is compared and double configuration is checked, the node data similarity is compared after clustering, and whether the corresponding AB group configuration exists in the double configuration cluster node is compared, the configuration difference is output, and then the configuration file can be modified according to the output configuration difference.
[0143] In a preferred embodiment of the present application, in the profile verification process of the M substation, after the system extracts the device configuration information and the virtual terminal configuration information, the GOOSE and SV connection relationship between the protection device, the intelligent terminal and the merging unit is determined. According to this, the input virtual terminal subgraph (such as the connection relationship of the intelligent terminal receiving the trip signal of the protection device) and the output virtual terminal subgraph (such as the connection relationship of the merging unit sending the sample value to the protection device) of each device are generated, and then the device macrograph is generated by combining the actual position of the device in the substation and other configuration information, and finally the visual virtual terminal connection graph is integrated. The signal flow direction of the protection device of a certain line can be clearly seen by the operation and maintenance personnel through the graph, and the connection abnormality can be quickly located.
[0144] By constructing the visual virtual terminal connection graph, the abstract device configuration and virtual connection relationship are displayed in an intuitive graph, which facilitates the operation and maintenance personnel to quickly master the signal transmission relationship between the devices in the substation, improves the efficiency of fault troubleshooting and system maintenance, and reduces the probability of human understanding error.
[0145] By implementing the embodiment, the configuration files of a plurality of substation to be verified are acquired, and then the device node structured data is clustered to cluster the same type of devices in one cluster. After selecting a reference node in each cluster, each cluster node can be compared with the reference node, so that manual comparison of a plurality of device node structured data of a plurality of substation is not needed, the comparison times are reduced, the comparison time is greatly shortened, and the verification efficiency of the configuration file is improved. Meanwhile, through the automatic data comparison, whether the data comparison is consistent is judged by comparing each cluster node in each cluster with the reference node in the cluster, so that the comparison mark can be automatically added in the consistent comparison to avoid repeated comparison and improve the comparison efficiency, thereby improving the verification efficiency of the configuration file. In the inconsistent comparison, the corresponding configuration file can be modified according to the node configuration difference, the time of manual operation is reduced, and the efficiency is improved. By presetting the reference node meeting the standard condition, the remaining cluster nodes are compared with the reference node to avoid human judgment error and improve the accuracy of comparison. Furthermore, on the basis of obtaining a plurality of cluster clusters representing the type of device node by clustering operation, the cluster nodes in the same cluster are compared, that is, the device node structured data is clustered into the same type, the device node structured data of the same type of device node is compared, the node configuration difference is obtained, and the accuracy of comparison is further improved, so that the verification efficiency of the configuration file is improved while the verification accuracy is improved.
[0146] Referring to Figure 4 is a structural schematic diagram of a substation configuration file verification device provided by an embodiment of the present application, which comprises:
[0147] The configuration file acquisition module is configured to acquire configuration files of a plurality of substation to be verified, wherein each configuration file comprises a plurality of device node structured data and device configuration information corresponding to the device node.
[0148] The device node type clustering module is configured to perform type clustering according to the device node structured data of the configuration file, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types.
[0149] The reference node determination module is configured to determine, in each clustering cluster, a clustering node in the current clustering cluster that meets a preset reference configuration condition corresponding to the current device node type as a reference node of the current clustering cluster.
[0150] The data comparison module is configured to compare, according to the device node structured data and the corresponding device configuration information, the remaining clustering nodes in the current clustering cluster with the reference node, and determine whether the comparison is consistent.
[0151] The node marking module is configured to add a comparison mark to the current clustering node in the case of consistent comparison.
[0152] The configuration file modification module is configured to, in the case of inconsistent comparison, take the current clustering node as a noise node, and take the difference between the noise node and the reference node as a node configuration difference, and modify the corresponding configuration file according to the node configuration difference.
[0153] The present application provides a substation configuration file verification device, which acquires a plurality of configuration files of substations to be verified according to a configuration file acquisition module, wherein each configuration file comprises a plurality of device node structured data and device configuration information corresponding to the device node; performs type clustering according to the device node structured data of the configuration file in a device node type clustering module, taking the device node structured data as a clustering node, to obtain a plurality of clustering clusters for representing device node types; determines, in each clustering cluster, a clustering node in the current clustering cluster that meets a preset reference configuration condition corresponding to the current device node type as a reference node of the current clustering cluster according to a reference node determination module; compares, according to the device node structured data and the corresponding device configuration information, the remaining clustering nodes in the current clustering cluster with the reference node, and determines whether the comparison is consistent in a data comparison module; adds a comparison mark to the current clustering node in the case of consistent comparison through a node marking module; and finally takes the current clustering node as a noise node in the case of inconsistent comparison according to a configuration file modification module, takes the difference between the noise node and the reference node as a node configuration difference, and modifies the corresponding configuration file according to the node configuration difference.
[0154] Meanwhile, the configuration files of several to-be-verified substations are acquired, and then clustering is performed according to the device node structured data, so that devices of the same type are clustered in a cluster, and after a reference node is selected in each cluster, each cluster node can be compared with the reference node, without manually comparing multiple device node structured data of multiple substations, so that the number of comparisons is reduced, the comparison time is greatly shortened, and the verification efficiency of the configuration file is improved. Meanwhile, through automatic data comparison, whether the data comparison is consistent is determined by the cluster nodes in each cluster and the reference node in the cluster, so that in the case of consistent comparison, a comparison mark can be automatically added to avoid repeated comparison and improve the comparison efficiency, thereby improving the configuration file verification efficiency. In the case of inconsistent comparison, the corresponding configuration file can be modified through node configuration difference, so as to reduce the time of manual operation and improve the efficiency. Through presetting a reference node meeting the standard condition, the remaining cluster nodes are compared with the reference node, so as to avoid human judgment error and improve the accuracy of comparison. Furthermore, on the basis of obtaining a plurality of cluster clusters representing device node types through clustering operation, the cluster nodes of the same cluster cluster are compared, that is, the device node structured data is clustered into the same type, the device node structured data of the same device node type is compared, the node configuration difference is obtained, and the comparison accuracy is further improved, so that the configuration file verification efficiency and the verification accuracy are improved at the same time.
[0155] It should be noted that the apparatus embodiments described above are merely illustrative, and the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. In addition, the connection relationship between the modules in the apparatus embodiment provided by the present application indicates that there is a communication connection between them, which can be realized as one or more communication buses or signal lines. Those skilled in the art can understand and implement it without creative labor.
[0156] Those skilled in the art can clearly understand the specific working process of the apparatus described above, and the corresponding process in the foregoing method embodiments can be referred to for reference, and details are not repeated here.
[0157] Another embodiment of the present application also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the substation configuration file verification method as described in the above embodiments when executing the computer program. The terminal device can be a desktop computer, a notebook computer, a palm computer, a cloud server, and the like. The terminal device can include, but is not limited to, a processor and a memory.
[0158] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor and the like, and the processor is a control center of the terminal device, and connects all parts of the terminal device through various interfaces and lines.
[0159] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, and the like; and the data storage area can store data created according to the use of the terminal device, and the like. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory devices.
[0160] Another embodiment of the present application provides a computer readable storage medium, comprising a stored computer program, wherein the computer readable storage medium controls a device where the computer readable storage medium is located to execute the substation configuration file verification method as described in the above embodiments when the computer program is running.
[0161] The storage medium is a computer readable storage medium, and the computer program is stored in the computer readable storage medium. The computer program, when executed by a processor, can implement the steps of each method embodiment described above. The computer program includes computer program code, which can be in the form of source code, object code, an executable file, or some intermediate form, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0162] The above is the preferred embodiment of the present application. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which are also considered within the scope of protection of the present application.
Claims
1. A method for verifying substation configuration files, characterized in that, include: Obtain configuration files for several substations to be verified; each configuration file includes structured data of several device nodes and the device configuration information corresponding to the device nodes. Based on the structured data of the device nodes in the configuration file, type clustering is performed, and the structured data of the device nodes is used as clustering nodes to obtain several clusters that characterize the device node types. Within each cluster, a cluster node that meets the preset baseline configuration conditions corresponding to the current device node type is taken as the reference node of the current cluster. Based on the structured data of the device nodes and the corresponding device configuration information, the data of the other cluster nodes in the current cluster are compared with the reference node to determine whether the data comparison is consistent. If the comparison is consistent, add a comparison marker to the current cluster node; In the event of discrepancies, the current cluster node is designated as a noisy node; and the difference between the noisy node and the reference node is taken as the node configuration difference, and the corresponding configuration file is modified accordingly.
2. The substation configuration file verification method as described in claim 1, characterized in that, Also includes: Based on several clusters, identify the dual-configuration cluster nodes of each cluster used to characterize dual-functional configurations; The connection configuration information of the dual-configuration clustering nodes and the virtual terminal configuration information in the structured data of the device nodes are stored in the preset first list and second list, respectively. By comparing the connection configuration information in the first list and the second list, the differences in connection configuration are identified. Based on the semantic analysis of the connection configuration differences, if the connection configuration differences are due to different naming or encoding formats, then the connection configuration differences are determined to be manufacturer differences; if the connection configuration differences are due to functional asymmetry, then the connection configuration differences are determined to be functional missing differences. Compare the configuration information of each virtual terminal in the first list and the second list to identify the missing items in the virtual terminal configuration information; wherein, the virtual terminal configuration information includes: source node, external reference address, external virtual terminal signal description, target node, internal reference address and internal virtual terminal signal description; A dual configuration verification report is generated based on the differences in the connection configuration and the missing items in the virtual terminal configuration information.
3. The substation configuration file verification method as described in claim 1, characterized in that, Also includes: Based on the configuration file, extract the device configuration information from the configuration file and the virtual terminal configuration information from the structured data of the device nodes; Based on the virtual terminal configuration information, the virtual connection relationships between the devices are determined; Based on the virtual connection relationships between devices, generate input virtual terminal sub-graphs and output virtual terminal sub-graphs for each device; Based on the device configuration information and the virtual connection relationships between the devices, a device macro diagram is generated; Based on the macro diagram of the equipment, the input virtual terminal sub-diagrams of each equipment, and the output virtual terminal sub-diagrams, construct a visual virtual terminal connection diagram.
4. The substation configuration file verification method as described in claim 1, characterized in that, The structured data of the device nodes includes: device node type, device access point, device logic, device logic node function, data object, data attribute, communication parameters, and device external signal interface; Based on the structured data of the device nodes in the configuration file, type clustering is performed, using the structured data of the device nodes as clustering nodes, to obtain several clusters that characterize the device node types, including: Using the structured data of device nodes as clustering nodes, several device node structured data are randomly selected as initial clustering centers to perform initial clustering, resulting in several initial clusters; Based on several clusters, the distance from the current cluster node to each cluster center is calculated according to the feature vectors corresponding to the device access point, device logic, device logic node function, data object, data attribute, communication parameters, and device external signal interface; wherein, the current cluster node when the distance is calculated for the first time is the cluster node in the initial cluster. The current cluster node is assigned to the cluster corresponding to the cluster center with the smallest distance, resulting in a new cluster; The center vector within each new cluster is recalculated, and the cluster node corresponding to the center vector is taken as the new cluster center. This process continues until all cluster centers remain unchanged, resulting in several clusters used to characterize the device node type.
5. The substation configuration file verification method as described in claim 4, characterized in that, The preset baseline configuration conditions include: logical node integrity conditions, data object integrity conditions, and communication parameter integrity conditions; A cluster node within the current cluster that meets the preset baseline configuration conditions corresponding to the current device node type is selected as the reference node for the current cluster, including: Within the current cluster, a cluster node is randomly selected. Based on the device node type corresponding to the cluster node, the corresponding logical node integrity conditions, data object integrity conditions, and communication parameter integrity conditions are determined. Based on the device logic of the current cluster node, determine whether it contains all logical nodes in the corresponding logical node integrity condition; if yes, then it is determined that the logical node integrity condition is met; if no, then it is determined that the logical node integrity condition is not met. The quantity deviation is calculated by comparing the number of data objects in the current cluster node with the number of baseline objects in the data object integrity condition. Determine if the quantity deviation is less than a preset deviation threshold; if yes, determine that the data object integrity condition is met; if no, determine that the data object integrity condition is not met. Determine whether there are missing communication parameters based on the communication parameters of the current cluster node; if so, determine that the communication parameter integrity condition is not met; if not, determine that the communication parameter integrity condition is met. If the logical node integrity condition, data object integrity condition, and communication parameter integrity condition are all met, the current cluster node will be used as the reference node within the current cluster.
6. The substation configuration file verification method as described in claim 5, characterized in that, The configuration file also includes device configuration information; the structured data of the device nodes also includes virtual terminal configuration information; the virtual terminal configuration information includes an external reference address, an external virtual terminal signal description, a target node, and an internal virtual terminal signal description; The remaining cluster nodes within the current cluster are compared with the reference node to determine if the data comparison is consistent, including: Based on the device configuration information, the device access points in the device node structured data, and the device external signal interfaces, the remaining cluster nodes in the current cluster are compared with the reference node to determine whether the connection types are consistent. In cases where connection types are inconsistent, the data comparison is deemed inconsistent. If the connection types are consistent, determine whether the device node type and voltage level in the device configuration information of the current cluster node and the reference node are consistent; if not, determine that the data comparison is inconsistent. If so, then compare the virtual terminal configuration information of the current cluster node with the virtual terminal configuration information of the reference node to determine whether the current cluster node and the reference node form a dual mapping relationship. If no dual mapping relationship is formed between the current cluster node and the reference node, the data comparison is deemed inconsistent. If a bidirectional mapping relationship is formed between the current cluster node and the reference node, and any item in the virtual terminal configuration information of the current cluster node and the reference node is consistent, then the data comparison is considered consistent; otherwise, the data comparison is considered inconsistent.
7. The substation configuration file verification method as described in claim 1, characterized in that, The node configuration differences include: differences in device configuration information, differences in connection configuration, differences in virtual terminal configuration, and a first configuration difference used to characterize the differences in structured data of other device nodes besides virtual terminal configuration information.
8. A substation configuration file verification device, characterized in that, include: The configuration file acquisition module is used to acquire configuration files of several substations to be verified; each configuration file includes structured data of several device nodes and the device configuration information corresponding to the device nodes. The device node type clustering module is used to perform type clustering based on the device node structured data in the configuration file, using the device node structured data as clustering nodes to obtain several clusters that characterize the device node type; The reference node determination module is used to select, within each cluster, a cluster node that meets the preset baseline configuration conditions corresponding to the current device node type as the reference node of the current cluster. The data comparison module is used to compare the data of other cluster nodes in the current cluster with the reference node based on the structured data of the device node and the corresponding device configuration information, and to determine whether the data comparison is consistent. The node tagging module is used to add alignment tags to the current cluster node when the alignment matches. The configuration file modification module is used to treat the current cluster node as a noisy node when there is a discrepancy in the comparison; and to treat the difference between the noisy node and the reference node as the node configuration difference, and modify the corresponding configuration file according to the node configuration difference.
9. A terminal device, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a substation configuration file verification method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a substation configuration file verification method as described in any one of claims 1 to 7.