Relay protection device configuration file standardized downloading and rollback method and system based on SCD (Substation Configuration Description) analysis
The method addresses the lack of comprehensive verification in relay protection device configurations by using semantic mapping and rule-based reasoning to automate and standardize the configuration process, improving efficiency and reliability.
Patent Information
- Application Number
- CN202510803748.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2045-06-17
AI Technical Summary
The prior art lacks systematic verification of logical dependence between configuration fields, equipment capability boundaries and deployment risks in the configuration deployment of relay protection devices, resulting in low configuration efficiency and complex failure regression.
By building a semantic knowledge graph, nesting and parsing SCD files, combining semantic mapping and rule reasoning, automatic generation, verification, downloading and exception fallback of configuration files are realized, and the standardization and reliability of configuration deployment are improved.
It significantly improves the efficiency and accuracy of configuration file generation, reduces the probability of configuration conflicts and semantic errors, and ensures that the device quickly restores normal operation status.
Smart Images

Figure CN120317232A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and more specifically, to a method and system for standardizing the downloading and rolling back of relay protection device configuration files based on SCD parsing. Background Art
[0002] With the continuous improvement of the digital and intelligent levels of power systems, relay protection devices, as key equipment for the safe and stable operation of power grids, the accuracy and standardization of their configuration files play a decisive role in relay protection logic execution, communication interaction, and fault handling. Especially in the context of the widespread application of the IEC 61850 standard, the configuration file structure of relay protection devices tends to be complex, covering multi-layer nested information such as logical devices (LDs), logical nodes (LNs), data objects (DOs), and data attributes (DAs), and needs to support cross-vendor communication protocols and multi-model device adaptation, bringing many challenges to the generation, downloading, and maintenance of configurations.
[0003] In addition, during the configuration deployment process of relay protection devices, key links such as the selection of configuration downloading mode, verification of device capability adaptability, verification of parameter legality, and security encapsulation of configurations need to be considered, and recognizable rollback anchor points should be automatically generated after the configuration deployment is completed to support subsequent fault handling or configuration rollback operations. Especially in the rollback scenario, the system should have the ability to quickly restore to the historical stable configuration version, so as to ensure that the device can quickly return to the normal operating state after a configuration anomaly occurs.
[0004] For example, the method and system for automatically generating interval protection configuration model data from SCD files disclosed in the invention patent with the publication number of CN118279086B, which relates to the field of power technologies, includes: parsing the SCD file, obtaining device data based on the SCD file and constructing a service model; generating virtual terminal objects and virtual circuit objects according to the device model data; generating an interoperability relationship object according to the virtual circuit object, and generating an interval protection configuration object according to the interoperability relationship object. By parsing the SCD file and constructing a service model with interval protection configuration as the core, the present invention significantly improves the understanding and operation efficiency of relay protection professionals for SCD files. By automatically processing the SCD file, it reduces the time of manual configuration and the probability of errors, improves the configuration efficiency and accuracy, and by converting the SCD file into interval protection configuration model data, it enables relay protection professionals to more intuitively understand the content of the SCD file, facilitating review and comparison.
[0005] For example, a method for generating a secondary circuit configuration file of a site-based protection device without SCD configuration disclosed in the invention patent with the publication number of CN109509239A. In the substation system configuration file, there is a lack of technical control means, and there is a risk of incorrect protection operation caused by configuration file errors. To solve the above problems, it is necessary to establish a relay protection secondary circuit that does not rely on SCD file configuration and realize configuration-free process layer configuration. By defining a virtual terminal connection template to maximize the virtual terminal connection relationship between the receiving device and the sending device, the template file does not change with the project. According to different engineering scenarios, only the relationship file between devices needs to be defined and sent to the device. The device generates a process layer configuration file related to the project according to the pre-configured template and the device connection relationship downloaded by the project. The management unit automatically generates the CRC of each device's process file according to the device connection relationship and compares it with the CRC sent by the device to achieve closed-loop verification.
[0006] In the above disclosed technical solution, there are at least the following technical problems: Before traditional deployment, only syntax-level verification is mostly carried out, lacking systematic verification of the logical dependencies between configuration fields, device capability boundaries, and deployment risks. In view of the above problems, the present invention proposes a solution. Summary of the Invention
[0007] In order to overcome the above defects of the prior art, an embodiment of the present invention provides a method for standardized downloading and fallback of a relay protection device configuration file based on SCD parsing. By combining semantic mapping and rule reasoning, it realizes the automatic generation, verification, downloading, and abnormal fallback of the configuration file, and improves the standardization degree and reliability of configuration deployment. By constructing mechanisms such as a semantic knowledge graph, nested parsing of SCD files, and establishing configuration fallback anchor points, it effectively solves problems such as large configuration differences between multi-vendor devices, low deployment efficiency, and complex fault fallback.
[0008] To achieve the above object, the present invention provides the following technical solutions: A method for standardized downloading and fallback of a relay protection device configuration file based on SCD parsing, including: obtaining and parsing a file of a target substation, and extracting first data of a target relay protection device from the parsed file, where the first data includes logical devices, logical nodes, communication parameters, and configuration information; performing semantic mapping on the first data and a configuration template preset by the relay protection device manufacturer to generate an initial configuration file; downloading the initial configuration file to the target relay protection device and obtaining a configuration fallback anchor point; obtaining configuration application data returned by the relay protection device, and combining the configuration fallback anchor point, performing a fallback operation on the configuration file.
[0009] In a preferred embodiment, the obtaining and parsing of the files of the target substation are specifically as follows: automatically obtain the SCD file of the target substation from the dispatching automation platform or the configuration management system, and perform an integrity check on the SCD file; parse the SCD file, locate all IED nodes therein, and screen out the corresponding IED entries according to the target relay protection device; parse the logical device information under the IED entries, and extract the logical nodes in each logical device; recursively parse the data objects and data attributes included under each logical node, construct the hierarchical relationship structure thereof in the data model, and extract the attribute content; extract the first data associated with the relay protection device according to the parsed SCD file, and the first data includes logical devices, logical nodes, communication parameters and configuration information.
[0010] In a preferred embodiment, the semantic mapping of the first data with the configuration template preset by the relay protection device manufacturer to generate an initial configuration file is specifically as follows: load the corresponding preset configuration template according to the model and communication protocol of the target relay protection device; perform semantic matching on the collected first data and the configuration template to establish a mapping relationship between the data fields and the template fields; automatically fill, replace and supplement the fields in the configuration template according to the mapping relationship to generate an initial configuration template; identify fields with missing or inconsistent structural granularity during the mapping process and mark them as fields to be semantically parsed; perform reasoning and automatic completion on the fields to be semantically parsed based on the preset rule engine; perform structural compatibility scoring and differential warning analysis on the completed initial configuration file; output the final configuration file for downloading and use by the target relay protection device according to the results of the compatibility scoring and differential warning analysis.
[0011] In a preferred embodiment, the reasoning and automatic completion of the fields to be semantically parsed based on the preset rule engine are specifically as follows: when the field names are inconsistent, match the data fields to the equivalent fields in the constructed knowledge graph based on the semantic similarity model; when there are granularity differences in the structural levels, call the structure reconstruction rules for granularity conversion operations; when there are multiple candidate fields in the matching results, perform a comprehensive scoring in combination with the context semantic information and the configuration template constraint conditions to select the optimal matching field; when identifying manufacturer private fields, call the private field parsing rules through the semantic recognition module to complete the configuration segment.
[0012] In a preferred embodiment, the process of downloading the initial configuration file to the target relay protection device and obtaining the configuration rollback anchor point is as follows: Establish wired and wireless communication channels with the target relay protection device to obtain the device's capability information; semantically match the capability information with the content of the initial configuration file to select the configuration download mode; verify the initial configuration file before configuration download and obtain the security configuration instructions; transmit the security configuration instructions to the target relay protection device in batches via the communication channel using the IEC 61850 MMS protocol; after the target relay protection device parses and executes the instructions, the system extracts the returned configuration loading result; read the current operating configuration of the relay protection device and perform a field consistency analysis with the initial configuration file; generate a configuration deployment version identifier based on the consistency analysis result and establish a configuration rollback anchor point.
[0013] In a preferred embodiment, the verification of the initial configuration file is as follows: Perform nested parsing of the initial configuration file through an embedded IEC 61850 standard parsing module; after completing the nested parsing, verify the enabling dependencies and mutual exclusion conditions of the configuration items through a pre-constructed relay protection configuration semantic knowledge graph; obtain the device capability description information of the target relay protection device, match it with the initial configuration file, and determine whether the current configuration file exceeds the device's capability boundary; when the operation is an upgrade / reload, read the current operating configuration of the device and perform a field difference comparison; extract the deployment risk data based on the difference comparison result and calculate the deployment risk score using the weighted method; generate a unique configuration anchor point identifier based on the deployment risk score.
[0014] In a preferred embodiment, the process of obtaining the configuration application data returned by the relay protection device and performing the rollback operation of the configuration file in combination with the configuration rollback anchor point is as follows: Receive the configuration exception information returned by the target relay protection device through the communication interface; retrieve the deployment history database based on the exception information to locate the rollback anchor point corresponding to the current configuration; extract the rollback configuration file from the historical version library according to the rollback anchor point; download the rollback configuration file to the target relay protection device via the IEC 61850 MMS protocol; after the download is complete, read the current operating configuration of the device and perform a field comparison with the rollback configuration file to confirm the successful rollback.
[0015] System for the standardized downloading and rollback method of the configuration file of a relay protection device based on SCD parsing, including a parsing module, a mapping module, a downloading module, and a rollback module, with connections between the modules; the parsing module is used to obtain and parse the files of the target substation, and extract the first data of the target relay protection device from the parsed files, where the first data includes logical devices, logical nodes, communication parameters, and configuration information; the mapping module is used to perform semantic mapping between the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file; the downloading module is used to download the initial configuration file to the target relay protection device and obtain the configuration rollback anchor point; the rollback module is used to obtain the configuration application data transmitted back by the relay protection device and perform the rollback operation of the configuration file in combination with the configuration rollback anchor point.
[0016] Technical effects and advantages of a method and system for the standardized downloading and rollback of the configuration file of a relay protection device based on SCD parsing according to the present invention: 1. The present invention automatically obtains and parses the SCD file of the target substation through the parsing module, accurately extracts the logical devices, logical nodes, communication parameters, and configuration information related to the target relay protection device, forms the first data with clear structure and complete data, and lays a data foundation for subsequent configuration generation. Compared with the traditional method of relying on manual step-by-step entry of configuration data, this method greatly improves the generation efficiency and accuracy of the configuration file.
[0017] 2. The present invention realizes the semantic mapping between the first data and the preset template of the relay protection manufacturer through the mapping module, and automatically generates an initial configuration file. During the semantic mapping process, the system uses a semantic similarity model, a rule engine, and a configuration knowledge graph to realize field-level semantic reasoning, structure reconstruction, and private field completion, greatly enhancing the system's compatibility with heterogeneous device configuration templates and significantly reducing the probability of configuration conflicts and semantic errors. After the mapping is completed, the system will also perform a structure compatibility score and difference warning on the generated initial configuration file, further enhancing the rigor and controllability of the configuration. Description of the Drawings
[0018] Figure 1 Schematic diagram of the process of a method for the standardized downloading and rollback of the configuration file of a relay protection device based on SCD parsing according to the present invention.
[0019] Figure 2 Schematic diagram of the structure of a system for the standardized downloading and rollback of the configuration file of a relay protection device based on SCD parsing according to the present invention. Detailed Embodiments
[0020] Next, in combination with the accompanying drawings in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0021] Embodiment 1, Figure 1 A method for standardized downloading and rollback of a relay protection device configuration file based on SCD parsing according to the present invention is provided, including the following steps: S1, obtain and parse the file of the target substation, and extract the first data of the target relay protection device from the parsed file, where the first data includes logical devices, logical nodes, communication parameters, and configuration information.
[0022] In this embodiment, obtaining and parsing the file of the target substation is specifically as follows: The system automatically obtains the SCD file of the target substation from the dispatching automation platform or the configuration management system and performs integrity checks, where the integrity checks include: (1) verifying whether the basic format structure of the SCD file conforms to the IEC 61850 standard; (2) extracting and verifying the compatibility of the namespace, version number, and the deployed parser; (3) generating a file fingerprint (such as an SHA256 hash value) to prevent tampering and support version traceability; The system performs structure parsing on the SCD file through an embedded XML parsing module or an IEC 61850 protocol-compatible parsing tool, specifically including: First, the system locates the <ied>Nodes, by matching IED names, function descriptions, or device identifiers, screen out IED entries corresponding to the target relay protection device; Then, parse the logical device information under the IED node, including logical device identifier (LD name), corresponding function blocks, primary equipment loop identifier or voltage level, etc.; The system extracts multiple logical nodes (Logical Node) defined in each logical device, identifies the types of each logical node (such as PTOC represents overcurrent protection, PDIF represents differential protection, etc.), instance numbers (LN instance numbers), and their function descriptions; Finally, further read the data objects (Data Object, DO) and their data attributes (Data Attribute, DA) contained under each logical node, and parse their hierarchical relationships and attribute contents in the data model to provide basic data support for subsequent parameter comparison and configuration item mapping; Obtain the first data associated with the relay protection device according to the parsed SCD file, and the first data includes logical devices, logical nodes, communication parameters, and configuration information.
[0023] S2, perform semantic mapping on the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file.
[0024] In this embodiment, performing semantic mapping on the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file is as follows: The system loads the configuration template preset by the corresponding manufacturer according to the model and communication protocol of the target relay protection device. The template is an ICD, CID, or manufacturer-customized format file, which contains structure definitions such as logical devices, logical nodes, and communication parameters; Perform semantic matching according to the first data and the manufacturer template, and the matching rules are as follows: For logical devices (LD), map to the device section in the template based on device identifier, function domain, and voltage level; For logical nodes (LN), fill the corresponding paragraphs in the template based on type identifiers (such as PTOC, PDIF) and instance numbers; For communication parameters (such as AP, IP, MAC, etc.), compare the network structure and fill it into the communication structure; For configuration information (such as GOOSE, report blocks, data sets), perform corresponding filling based on field names and data model hierarchies; Perform semantic mapping on the semantically matched content. For example, match the logical device with the device segment in the template, map the logical node to the template LN structure according to its type and instance number, correspond the communication parameters to the template communication topology fields, and map and fill the corresponding fields of the configuration information (such as data set, report control block, GOOSE control block) structure; According to the mapping relationship, automatically fill, replace, or supplement relevant fields in the manufacturer template to generate an initial configuration template. For cases where the fields can be directly corresponded, the system preferentially uses the one-to-one mapping method to achieve automatic filling. If there are missing fields or inconsistent structure granularities, they are recorded as "semantic fields to be parsed" and temporarily stored for further processing; Based on the rule engine, reason and automatically complete the semantic fields to be parsed. Through this reasoning mechanism, the system can extend the traditional method that only supports standard field mapping to an intelligent configuration matching method with the ability to adapt to cross-vendor and unstructured data, specifically including: If the field names are inconsistent, the system calls the semantic similarity model to perform similarity matching between the fields to be parsed and the known fields in the semantic knowledge graph, so as to identify equivalent fields or approximate fields and achieve unified mapping of field names; If there are granularity differences in the structure hierarchy, call the predefined structure reconstruction rule library to achieve granularity conversion and hierarchical reorganization through rule driving to ensure the consistency of fields in the structure hierarchy; If there are multiple candidate fields in the matching result, combine the context semantic information and configuration template constraints to perform comprehensive scoring and select the optimal matching field; If it is a manufacturer's private field, the semantic recognition module automatically identifies the manufacturer to which the field belongs and calls the corresponding private field parsing rules to complete the parsing and supplementation of specific configuration segments; After the system completes the configuration file filling and semantic supplementation process, it further performs structure compatibility scoring and difference warning analysis on the generated initial configuration file to ensure the correctness and deployment feasibility of the configuration result. Specifically, it includes: Calculate the field mapping integrity score (the number of actually matched fields / the total number of fields to be configured); Check the integrity of the control block (whether there are isolated or disconnected items in the report block, data set, GOOSE link, etc.); Compare whether the communication topology structure is consistent with the original SCD file and detect whether there are communication disconnections or redundant configurations; If the scoring result is lower than the system-set threshold (such as 85%), the system will automatically generate a structure difference analysis report and mark the key difference fields and their possible impacts for the operation and maintenance personnel to review or the system to automatically repair; After completing semantic inference completion and structural consistency evaluation, the system outputs the final configuration content as a configuration file that conforms to the specifications of the target relay protection device manufacturer. The configuration file can be in CID, ICD, or other compatible formats, and is accompanied by a summary information file, including: the number of logical nodes, the number of control blocks, communication port configuration, configuration mapping log, etc., for manual review and archival storage.
[0025] Furthermore, through the above steps, the present invention realizes the extraction from the SCD structure, the mapping to the basic template, and then the intelligent completion driven by the semantic graph, and finally forms a standardized and highly compatible configuration file, breaking through the problems of manual adaptation, format limitation, and difficult cross-vendor migration in the existing methods, and having significant automation and engineering application value.
[0026] The specific formula for differential warning analysis is as follows:
[0027] In the formula: is the differential warning index, is the number of fields that are structurally incompatible, is the field that fails semantic mapping or completion.
[0028] S3. Download the initial configuration file to the target relay protection device and obtain the configuration rollback anchor point.
[0029] In this embodiment, downloading the initial configuration file to the target relay protection device and obtaining the configuration rollback anchor point are as follows: Establish a wired or wireless communication channel with the target relay protection device, and obtain device capability information through the IEC 61850 MMS service or the manufacturer's proprietary protocol, including model identification, firmware version, supported function modules, control block capacity, and current configuration status, etc.; Semantically match the device capability information with the content of the initial configuration file to be deployed, and automatically select an appropriate configuration download mode. The download mode includes but is not limited to full download, incremental update, or functional segment loading. This matching process ensures that the structure of the configuration file is highly compatible with the device support capabilities and avoids loading failures; Before the configuration is issued, the system verifies the initial configuration file, including field integrity, structural consistency, and logical conflict detection. At the same time, it calculates the configuration summary information and generates a digital signature. The system encapsulates the configuration file together with the version identifier, verification summary, and unique token to form a secure configuration instruction; Through the established communication channel, using the IEC 61850 MMS protocol or the manufacturer's private protocol, the encapsulated configuration instructions are transmitted to the target relay protection device in batches. During the process, the system monitors the sending status in real time, including data frame integrity, transmission rate, abnormal response, etc., and supports breakpoint resumption and abnormal retry mechanisms; After receiving the configuration, the target device performs local parsing and parameter loading operations. The system extracts the configuration loading results from the data returned by the device, including key information such as the activation status of logical nodes, the configuration results of control blocks, the report enabling status, and the configuration version number; The system reads the actual running configuration content that has been activated on the target device through standard read commands or protocol parsers, compares the obtained running status with the initial configuration file for field-level consistency analysis, evaluates the loading effect, identifies different fields or unimplemented parameters, and generates a difference analysis list and a configuration consistency score; According to the consistency comparison results, archive the detailed data of this configuration process, including the target device identifier, configuration content, deployment time, loading results, and comparison reports, synchronously generate a configuration deployment version identifier, and establish a configuration rollback anchor point to support subsequent exception recovery or version rollback operations.
[0030] The specific formula for the configuration consistency score is as follows:
[0031] In the formula: is the configuration consistency score. The closer this score is to 1, the more consistent the actual running configuration is with the expected configuration. is the number of fields with inconsistent values. is the number of fields that are not loaded or have parsing failures. is the number of unactivated logical nodes or function blocks. is the total number of fields in the initial configuration file.
[0032] In this embodiment, the system verifies the initial configuration file as follows: Based on the embedded IEC 61850 standard parsing module, the system reads the structure of the initial configuration file and performs the following two-level nested parsing: The first level: Identify and verify the integrity of the structural levels such as IED, logical device (LD), and logical node (LN); The second level: Perform syntax legality and value range verification on the data objects (DO) and data attributes (DA) under each logical node to ensure two-dimensional consistency of the structure and fields; After completing the basic structure analysis, through the pre-constructed semantic knowledge graph of relay protection configuration, identify the association logic, enabling dependencies, and mutual exclusion conditions between configuration fields, and determine whether there are logical misconfigurations or illegal combinations. For example, determine whether a necessary event trigger mechanism is missing when a certain function LN node is enabled; analyze whether there are coordination time logic conflicts between multiple protection components; automatically identify the risk of function mapping failure caused by manufacturer differences; Obtain the device capability description of the target relay protection device (such as the supported LN types, maximum configuration block length, supported protocol types, etc.), and perform one-to-one matching with the initial configuration file to determine whether the current configuration exceeds the device capability boundary. If incompatibilities are found, the system will provide compatibility prompts and suggest adjusting the configuration or switching the deployment strategy; If the current configuration is for an upgrade deployment or a reload operation, the system reads the current running configuration version of the device and compares the field differences with the initial configuration file. The specific operations are as follows: generate a difference mapping table for added, changed, and deleted fields; mark the path where the field is located and the change type; start a compatibility impact analysis for keyword field changes; Based on the field difference comparison, obtain the deployment risk data, where the deployment risk data includes field integrity, structure matching degree, logic conflict factor, and historical deployment success rate, and output a deployment risk score based on the weighted method according to the deployment risk data; Based on the deployment risk score, the system generates a unique configuration anchor point identifier and conducts a pre-deployment simulation rollback test to verify the feasibility and stability of configuration loading.
[0033] S4, obtain the configuration application data transmitted back by the relay protection device, and combine it with the configuration rollback anchor point to perform the rollback operation of the configuration file.
[0034] In this embodiment, obtain the configuration application data transmitted back by the relay protection device, and combine it with the configuration rollback anchor point to perform the rollback operation of the configuration file, as follows: The system receives the configuration application data transmitted back by the target relay protection device through the communication interface. This data includes the current configuration version number, configuration loading status, activated field information, and abnormal alarm information; Based on the transmitted abnormal information, the system calls the deployment history database to retrieve the rollback anchor point and historical configuration version corresponding to the current configuration; According to the selected rollback anchor point, extract the corresponding rollback configuration file from the historical version library; Download the rollback configuration file to the target relay protection device through the IEC 61850 MMS protocol or the manufacturer's proprietary communication protocol; After the lower installation is completed, the system reads the current running configuration from the device and performs a field-level comparison with the rollback configuration file to confirm whether the configuration has been successfully rolled back. If the rollback is successful, the system updates the configuration version information, generates a rollback log and an event record, and archives the rollback process. If the rollback fails, the system triggers an exception handling mechanism, notifies the operation and maintenance personnel, and recommends manual intervention.
[0035] Embodiment 2, Figure 2 A system for the standardized lower installation and rollback method of the configuration file of a relay protection device based on SCD parsing according to the present invention is provided, which is characterized by including a parsing module, a mapping module, a lower installation module, and a rollback module, and there are connections between the modules; The parsing module is used to obtain and parse the file of the target substation, and extract the first data of the target relay protection device from the parsed file. The first data includes logical devices, logical nodes, communication parameters, and configuration information; The mapping module is used to perform semantic mapping on the first data and a configuration template preset by the relay protection device manufacturer to generate an initial configuration file; The lower installation module is used to lower install the initial configuration file to the target relay protection device and obtain a configuration rollback anchor point; The rollback module is used to obtain the configuration application data transmitted back by the relay protection device and perform the rollback operation of the configuration file in combination with the configuration rollback anchor point.
[0036] The above formulas are all dimensionless and take their numerical values for calculation. The formula is obtained by collecting a large amount of data for software simulation to get a formula that is closest to the actual situation. The preset parameters in the formula are set by those skilled in the art according to the actual situation.
[0037] The above embodiments can be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product.
[0038] Those of ordinary skill in the art can realize that the modules and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0039] In addition, in each embodiment of the present application, the functional modules can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
[0040] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the said claims.
[0041] Finally: The above description is only the preferred embodiment of the present invention and is not used to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.< / ied>
Claims
1. A method for standard downloading and rollback of the configuration file of a relay protection device based on SCD parsing, characterized in that Including: Obtain and parse the files of the target substation, and extract the first data of the target relay protection device from the parsed files. The first data includes logical devices, logical nodes, communication parameters, and configuration information; Perform semantic mapping on the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file; Download the initial configuration file to the target relay protection device and obtain the configuration rollback anchor point; Obtain the configuration application data transmitted back by the relay protection device, and perform a rollback operation on the configuration file in combination with the configuration rollback anchor point.
2. The method for standard downloading and fallback of the relay protection device configuration file based on SCD parsing according to claim 1, wherein The obtaining and parsing of the files of the target substation are specifically as follows: Automatically obtain the SCD file of the target substation from the dispatching automation platform or the configuration management system, and perform an integrity check on the SCD file; Parse the SCD file, locate all IED nodes included therein, and screen out the corresponding IED entries according to the target relay protection device; Parse the logical device information under the IED entry, and extract the logical nodes in each logical device; Recursively parse the data objects and data attributes included under each logical node, construct the hierarchical relationship structure in the data model, and extract the attribute content; Extract the first data associated with the relay protection device from the parsed SCD file. The first data includes logical devices, logical nodes, communication parameters, and configuration information.
3. The method for standardized downloading and fallback of relay protection device configuration files based on SCD parsing according to claim 2, characterized in that, The semantic mapping of the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file is specifically as follows: Load the corresponding preset configuration template according to the model and communication protocol of the target relay protection device; Perform semantic matching on the collected first data and the configuration template, and establish a mapping relationship between the data fields and the template fields; Automatically fill, replace, and supplement the fields in the configuration template according to the mapping relationship to generate an initial configuration template; Identify fields with missing fields or inconsistent structural granularity during the mapping process, and mark them as fields to be semantically parsed; Perform reasoning and automatic completion on the fields to be semantically parsed based on the preset rule engine; Perform structural compatibility scoring and differential warning analysis on the completed initial configuration file; Output the final configuration file for downloading and use by the target relay protection device according to the compatibility scoring and differential warning analysis results.
4. The method for standard downloading and fallback of relay protection device configuration files based on SCD parsing according to claim 3, characterized in that, The reasoning and automatic completion of the fields to be semantically parsed based on the preset rule engine are specifically as follows: When the field names are inconsistent, match the data fields to the equivalent fields in the constructed knowledge graph based on the semantic similarity model; When there are granularity differences in the structural hierarchy, call the structure reconstruction rule for granularity conversion operations; When there are multiple candidate fields in the matching result, perform a comprehensive scoring in combination with the context semantic information and the configuration template constraint conditions, and select the optimal matching field; When identifying manufacturer private fields, call the private field parsing rule through the semantic recognition module to complete the configuration segment.
5. The method for standardized downloading and fallback of the relay protection device configuration file based on SCD parsing according to claim 4, characterized in that The downloading of the initial configuration file to the target relay protection device and obtaining the configuration rollback anchor point are specifically as follows: Establish wired and wireless communication channels with the target relay protection device, and obtain the capability information of the target relay protection device; Perform semantic matching on the capability information and the content of the initial configuration file, and select the configuration download mode; Verify the initial configuration file before configuration distribution and obtain the security configuration instructions; Batch transmit the security configuration instructions to the target relay protection device through the communication channel using the IEC 61850 MMS protocol; After the target relay protection device analyzes and executes the instructions, the system extracts the configuration loading result returned by it; Read the current operating configuration of the relay protection device and perform a field consistency analysis with the initial configuration file; Generate a configuration deployment version identifier based on the consistency analysis result and establish a configuration rollback anchor point.
6. The method for standardized downloading and fallback of the relay protection device configuration file based on SCD parsing according to claim 5, characterized in that The verification of the initial configuration file is specifically as follows: Perform nested parsing on the initial configuration file through the embedded IEC 61850 standard parsing module; After completing the nested parsing, verify the enabling dependencies and mutual exclusion conditions of the configuration items through the pre-constructed relay protection configuration semantic knowledge graph; Obtain the device capability description information of the target relay protection device, match the initial configuration file, and determine whether the current configuration file exceeds the device capability boundary; When the operation is upgrade / reload, read the current operating configuration of the device and perform a field difference comparison; Extract the deployment risk data according to the difference comparison result and calculate the deployment risk score based on the weighted method; Generate a unique configuration anchor point identifier based on the deployment risk score.
7. The method for standardized downloading and fallback of the relay protection device configuration file based on SCD parsing according to claim 6, characterized in that, The obtaining of the configuration application data returned by the relay protection device and the execution of the configuration file rollback operation in combination with the configuration rollback anchor point are specifically as follows: Receive the configuration exception information returned by the target relay protection device through the communication interface; Retrieve the deployment history database according to the exception information to locate the rollback anchor point corresponding to the current configuration; Extract the rollback configuration file from the historical version library according to the rollback anchor point; Download the rollback configuration file to the target relay protection device through the IEC 61850 MMS protocol; After the download is completed, read the current operating configuration of the device and perform a field comparison with the rollback configuration file to confirm the successful rollback.
8. The method for standardized downloading and fallback of relay protection device configuration files based on SCD parsing according to claim 7, characterized in that, The specific difference warning analysis formula is as follows: Wherein: is the difference warning index, is the number of structurally incompatible fields, is the field where semantic mapping or completion was not successful.
9. The method for standardized downloading and fallback of the relay protection device configuration file based on SCD parsing according to claim 8, characterized in that, The specific consistency analysis formula is as follows: Wherein: is the configuration consistency score, the closer the score is to 1, the higher the degree of consistency between the actual running configuration and the expected configuration. is the number of fields with inconsistent values. is the number of fields that are not loaded or failed to be parsed. is the number of unactivated logical nodes or function blocks. is the total number of fields in the initial configuration file.
10. A system using the method for standard downloading and fallback of a relay protection device configuration file based on SCD parsing as described in any one of claims 1-9, characterized in that, It includes a parsing module, a mapping module, a downloading module, and a rollback module, and there are connections between the modules; The parsing module is used to obtain and parse the files of the target substation, and extract the first data of the target relay protection device from the parsed files. The first data includes logical devices, logical nodes, communication parameters, and configuration information; The mapping module is used to perform semantic mapping on the first data and the configuration template preset by the relay protection device manufacturer to generate an initial configuration file; The downloading module is used to download the initial configuration file to the target relay protection device and obtain the configuration rollback anchor point; The rollback module is used to obtain the configuration application data returned by the relay protection device and perform the rollback operation of the configuration file in combination with the configuration rollback anchor point.
Citation Information
Patent Citations
State-monitoring-based repairing method for relay protection system of intelligent substation
CN107730070A
Visual platform system based on bay level device logic configuration and construction method of system
CN108108403A
Method and system for matching SCD file with soft strap
CN110956283A
Substation relay protection device software version management method based on Git and block chain
CN113268711A
Mobile SCD configuration management and control method
CN116405484A