Intelligent substation secondary equipment configuration consistency self-adaptive checking method and system

By adaptively extracting and combining the parameter information of SCD files and secondary device configuration files in the smart substation, the problem of inconsistency between SCD files and secondary device configuration files is solved, and configuration consistency verification is realized, ensuring the safety and stability of the power grid.

CN120104398APending Publication Date: 2025-06-06STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2

Patent Information

Application Number
CN202510004305.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

In smart substations, the SCD file is inconsistent with the secondary equipment configuration file, resulting in abnormal relay protection function, abnormal monitoring system communication, and even possible power grid accidents.

Method used

It provides an adaptive calibration method and system for the consistency of secondary equipment configuration of intelligent substations. By obtaining the preset path and instance path of target parameters, it adaptively extracts parameter information that complies with the comparison rules, merges and compares, and realizes consistency calibration between SCD files and secondary equipment configuration files.

Benefits of technology

It effectively realizes the consistency verification of the station control layer and process layer configuration configuration in the secondary equipment of the smart substation and the SCD file configuration, avoiding power grid accidents caused by inconsistent configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104398A_ABST
    Figure CN120104398A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent substation secondary equipment configuration consistency self-adaptive checking method and system, and the method comprises the steps: taking a process layer CRC path, a CID file path, a CCD file path, a version file path and a GOOSE control block process layer CRC offset address as target parameters, searching an instance path of the target parameters in an SCD file according to keywords; selecting an effective path from the instance path and a preset path; and obtaining target parameter information of the secondary equipment according to the effective path, exporting secondary equipment configuration from the SCD file at the same time, obtaining a secondary equipment configuration file and a station level CRC and a process level CRC of the SCD file, and comparing the secondary equipment configuration file and the station level CRC and the process level CRC of the SCD file to obtain a checking result. According to the method, the parameter information conforming to the comparison rule can be adaptively extracted, and the multi-source parameter information is combined and compared, so that the adaptive checking of the consistency of the SCD file and the secondary equipment configuration file is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a configuration file verification technology for a smart substation, and in particular to a method and system for adaptively verifying the consistency of secondary equipment configuration in a smart substation. Background Art

[0002] The smart substation has an SCD (Substation Configuration Description) file as the integrated configuration file for all secondary devices. At the same time, the configuration files of the secondary devices include CID (Configured IED Description) files, CCD (Configured Circuit Description) files, etc. The CID file implements the MMS / CMS communication configuration description of the station control layer, and the CCD file implements the GOOSE / SV communication configuration description of the process layer. The SCD file should be consistent with the configuration files of the secondary devices. Once the SCD file is inconsistent with the configuration files of the secondary devices, during the reconstruction, operation and maintenance, and overhaul of the secondary devices, inconsistent configurations may be mistakenly downloaded to the secondary devices, causing abnormal relay protection functions, abnormal monitoring system communication, and other problems. In severe cases, it may even directly lead to malfunction or refusal of relay protection, causing power grid accidents.

[0003] Configuration consistency verification is a common research topic, and there have been many achievements. Among some public technical research results, the Chinese invention patent application with publication number CN116055351A discloses a device and method for model-to-model consistency verification of smart substations. Through human-computer interaction modules, SCD parsing modules, MMS communication modules, GOOSE message parsing modules, SV message parsing modules, data storage and distribution, check code comparison, message verification, text comparison and consistency report generation, online and offline verification of the CRC of the virtual connection at the station control layer and the process layer can be achieved, and the homology verification of the CRC of the CID and the SCD file can be achieved, which can effectively realize the consistency verification of the SCD file of the smart substation and the actual IED device configuration. However, this scheme is a macro-technical implementation method based on SCD parsing and actual communication interaction to extract configuration information to realize model-to-model consistency verification. The description of the specific implementation of the verification process is not clear enough, resulting in great limitations in practical applications. Summary of the invention

[0004] The technical problem to be solved by the present invention is as follows: In view of the above-mentioned problems in the prior art, a method and system for adaptively checking the consistency of secondary equipment configuration of an intelligent substation is provided, which can adaptively extract parameter information that meets the comparison rules, and merge and compare multi-source parameter information, thereby realizing adaptive verification of the consistency between the SCD file and the secondary equipment configuration file.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] A method for adaptively checking the configuration consistency of secondary equipment in a smart substation comprises the following steps:

[0007] Get the preset path of the target parameters, the target parameters include the process layer cyclic redundancy check code CRC path, CID file path, CCD file path, version file path, GOOSE control block process layer cyclic redundancy check code CRC offset address;

[0008] Obtain the SCD file, search the instance path of the target parameter in the SCD file according to the keyword, and select a valid path from the instance path of the target parameter and the preset path;

[0009] According to the effective path of the target parameters, the target parameter information corresponding to the secondary equipment is obtained from the station control layer network and the process layer network, and the first CID file and the first process layer cyclic redundancy check code CRC are obtained. At the same time, the secondary equipment configuration is exported from the SCD file to obtain the second CID file and the second process layer cyclic redundancy check code CRC;

[0010] Calculate the first station control layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC corresponding to the first CID file and the second CID file respectively;

[0011] The first station control layer cyclic redundancy check code CRC is compared with the second station control layer cyclic redundancy check code CRC, and the first process layer cyclic redundancy check code CRC is compared with the second process layer cyclic redundancy check code CRC to obtain a verification result.

[0012] Further, when the instance path of the target parameter is obtained by searching the SCD file according to the keyword, it specifically includes:

[0013] When searching for the process layer cyclic redundancy check code CRC path, search for the DOI object with the desc value of the keyword "CCD file check code" under all logical device nodes of the secondary device in the SCD file. If multiple groups are found, select the logical device node with the highest priority as the valid object according to the preset priority, and use the data access interface DAI named setVal under the found DOI object as the final object, supplement the upper logical device, logical node, and data object to form the parameter path of the cyclic redundancy check code CRC of the virtual terminal connection of the whole station;

[0014] When searching for the CRC offset address of the process layer cyclic redundancy check code of the GOOSE control block, search for the channel containing the keyword "CRC of the configuration file" in all GOOSE data sets of the secondary device in the SCD file, and combine the APPID of the control block where the channel is located and the offset address of the channel in this control block.

[0015] Furthermore, when selecting a valid path from the instance path and the preset path of the target parameter, it includes:

[0016] If the preset path of the target parameter is empty, the corresponding instance path is the valid path;

[0017] If the instance path of the target parameter is empty, the corresponding preset path is the valid path;

[0018] If both the preset path and the corresponding instance path of the target parameter are not empty, but the preset path and the corresponding instance path are inconsistent, the instance path of the target parameter is selected as the valid path.

[0019] Further, according to the effective path of the target parameter, when obtaining the target parameter information corresponding to the secondary device from the station control layer network and the process layer network, it includes:

[0020] Access the substation control layer network, start the MMS / CMS client protocol, and communicate with the secondary devices connected to the substation control layer network throughout the station;

[0021] According to the process layer cyclic redundancy check code CRC path, read the process layer cyclic redundancy check code CRC in the MMS / CMS message of the secondary device from the station control layer network;

[0022] Read the CID file, CCD file and version file of the secondary device from the station control layer network according to the CID file path, CCD file path and version file path respectively;

[0023] Access the substation process layer network, and read the process layer cyclic redundancy check code CRC in the GOOSE message of the secondary device from the process layer network according to the process layer cyclic redundancy check code CRC offset address of the GOOSE control block.

[0024] Furthermore, the target parameters also include an FTP file directory path. When obtaining the target parameter information corresponding to the secondary device from the station control layer network and the process layer network according to the effective path of the target parameters, it includes: accessing the front debugging port of the protection device, starting the FTP client protocol to communicate with the protection device, and reading the CID file and CCD file of the secondary device according to the FTP file directory path.

[0025] Further, when the instance path of the target parameter is obtained by searching the SCD file according to the keyword, searching the FTP file directory path specifically includes:

[0026] Summon the FTP file list under multiple default paths respectively. If there is a file named configured.cid or configured.ccd in the list, select the corresponding default path.

[0027] Further, when obtaining the first CID file and the first process layer cyclic redundancy check code CRC, it includes:

[0028] Extract the value attribute of type=IED virtual terminal conection of the CID file and the CCD file, and use them as the process layer cyclic redundancy check code CRC in the CID file and the process layer cyclic redundancy check code CRC in the CCD file respectively;

[0029] The process layer cyclic redundancy check code CRC in the CID file, CCD file, MMS / CMS message, GOOSE message and version file is combined into a cyclic redundancy check code CRC group and used as the first process layer cyclic redundancy check code CRC.

[0030] Further, when respectively calculating the first station control layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC corresponding to the first CID file and the second CID file, the following steps are included:

[0031] Eliminate all the contents of the substation configuration language SCL;

[0032] Remove all contents whose element is the header;

[0033] Eliminate all elements and their sub-elements whose element is substation in the CID file;

[0034] Remove the description desc attribute of all elements;

[0035] Remove the child elements of the data access interface DAI whose name attribute value is "dU" and whose element value is Val;

[0036] When sorting elements of the same level, if the tag names of the elements are different, they are sorted in alphabetical order of the tag names;

[0037] Arrange the attributes of all extracted elements in alphabetical order;

[0038] Remove empty text content element;

[0039] The remaining content excludes list characters, carriage returns, line breaks, and spaces between elements and attributes;

[0040] After converting the sequence into a UTF-8 sequence, a four-byte CRC checksum is calculated.

[0041] Further, when comparing the first station control layer cyclic redundancy check code CRC with the second station control layer cyclic redundancy check code CRC, and comparing the first process layer cyclic redundancy check code CRC with the second process layer cyclic redundancy check code CRC, it includes:

[0042] Identify and remove invalid cyclic redundancy check codes CRC from the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC, where the invalid cyclic redundancy check code CRC is specifically a cyclic redundancy check code CRC whose value is empty or 0000 or FFFF;

[0043] Compare the remaining cyclic redundancy check code CRC in the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC with the corresponding second station control layer cyclic redundancy check code CRC or the second process layer cyclic redundancy check code CRC, take the comparison result as the final verification result, and mark the inconsistent comparison results in the final verification result.

[0044] The present invention also proposes a system for adaptively checking the configuration consistency of secondary equipment in a smart substation, comprising a dedicated media terminal connected to the secondary equipment through a station control layer network and a process layer network, wherein the dedicated media terminal is programmed or configured to execute any one of the methods for adaptively checking the configuration consistency of secondary equipment in a smart substation.

[0045] Compared with the prior art, the advantages of the present invention are:

[0046] The present invention uses the process layer CRC path, CID file path, CCD file path, version file path, FTP file directory path, and GOOSE control block process layer CRC offset address of the secondary device as comparison parameters, searches for instance paths of these parameters based on keywords in the SCD file, and selects a valid path from the instance path and the preset path to realize the adaptive setting of the process layer CRC path, CCD file path, CID file path, version file path, FTP file directory path, and GOOSE control block process layer CRC offset address parameters of the IED, and then based on the set path and address, respectively obtains corresponding information from the secondary device through the station control layer network and the process layer network, thereby adaptively extracting the station control layer check code and process layer check code of the secondary device for comparing the configuration consistency, and finally verifies the station control layer check code and process layer check code in the SCD file with the station control layer check code and process layer check code of the secondary device, effectively realizing the consistency verification of the station control layer and process layer configurations of the secondary device in the intelligent substation and the SCD file configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 The figure is a schematic diagram of the overall flow of the method according to an embodiment of the present invention.

[0048] Figure 2 Detailed flowchart of the method of an embodiment of the present invention.

[0049] Figure 3 The figure is a schematic diagram of parameter paths in a secondary device configuration file according to an embodiment of the present invention.

[0050] Figure 4 A schematic diagram of a cyclic redundancy check code CRC offset address of a GOOSE control block process layer in a secondary device configuration file in an embodiment of the present invention.

[0051] Figure 5 The figure is a schematic diagram of a process layer cyclic redundancy check code CRC in a secondary device configuration file according to an embodiment of the present invention.

[0052] Figure 6 Schematic diagram of the verification result of the embodiment of the present invention. DETAILED DESCRIPTION

[0053] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0054] Embodiment 1

[0055] This embodiment proposes a method for adaptively checking the configuration consistency of secondary equipment in a smart substation, which provides a specific and feasible detailed method for checking the configuration consistency of secondary equipment in a smart substation, solving the problem of the current lack of specific methods for configuration consistency checking. Figure 1 As shown, the method comprises the following steps:

[0056] Step 1: Define the comparison rules for realizing the consistency check of the secondary equipment configuration of the smart substation.

[0057] The comparison rules of this embodiment include:

[0058] The comparison objects are the IED configuration in the SCD file and the configuration in the actual device. The IED configuration in the SCD file is specifically the secondary device configuration in the SCD file, and the configuration in the actual device is specifically the configuration in the configuration file of the actual secondary device.

[0059] The comparison content is the process layer configuration CRC and the station control layer configuration CRC of the IED, that is, the process layer cyclic redundancy check code CRC of the secondary device and the station control layer cyclic redundancy check code CRC;

[0060] The comparison process is to read the configuration comparison content of the secondary device in the SCD and the actual configuration comparison content of the secondary device of the reading device respectively, and perform consistency comparison;

[0061] The comparison results are the process layer configuration consistency conclusion and the station control layer configuration consistency conclusion;

[0062] Step 2: adaptively extract parameter information that meets the comparison rules from the SCD file to obtain the configuration comparison content of the secondary device in the SCD.

[0063] In this embodiment, the parameters that meet the comparison rules include the process layer cyclic redundancy check code CRC path of the secondary device, the CID file path, the CCD file path, the version file path, and the GOOSE control block process layer cyclic redundancy check code CRC offset address.

[0064] like Figure 2 As shown, for the above parameters, on the one hand, the preset paths of these parameters are obtained according to the general setting method, and on the other hand, the instance paths of these parameters are obtained by searching the SCD file according to keywords according to the target search method, and the valid paths are selected from the instance paths and preset paths of the same parameters to achieve adaptive generation of paths for each type of parameters.

[0065] Step 3, based on the communication protocol corresponding to the parameter information that meets the comparison rules, the actual parameter information of the secondary equipment of the smart substation is obtained from the network to obtain the actual configuration comparison content of the secondary equipment.

[0066] like Figure 2 As shown, in this embodiment, according to the effective path of the process layer cyclic redundancy check code CRC path, CID file path, CCD file path, version file path, and GOOSE control block process layer cyclic redundancy check code CRC offset address of the secondary device obtained in step 2, the parameter information corresponding to the secondary device is obtained from the station control layer network and the process layer network. Data processing is performed on the obtained parameter information to obtain the actual process layer cyclic redundancy check code CRC and station control layer cyclic redundancy check code CRC of the secondary device, which are called the first process layer cyclic redundancy check code CRC and the first station control layer cyclic redundancy check code CRC in this embodiment for distinction.

[0067] Step 4, carry out adaptive verification of the consistency of the secondary equipment field configuration. Specifically, the SCD file is parsed and the secondary equipment configuration is exported to obtain the corresponding station control layer cyclic redundancy check code CRC and process layer cyclic redundancy check code CRC, which are called the second process layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC in this embodiment, so as to distinguish them, and the first process layer cyclic redundancy check code CRC and the first station control layer cyclic redundancy check code CRC obtained in step 3 are compared with the second process layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC to obtain the verification result.

[0068] The relevant steps are described in detail below.

[0069] In step 2 of this embodiment, the preset path is specifically a general path set by the general setting method, which specifically includes:

[0070] Cyclic redundancy check code CRC for virtual terminal connections of the entire station: fixed to LD0 / LPHD1.SASPinCrc.setVal.

[0071] CID file path of the secondary device: fixed as / configuration / configured.cid.

[0072] CCD file path of the secondary device: fixed as / configuration / configured.ccd.

[0073] Process layer cyclic redundancy check code CRC path of the secondary device: fixed to LD0 / LPHD1.IEDPinCrc.setVal.

[0074] Version file path of the secondary device: fixed as / configuration / program.ver.xml.

[0075] GOOSE control block process layer CRC offset address: fixed to empty.

[0076] In a Figure 3 In the example shown, according to the above general setting method, we can get Figure 3 The process layer CRC path of the target secondary device is LD0 / LPHD1.IEDPinCrc.setVal.

[0077] In step 2 of this embodiment, when searching for the instance path of the parameter in the SCD file according to the keyword according to the target search method, for different parameters, specifically including:

[0078] Cyclic redundancy check code CRC for virtual terminal connections of the entire station: Under all logical device nodes of secondary devices in the SCD file (including public LD0, protection PROT, measurement MEAS, control CRTL, etc.), search for DOI objects with the desc value of "full station *CRC check code" keyword (* indicates that there can be other characters in the middle). If multiple groups are found, according to the priority of the logical device description as public, protection, measurement, and control, the first group of logical device nodes with the highest priority is always taken as the valid object, and the DAI (data access interface) with the name setVal under the found DOI object is taken as the final object, and the upper-level logical devices, logical nodes, and data objects are supplemented to form the parameter path of the cyclic redundancy check code CRC for the virtual terminal connections of the entire station of this secondary device. Optionally, the keywords for the above search can also be customized to be compatible with differentiated requirements.

[0079] CID file path of secondary device: fixed and not searched.

[0080] CCD file path of secondary device: Fixed not to search.

[0081] Process layer cyclic redundancy check code CRC path of secondary equipment: Under all logical device nodes of secondary equipment in the SCD file, search for DOI objects with the desc value of the keyword "CCD file check code". If multiple groups are found, always select the first group of logical device nodes with the highest priority as the valid object according to the priority of the logical device description as public, protection, measurement, and control, and use the DAI (data access interface) with the name setVal under the found DOI object as the final object, supplement the upper logical device, logical node, and data object to form the parameter path of the cyclic redundancy check code CRC of the virtual terminal connection of the entire station of this secondary device. Optionally, the keywords for the above search can also be customized to be compatible with differentiated needs.

[0082] In a Figure 3 In the example shown, according to the above target search method, we can get Figure 3 The process layer CRC path of the target IED in the SCD file is LD0 / LPHD1.IEDPinCrc.setVal.

[0083] Version file path of secondary device: fixed and not searched.

[0084] GOOSE control block process layer cyclic redundancy check code CRC offset address: In all GOOSE data sets of secondary devices in the SCD file, find the channel containing the "CRC of configuration file" keyword, and combine the APPID of the control block where the channel is located and the offset address of the channel in this control block (the channel number in the control block) as the value of this parameter.

[0085] In a Figure 4 In the example shown, according to the above target search method, we can get Figure 4 The process layer CRC offset address combination of the GOOSE control block of the target secondary device is 0x0308-19. Based on this offset address combination, the process layer network of the substation is connected, the GOOSE control block with APPID 0x0308 is read, and the value of the 19th group channel object is parsed, and the Figure 4 The target secondary device name is a process layer cyclic redundancy check code CRC of IL2201A.

[0086] Through the above-mentioned general setting method, target search method, and supporting optional strategies, the adaptive generation of each type of parameter path is completed. When the general setting method and the target search method simultaneously obtain a type of parameter path and the paths are inconsistent, the target search method obtains an instance path, which has a higher reliability than the general setting method. The path obtained by the target search method is stipulated as a valid path.

[0087] Therefore, in step 2, when selecting a valid path from the instance path and the preset path with the same parameters, it includes:

[0088] If the preset path of the parameter is empty, the corresponding instance path is the valid path;

[0089] If the instance path of the parameter is empty, the corresponding preset path is the valid path;

[0090] If the preset path and the corresponding instance path of the parameter are both not empty, but the preset path and the corresponding instance path are inconsistent, the instance path is selected as the valid path.

[0091] In step 3 of this embodiment, when obtaining the parameter information corresponding to the secondary device from the station control layer network and the process layer network, the parameter information is adaptively extracted based on the effective path obtained in step 2, including: based on the MMS / CMS station control layer communication protocol, reading the process layer CRC information, CID file, CCD file, and version file of the IED of the actual device, i.e. the secondary device; based on the GOOSE communication protocol, reading the process layer CRC information of the IED of the actual device, i.e. the secondary device; based on the FTP communication protocol, reading the CID file and CCD file of the actual device, i.e. the secondary device. Based on the information or configuration file read by any achievable communication process, extract the process layer CRC of the IED, calculate the station control layer CRC of the IED, and obtain the CRC code and CRC code group that are ultimately used to compare the configuration consistency. Specifically including:

[0092] Step 3.1, access the substation control layer network, start the MMS / CMS client protocol, and communicate with the secondary devices connected to the substation control layer network;

[0093] Step 3.2, according to the process layer cyclic redundancy check code CRC path, read the process layer cyclic redundancy check code CRC in the MMS / CMS message of the secondary device from the station control layer network;

[0094] Step 3.3, read the CID file, CCD file, and version file of the secondary device from the station control layer network according to the CID file path, CCD file path, and version file path respectively;

[0095] Step 3.4, access the substation process layer network, and read the process layer cyclic redundancy check code CRC in the GOOSE message of the secondary device from the process layer network according to the process layer cyclic redundancy check code CRC offset address of the GOOSE control block.

[0096] As an optional real-time method, the parameter that meets the comparison rule also includes the FTP file directory path, and step 3.4 further includes:

[0097] Step 3.5, access the front debugging port of the protection device, open the FTP client protocol to communicate with the protection device, and read the CID file and CCD file of the secondary device according to the FTP file directory path.

[0098] Correspondingly, in step 2, the general path set by the general setting method also includes:

[0099] FTP file directory path: fixed to / configuration.

[0100] Target finding methods also include:

[0101] FTP file directory path: Provide default paths such as " / configuration" and " / ", and call up FTP file lists under multiple default paths. If there is a file named configured.cid or configured.ccd in the list, select the corresponding default path. Optionally, the default paths provided above can also be customized to accommodate differentiated needs.

[0102] Through step 3, all or part of the following files and information can be effectively extracted:

[0103] The actual CID file of the secondary device;

[0104] The actual CCD file of the secondary device;

[0105] The process layer cyclic redundancy check code CRC in the actual MMS / CMS message of the secondary device;

[0106] The process layer cyclic redundancy check code CRC in the actual GOOSE message of the secondary device;

[0107] The process layer cyclic redundancy check code CRC in the actual version file of the secondary device.

[0108] In this embodiment, all the files and information obtained based on the communication process are taken as the first group of files and information, and a first process layer cyclic redundancy check code CRC and a first station control layer cyclic redundancy check code CRC are obtained therefrom.

[0109] Specifically, obtaining the first process layer cyclic redundancy check code CRC includes:

[0110] Extract the value attribute of type=IED virtual terminal conection of the CID file and the CCD file, and use them as the process layer cyclic redundancy check code CRC in the CID file and the process layer cyclic redundancy check code CRC in the CCD file respectively;

[0111] The process layer cyclic redundancy check code CRC in the CID file, CCD file, MMS / CMS message, GOOSE message and version file is combined into a cyclic redundancy check code CRC group and used as the first process layer cyclic redundancy check code CRC.

[0112] In a Figure 5 In the example shown, through the above strategy, the process layer CRC value 63615DBB in the CID file can be obtained from the CID file of the secondary device named P_L2201A. Then, all the process layer CRCs in the first group of files and information obtained are taken as a CRC group, as the process layer CRC (only one) or CRC group (there are multiple) of the secondary device.

[0113] When obtaining the cyclic redundancy check code CRC of the first station control layer, specifically performing CRC calculation on the CID file, the following steps are included:

[0114] Eliminate the SCL element content and all its private content, that is, eliminate all elements and private content of the substation configuration language SCL;

[0115] Culling <header>All the contents of the element, that is, all the contents of the element Header are removed;

[0116] Remove the CID file <substation>Elements and their sub-elements, that is, remove all elements and their sub-elements whose element is substation in the CID file;

[0117] Remove the description desc attribute of all elements;

[0118] Remove the name attribute value of "dU" <dai>(Data Access Interface) <val>(value) child element;

[0119] When sorting elements of the same level, if the tag names of the elements are different, they are sorted in alphabetical order of the tag names;

[0120] Arrange the attributes of all extracted elements in alphabetical order from a to z;

[0121] Remove empty text content element;

[0122] The remaining content excludes list characters, carriage returns, line breaks, and spaces between elements and attributes;

[0123] The sequence used to calculate the CRC checksum is converted into a UTF-8 sequence and then a four-byte CRC checksum is calculated.

[0124] The above strategy fully considers the file header, file private information, text sorting, invalid configuration description, etc., and calculates the CRC for the valid configuration information of the CID file, which can be used for consistency verification of two CID files. The consistency of the CID file represents the consistency of the station control layer configuration.

[0125] In step 4 of this embodiment, after parsing the SCD file and exporting the IED configuration, i.e., the secondary device configuration, the following files and information can be obtained:

[0126] CID file of the IED of the secondary device in the SCD file;

[0127] Process level CRC of the IED of the secondary device in the SCD file.

[0128] It should be noted that how to parse the SCD file and export the IED configuration is a method known in the art. In this embodiment, the files and information obtained by the SCD parsing and configuration export are used as the second set of files and information. The second process layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC are obtained therefrom. The specific implementation process is the same as the process of obtaining the first process layer cyclic redundancy check code CRC and the first station control layer cyclic redundancy check code CRC, which will not be repeated in this embodiment.

[0129] In step 4 of this embodiment, when comparing the first process layer cyclic redundancy check code CRC and the first station control layer cyclic redundancy check code CRC with the second process layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC, specifically comparing the first station control layer cyclic redundancy check code CRC with the second station control layer cyclic redundancy check code CRC, and comparing the first process layer cyclic redundancy check code CRC with the second process layer cyclic redundancy check code CRC, specifically including:

[0130] When there are multiple first station control layer cyclic redundancy check codes CRC and first process layer cyclic redundancy check codes CRC, the second process layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC are respectively compared with multiple first station control layer cyclic redundancy check code CRC and first process layer cyclic redundancy check code CRC, and multiple results are output.

[0131] Before comparison, invalid cyclic redundancy check codes CRC are identified and eliminated from the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC. Invalid cyclic redundancy check codes CRC are specifically cyclic redundancy check codes CRC with values ​​of empty or 0000 or FFFF, so as to eliminate interference from invalid verification results.

[0132] Compare the remaining cyclic redundancy check code CRC in the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC with the corresponding second station control layer cyclic redundancy check code CRC or the second process layer cyclic redundancy check code CRC, take the comparison result as the final verification result, and mark the inconsistent comparison results in the final verification result.

[0133] If the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC are both invalid cyclic redundancy check codes CRC, the verification result of the corresponding secondary device is unverified, and the verification result may not be output.

[0134] like Figure 6 As shown, the diagram provides multiple groups of valid process-layer cyclic redundancy check codes CRC of secondary equipment and the process-layer cyclic redundancy check code CRC parsed in the SCD file for consistency comparison, outputs multiple results, and when there are any inconsistent results of the cyclic redundancy check code CRC, it is marked in prominent red to indicate the inconsistency problem found in the verification. By comparing the conditions of the full-station CRC in the SCD file with the full-station CRC read in the secondary equipment based on the communication process, as a criterion for whether the configuration of the target secondary equipment is directly derived from the SCD file, it can prompt the maintenance and operation personnel whether the SCD file has a direct relationship with the secondary equipment, so as to further supplement the improvement effect of the consistency verification.

[0135] Embodiment 2

[0136] This embodiment proposes a smart substation secondary equipment configuration consistency adaptive verification system, including a dedicated media terminal connected to the secondary equipment through a station control layer network and a process layer network, and the dedicated media terminal is programmed or configured to execute any one of the smart substation secondary equipment configuration consistency adaptive verification methods.

[0137] In summary, the present invention discloses a method and system for adaptively checking the configuration consistency of secondary equipment in a smart substation, provides a specific implementation scheme for realizing the adaptive verification process based on a reliable strategy, and provides a specific and feasible detailed method for configuration consistency verification of secondary equipment in a smart substation. For parameters that meet the comparison rules, a valid path is selected from an instance path and a preset path, and adaptive path generation is realized. According to the adaptively generated path, the actual configuration information of the secondary equipment is obtained through different communication protocols to realize adaptive online parameter extraction. Finally, the multi-source parameters are merged and compared, and finally the adaptive verification of the consistency between the SCD file and the actual configuration of the secondary equipment is realized.

[0138] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention. < / val> < / dai> < / substation> < / header>

Claims

1. A method for adaptively checking the configuration consistency of secondary equipment in a smart substation, characterized in that: The following steps are involved: Get the preset path of the target parameters, the target parameters include the process layer cyclic redundancy check code CRC path, CID file path, CCD file path, version file path, GOOSE control block process layer cyclic redundancy check code CRC offset address; Obtain the SCD file, search the instance path of the target parameter in the SCD file according to the keyword, and select a valid path from the instance path of the target parameter and the preset path; According to the effective path of the target parameters, the target parameter information corresponding to the secondary equipment is obtained from the station control layer network and the process layer network, and the first CID file and the first process layer cyclic redundancy check code CRC are obtained. At the same time, the secondary equipment configuration is exported from the SCD file to obtain the second CID file and the second process layer cyclic redundancy check code CRC; Calculate the first station control layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC corresponding to the first CID file and the second CID file respectively; The first station control layer cyclic redundancy check code CRC is compared with the second station control layer cyclic redundancy check code CRC, and the first process layer cyclic redundancy check code CRC is compared with the second process layer cyclic redundancy check code CRC to obtain a verification result.

2. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 1 is characterized in that: When searching for the instance path of the target parameter in the SCD file according to the keyword, it specifically includes: When searching for the process layer cyclic redundancy check code CRC path, search for the DOI object with the desc value of the "CCD file check code" keyword under all logical device nodes of the secondary device in the SCD file. If multiple groups are found, select the logical device node with the highest priority as the valid object according to the preset priority, and use the data access interface DAI named setVal under the found DOI object as the final object, supplement the upper logical device, logical node, and data object to form the parameter path of the cyclic redundancy check code CRC for the virtual terminal connection of the entire station; When searching for the CRC offset address of the process layer cyclic redundancy check code of the GOOSE control block, search for the channel containing the keyword "CRC of the configuration file" in all GOOSE data sets of the secondary device in the SCD file, and combine the APPID of the control block where the channel is located and the offset address of the channel in this control block.

3. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 1 is characterized in that: When selecting a valid path from the instance path and preset path of the target parameter, it includes: If the preset path of the target parameter is empty, the corresponding instance path is the valid path; If the instance path of the target parameter is empty, the corresponding preset path is the valid path; If both the preset path and the corresponding instance path of the target parameter are not empty, but the preset path and the corresponding instance path are inconsistent, the instance path of the target parameter is selected as the valid path.

4. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 1 is characterized in that: When obtaining the target parameter information corresponding to the secondary equipment from the station control layer network and the process layer network according to the effective path of the target parameter, it includes: Access the substation control layer network, start the MMS / CMS client protocol, and communicate with the secondary devices connected to the substation control layer network throughout the station; According to the process layer cyclic redundancy check code CRC path, read the process layer cyclic redundancy check code CRC in the MMS / CMS message of the secondary device from the station control layer network; Read the CID file, CCD file and version file of the secondary device from the station control layer network according to the CID file path, CCD file path and version file path respectively; Access the substation process layer network, and read the process layer cyclic redundancy check code CRC in the GOOSE message of the secondary device from the process layer network according to the process layer cyclic redundancy check code CRC offset address of the GOOSE control block.

5. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 4 is characterized in that: The target parameters also include an FTP file directory path. When obtaining the target parameter information corresponding to the secondary device from the station control layer network and the process layer network according to the effective path of the target parameters, it includes: accessing the front debugging port of the protection device, opening the FTP client protocol to communicate with the protection device, and reading the CID file and CCD file of the secondary device according to the FTP file directory path.

6. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 5 is characterized in that: When searching for the instance path of the target parameter in the SCD file according to the keyword, searching the FTP file directory path specifically includes: Summon the FTP file list under multiple default paths respectively. If there is a file named configured.cid or configured.ccd in the list, select the corresponding default path.

7. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 4 is characterized in that: When obtaining the first CID file and the first process layer cyclic redundancy check code CRC, it includes: Extract the value attribute of type=IED virtual terminal conection of the CID file and the CCD file, and use them as the process layer cyclic redundancy check code CRC in the CID file and the process layer cyclic redundancy check code CRC in the CCD file respectively; The process layer cyclic redundancy check code CRC in the CID file, CCD file, MMS / CMS message, GOOSE message and version file is combined into a cyclic redundancy check code CRC group and used as the first process layer cyclic redundancy check code CRC.

8. The method for adaptively checking the consistency of configuration of secondary equipment in a smart substation according to claim 1 is characterized in that: When respectively calculating the first station control layer cyclic redundancy check code CRC and the second station control layer cyclic redundancy check code CRC corresponding to the first CID file and the second CID file, the following steps are included: Eliminate all the contents of the substation configuration language SCL; Remove all contents whose element is the header; Eliminate all elements and their sub-elements whose element is substation in the CID file; Remove the description desc attribute of all elements; Remove the child elements of the data access interface DAI whose name attribute value is "dU" and whose element value is Val; When sorting elements of the same level, if the tag names of the elements are different, they are sorted in alphabetical order of the tag names; Arrange the attributes of all extracted elements in alphabetical order; Remove empty text content element; The remaining content excludes list characters, carriage returns, line breaks, and spaces between elements and attributes; After converting the sequence into a UTF-8 sequence, a four-byte CRC checksum is calculated.

9. The method for adaptively checking the configuration consistency of secondary equipment in a smart substation according to claim 1, characterized in that: When comparing the first station control layer cyclic redundancy check code CRC with the second station control layer cyclic redundancy check code CRC, and comparing the first process layer cyclic redundancy check code CRC with the second process layer cyclic redundancy check code CRC, it includes: Identify and remove invalid cyclic redundancy check codes CRC from the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC, where the invalid cyclic redundancy check code CRC is specifically a cyclic redundancy check code CRC whose value is empty or 0000 or FFFF; Compare the remaining cyclic redundancy check code CRC in the first station control layer cyclic redundancy check code CRC and the first process layer cyclic redundancy check code CRC with the corresponding second station control layer cyclic redundancy check code CRC or the second process layer cyclic redundancy check code CRC, take the comparison result as the final verification result, and mark the inconsistent comparison results in the final verification result.

10. An adaptive verification system for the configuration consistency of secondary equipment in a smart substation, characterized in that: It comprises a dedicated medium terminal connected to the secondary equipment through a station control layer network and a process layer network, and the dedicated medium terminal is programmed or configured to execute the method for adaptively checking the consistency of configuration of secondary equipment of a smart substation as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Device and method for checking real-time consistency of intelligent substation

    CN116055351A

Cited By

  • Automatic test method, system and equipment for spare power automatic switching device and storage medium

    CN122410185A