A method, system and device for adapting and checking the configuration file of an intelligent substation, and a medium

By establishing a manufacturer-equipment parameter mapping library and adding a security verification mechanism, the problem of low efficiency in cross-vendor operation and maintenance has been solved, and the self-adaptive download and verification of intelligent substation configuration files has been realized, thereby improving operation and maintenance efficiency and security.

CN122173138APending Publication Date: 2026-06-09YUNNAN POWER GRID CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
YUNNAN POWER GRID CO LTD
Filing Date
2026-03-27
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing technologies, the configuration file formats of secondary equipment from different relay protection manufacturers are proprietary and incompatible with each other, resulting in low efficiency of cross-vendor operation and maintenance and potential configuration errors and process-level security risks.

Method used

Establish a manufacturer-device parameter mapping library to enable self-adaptive reading and downloading of configuration files, and add a security verification mechanism to manage configuration risks based on verification rules, including device compatibility verification, firmware compatibility verification, simulated download verification, and process layer configuration verification.

Benefits of technology

It improved operation and maintenance efficiency, reduced configuration error rate, ensured stable operation of substations, reduced human error, and achieved full-process automation and accurate risk control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122173138A_ABST
    Figure CN122173138A_ABST
Patent Text Reader

Abstract

The application discloses an intelligent substation configuration file adaptive downloading and checking method, system, device and medium, and belongs to the technical field of power system automation, which comprises the following steps: a manufacturer-equipment parameter mapping library is established, and a configuration file is generated based on the library; the configuration file is read and downloaded adaptively, and a safety checking mechanism is additionally added; and configuration risk control is performed based on checking rules. The application breaks the manufacturer format barrier, improves operation and maintenance efficiency, reduces configuration risk, realizes full-process automation, reduces manual errors, and improves accuracy and convenience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system automation technology, specifically to a method, system, equipment, and medium for adapting, downloading, and verifying configuration files for intelligent substations. Background Technology

[0002] In the operation and maintenance of smart substations, the reading and downloading of configuration files for secondary relay protection equipment is a crucial step. However, existing technologies still have several problems: secondary equipment from various relay protection manufacturers typically uses proprietary configuration file formats (such as CFW, NSF, WCF, etc.), and standard configuration files (CID / CCD) cannot be directly parsed by the devices; maintenance personnel can only rely on vendor-specific tools, which are incompatible with each other, resulting in low efficiency in cross-vendor equipment operation and maintenance; existing configuration tools lack a unified device parameter mapping mechanism, requiring manual matching of parameters such as device model, communication protocol, and format conversion rules when reading or downloading configuration files; this manual operation is not only inefficient but also prone to configuration failures due to matching errors, and may even cause device malfunctions.

[0003] After the configuration file is downloaded, the accuracy of the process layer configuration lacks effective verification; traditional methods only perform file integrity checks, which cannot identify logical errors caused by the mismatch between the SCD file and the device CCD file, which can easily lead to safety accidents such as malfunction or failure of relay protection devices; there is no mandatory backup of the original device configuration file before downloading, making it difficult to quickly roll back in case of failure; there is no verification of the compatibility between the file to be downloaded and the target device, which can easily lead to the incorrect installation of other configurations; there is no limitation on the download file format, and downloading files with incorrect formats may cause device paralysis; when new manufacturers or equipment models enter the network, the existing tools need to redevelop the adaptation module, which is time-consuming and costly, and cannot keep up with the rapid iteration of smart substation equipment.

[0004] For example, existing patents disclose configuration methods according to IEC 61850, but do not address cross-vendor proprietary format conversion and process-level risk control mechanisms. Others disclose methods for configuring intelligent electronic devices, focusing on IED configuration according to the IEC 61850 standard, but failing to solve the problem of vendor-specific extensions. While the IEC 61850 standard specifies SCD / CID / CCD files, it does not resolve the issue of vendor-specific extensions. In summary, there is an urgent need to provide a secondary device configuration file processing solution with strong cross-vendor adaptability, highly automated operation processes, comprehensive security verification mechanisms, and precise process-level risk control to overcome the aforementioned deficiencies. Summary of the Invention

[0005] In view of the above-mentioned problems, the present invention is proposed.

[0006] Therefore, the present invention aims to solve the problem in the prior art that the private and incompatible configuration file formats of secondary equipment from different manufacturers lead to low cross-vendor operation and maintenance efficiency and configuration errors and process-level security risks.

[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a method for adapting, downloading, and verifying configuration files for intelligent substations, comprising, Establish a manufacturer-device parameter mapping library, and generate configuration files based on the parameter mapping library; perform self-adaptive reading and downloading of configuration files, and add a security verification mechanism; manage configuration risks based on verification rules.

[0008] As a preferred embodiment of the intelligent substation configuration file adaptation, downloading, and verification method described in this invention, the step of establishing a manufacturer-equipment parameter mapping library includes: Collect the adaptation parameters of different models of secondary equipment from different manufacturers, and establish a four-dimensional mapping table of manufacturer-equipment model-firmware version-adaptation parameters; The adaptation parameters include a first parameter, a second parameter, and a third parameter; The mapping library expands the mapping table by importing parameter configuration files.

[0009] As a preferred embodiment of the method for adapting, downloading, and verifying a configuration file for a smart substation as described in this invention, the method for generating the configuration file includes: The system parses the entire substation configuration file, filters and matches a subset of configurations, and performs preliminary verification and prompts for correction when there are defects in the entire substation configuration file. Based on the selected configuration subset, extract the target device parameters to generate a standard configuration file; The manufacturer-device parameter mapping library is retrieved, and the private format conversion rules corresponding to the target device are matched to convert the standard configuration file.

[0010] As a preferred embodiment of the intelligent substation configuration file adaptation, downloading, and verification method described in this invention, the step of filtering and matching the configuration subset includes: Parse the entire site configuration file and extract all IED elements; Based on the target device identifier selected by the user, the extracted IED is matched and extracted from the site-wide configuration file; When a match is successful, the current IED is retained, and redundant elements are removed using a multi-combination removal method.

[0011] As a preferred embodiment of the intelligent substation configuration file adaptation, downloading, and verification method described in this invention, the security verification mechanism includes: a first verification mechanism, a second verification mechanism, and a third verification mechanism. The first verification mechanism is a device compatibility verification; The second verification mechanism includes basic verification, firmware compatibility verification, and simulated download verification. The third verification mechanism is post-installation configuration verification.

[0012] As a preferred embodiment of the intelligent substation configuration file adaptation, downloading, and verification method described in this invention, the self-adaptive reading and downloading includes: Identify target device information and establish an initial connection; match the first parameter according to the mapping library of the current information. A communication connection is established based on the first matched parameter, and a reconnection mechanism is triggered when the connection fails. Once communication is established, security pre-verification is performed through the first and second verification mechanisms. After verification, a download command is sent, a private format file is read, and a configuration activation command is sent to complete the subsequent verification through a third verification mechanism.

[0013] As a preferred embodiment of the intelligent substation configuration file adaptation, downloading, and verification method described in this invention, the risk management includes: Extract process layer configuration information from the verified configuration file and generate a standard CCD file; Calculate the CRC-32 checksum for the standard CCD file and compare the checksum to determine the risk status. When a risk is identified, the exception handling mechanism is triggered.

[0014] Another objective of this invention is to provide a system for adapting, downloading, and verifying configuration files for intelligent substations.

[0015] To solve the above technical problems, the present invention provides the following technical solution: an adaptation, download and verification system for intelligent substation configuration files, comprising: a layered architecture, a mapping library construction module, a self-adaptive communication module, a format conversion module, a CRC verification and control module and an exception handling module; The layered architecture includes an application layer, a core business layer, an adaptation layer, and a support layer. The mapping library construction module establishes a manufacturer-device parameter mapping library and generates a configuration file based on the parameter mapping library. The self-adaptive communication module is used to identify the target device, establish a communication connection, perform security pre-verification and post-verification, and complete the download of the configuration file. The format conversion module is used to convert the standard configuration file into a private format file that can be recognized by the target device according to the private format conversion rules in the mapping library; The CRC check control module is used to generate a standard CCD file from the configuration file extraction process layer, calculate and compare the CRC-32 check code, and determine the configuration risk. The exception handling module is used to trigger the exception handling mechanism when a configuration risk is detected.

[0016] The present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, characterized in that the processor executes the computer program to implement the steps of the method for adapting, downloading and verifying a configuration file of an intelligent substation.

[0017] The present invention provides a computer-readable storage medium storing a computer program thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method for adapting, downloading and verifying a configuration file for an intelligent substation.

[0018] The beneficial effects of this invention are as follows: This invention achieves bidirectional conversion between standard CID / CCD and proprietary formats through a vendor-device parameter mapping library, breaking down vendor format barriers, improving operation and maintenance efficiency, and reducing configuration time by 50% based on simulation testing. Original configuration backup ensures rapid rollback in case of failure; based on actual testing, rollback time is less than 1 minute. IEDName matching and verification eliminates incorrect installations, reducing the error rate to 0%. Format restrictions prevent the download of incorrect files, reducing configuration risks.

[0019] This invention achieves full-process automation, reducing human error, improving accuracy and convenience, and lowering the error rate to <1%. Based on specific CRC-32 rules, it precisely manages process-level risks, avoiding malfunctions or failures caused by configuration mismatches, ensuring stable substation operation. Based on actual testing, the risk detection accuracy is >95%. The mapping library is dynamically updated, highly scalable, has low maintenance costs, shortens the maintenance cycle by 30%, and adapts to equipment iterations. Full-process log traceability facilitates risk tracing and problem troubleshooting. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating the overall process of adapting, downloading, and verifying a configuration file for an intelligent substation, as provided in one embodiment of the present invention.

[0022] Figure 2This is a schematic diagram of a four-dimensional mapping table structure of a manufacturer-equipment parameter mapping library for a method of adapting, downloading, and verifying configuration files for intelligent substations, provided as an embodiment of the present invention.

[0023] Figure 3 This is a system architecture diagram of a method for adapting, downloading, and verifying configuration files for intelligent substations, provided as an embodiment of the present invention. Detailed Implementation

[0024] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.

[0025] Example 1, referring to Figure 1 This is one embodiment of the present invention, which provides a method for adapting, downloading, and verifying configuration files for intelligent substations, including: S100. Establish a manufacturer-device parameter mapping library and generate a configuration file based on the parameter mapping library; S200: Automatically reads and downloads configuration files, and adds a security verification mechanism; S300, configuration risk management based on verification rules; Therefore, to address the problems existing in the background technology, the steps of S100-S300 are used to establish a manufacturer-device parameter mapping library to achieve self-adaptive reading and downloading of configuration files; a triple security mechanism of original configuration backup, device matching verification, and format limitation is added; and process-level configuration risk control is implemented based on specific CRC verification rules, thereby improving operation and maintenance efficiency and security.

[0026] Example 2, refer to Figures 1-2 This is one embodiment of the present invention, which provides a method for adapting, downloading, and verifying configuration files for intelligent substations, including: For ease of understanding, the following is a brief explanation of the main terms involved in this invention: SCD stands for Substation Configuration Description, a substation configuration description file based on the IEC61850 standard, containing full-station configuration information.

[0027] CID stands for Configured IED Description, a description file for configured intelligent electronic devices used for configuration at the device station control layer.

[0028] CCD stands for Capabilities and Configuration Description, a file used for device process layer configuration.

[0029] IED stands for Intelligent Electronic Device, such as relay protection devices.

[0030] SV / GOOSE: Sampled Value / Generic Object Oriented Substation Event, which represents process-level sampled values ​​and generic objects oriented towards substation events.

[0031] CRC-32 stands for Cyclic Redundancy Check-32, a 32-bit cyclic redundancy check algorithm used for data integrity and consistency verification.

[0032] IEDName is the IED name field, a unique identifier for the device, used for matching and verification.

[0033] In this embodiment of the invention, S100 establishes a manufacturer-device parameter mapping library and generates a configuration file based on the parameter mapping library, including the following steps S101-S105: As attached Figure 2 As shown, S101 collects the adaptation parameters of different models of secondary equipment from mainstream manufacturers and establishes a four-dimensional mapping table of manufacturer-equipment model-firmware version-adaptation parameters. The mapping library supports dynamic updates. When a new manufacturer or device model is added, the mapping table is expanded by importing the parameter configuration file without modifying the underlying system code. The adaptation parameters include a first parameter, a second parameter, and a third parameter; The first parameter is a communication parameter, which in the embodiments of the present invention includes an Ethernet communication mode and an IP address with an authentication key; The second parameter is the format conversion rule, which in the embodiments of the present invention includes the field mapping relationship between standard CID / CCD and manufacturer proprietary format, and the supplementary rules for proprietary extended fields; The third parameter is a file access parameter, which in embodiments of the present invention includes a read / download instruction format and a data transmission protocol.

[0034] S102. Parse the substation's entire configuration file and filter out matching configuration subsets; Specifically, import the entire substation's SCD configuration file and parse the IED device information, virtual terminal connection relationships, and process layer SV / GOOSE configuration information. Based on the manufacturer, model, and bay type of the target equipment, filter and match a subset of configurations, and remove irrelevant IEDs and redundant information; It should be noted that the filtering and matching of the subset configuration uses an XML parser to load the entire file structure and parse the entire site configuration file to extract all IED elements and their child elements; Based on the key identifiers such as manufacturer, model, bay name / voltage level of the target device selected by the user, a match is made in the associated IEDs of the SCD. When a match is successful, the current IED is retained, and redundant elements are removed using a multi-combination removal method. After removing redundant elements, use XPath query to locate the target IED, and then recursively delete non-related nodes.

[0035] It should be noted that the multi-combination elimination in the embodiments of the present invention adopts a combination of retaining the whitelist and deleting the blacklist: Remove all IED elements and their references that are unrelated to the target IED; Remove irrelevant Substation levels and retain only the Bay where the target interval is located and its parent VoltageLevel; Remove DataTypeTemplates entries that are not referenced by any target IED after passing the backreference check; Remove empty or unreferenced Communication child nodes.

[0036] S103. If the parsing reveals a defect in the entire site configuration file, a pre-verification will be performed and the user will be prompted to correct it.

[0037] The defects include, but are not limited to, the following types: Basic XML syntax errors include unclosed tags, illegal characters in attribute values, and incorrect encoding declarations. SCL Schema non-compliance includes SCL.xsd files that do not meet the definition of IEC 61850-6, such as missing required elements.<IED name> Cannot be empty; enumeration value is invalid, i.e., the type of fc is not MX / ST / CO; data type mismatch, i.e., bType error; reference does not exist, i.e., lnType references an undefined LNodeType.

[0038] Semantic / consistency errors include duplicate GOOSE / SV addresses, datasets referencing non-existent FCDAs, broken virtual terminal connection loops, and duplicate IEDNames.

[0039] It should be noted that, in the embodiments of the present invention, the aforementioned pre-verification... Load the file using a standard XML parser and catch exceptions that parse syntax errors. Perform XSD verification using SCL-specific schema verification tools or libraries; Perform custom rule validations, such as checking if the desc attribute of the countermeasure requirement is filled with Chinese characters, checking the integrity of virtual loops in the process layer, and ensuring that each publication has at least one subscription.

[0040] It should also be noted that, in embodiments of the present invention, the aforementioned correction is... When minor, fixable issues occur, such as missing desc characters being filled with the description to be supplemented by default, lowercase enumeration values ​​being converted to uppercase, or required blank strings being filled, automatic completion will be performed and logged. When a problem list pops up, the user selects a correction method and chooses the correct reference object; If problems such as schema mismatch occur, the import will be refused, forcing the user to correct the issues in the source tool and then re-import.

[0041] S104. Based on the selected configuration subset, extract the target device parameters and generate a standard configuration file; Specifically, based on the selected configuration subset, the communication parameters, setpoint group configurations, soft pressure plate information, and dataset definitions of the target equipment station control layer are extracted. A standard CID file is generated according to the IEC 61850 standard specification, and the naming follows the nine-unified standard, uniformly named configured.cid. The process layer SV receiving configuration, GOOSE subscription / publishing configuration, control block parameters, and other contents of the target equipment are extracted to generate a standard CCD file, uniformly named configured.ccd, ensuring that it contains complete process layer loop configuration information.

[0042] S105. Retrieve the manufacturer-device parameter mapping library, match the private format conversion rules corresponding to the target device, and convert the standard configuration file; Specifically, S1051 automatically adds private fields such as hardware board mapping information, physical terminal association parameters, and device-specific communication configurations according to the mapping table rules; For example, parsing a standard XML file extracts core elements, including the IED.name field, and maps them to corresponding fields in a private format according to rules. The mapping rules are manufacturer-device-version, and the specific field mapping table is XML path-private field path-conversion function. Default values ​​are also added for missing private fields.

[0043] S1052. Convert standard XML format CID / CCD files into vendor-specific binary format. The conversion process involves traversing the XML tree structure and reconstructing elements and attributes according to mapping rules. Serialize the XML string into a binary data stream and use custom serialization logic to process data types. It should be noted that, in the embodiments of the present invention, the custom serialization logic specifically refers to, Use XPath to traverse the standard XML and extract all necessary fields; pack data types according to the big / little endianness specified in the vendor mapping table, including int16→2-byte signed and floating-point IEEE754; calculate the length field and append the vendor signature to the file header and footer.

[0044] S1053. As required by the manufacturer, add exclusive signature information and verification code to the converted private format file. The custom serialization logic refers to the reconstruction process of the manufacturer's private binary format to ensure that the file passes the device's security verification.

[0045] The encryption algorithm can use AES-128 to prevent man-in-the-middle attacks; In another embodiment, the conversion can be performed using a vendor-provided DLL / SDK, but this has poor scalability. In another embodiment, an intermediate JSON format can be maintained, and then a converter can be written. In another embodiment, a script engine can be used to dynamically execute the vendor's conversion script, but security needs to be controlled.

[0046] However, in the embodiments of the present invention, AES-128 is used to prevent man-in-the-middle attacks. Specifically, this includes calculating the file hash value, generating a signature using the vendor key, and appending the signature and checksum to the end of the file or a specified position.

[0047] In this embodiment of the invention, S200 performs self-adaptive reading and downloading of the configuration file, and adds a security verification mechanism, including the following steps S201-S203: S201, The security verification mechanism includes: a first verification mechanism, a second verification mechanism, and a third verification mechanism; S2011. The first verification mechanism is a security pre-verification, specifically including: After a successful connection, clicking download triggers the original configuration reading command to obtain the target device's current private format configuration file; the format conversion module is called to convert it to the standard CID / CCD format. The format conversion methods include XML DOM traversal and rule engine reconstruction, XSLT template conversion, and vendor SDK calls; the file is stored locally with a name that is named as vendor-model-device number-backup timestamp; a backup log is generated to record the storage path, device information, and backup time for easy failure rollback. When users import files to be downloaded, the file extension is verified, and only .cid and .ccd formats are allowed; if the format is not specified, loading will be refused to avoid device malfunction. Perform device compatibility verification by extracting the IEDName field from the backup standard format original configuration file and comparing it with the corresponding field in the CID / CCD file to be downloaded. If they match, the system is considered a match and proceeds to multi-level verification. If they do not match, a confirmation pop-up window will appear asking, "The IED of the file to be downloaded does not match the target device. Confirm to continue downloading?" The system will continue after the user confirms; otherwise, it will terminate.

[0048] S2012, The second verification mechanism is basic verification, firmware compatibility verification, and simulated download verification; It should be noted that the basic verification performs syntax and field integrity checks on the converted private format files to ensure that there are no errors or missing fields. In the embodiments of the present invention, the integrity check can adopt a structured parsing verification based on the manufacturer's private format specifications. For each manufacturer's private format, a dedicated file parser / decoder is built using C++ / Python to read the file byte by byte / field by field according to the format specification provided by the manufacturer or the specification obtained by reverse analysis. In embodiments of the present invention, a bidirectional verification of XML intermediate state based on Schema or DTD can also be adopted. Before / after conversion to private format, a standard CID / CCD (XML) is retained. The private format file is reverse-parsed back to standard XML, and then element-by-element diff comparison is performed with the source standard XML.

[0049] The firmware compatibility check compares the firmware version adapted to the file with the actual version of the device, and provides upgrade suggestions or adaptation adjustment prompts when incompatible.

[0050] The simulated download verification simulates the manufacturer's device file parsing and loading process, verifying that the file can be parsed normally and proceeds to the actual download without any abnormalities.

[0051] S2013. The third verification mechanism is a post-installation configuration verification; specifically, it reads the current configuration file of the device, converts it into a standard format, and compares it with the source file to ensure that it has not been tampered with.

[0052] S202. Establish an initial connection with the target device via Ethernet or serial port, send a device information query command, and obtain core information such as manufacturer, model, and firmware version. S2021. Based on this information, retrieve the four-dimensional mapping table of the mapping library and automatically match the first parameter. Specifically, the four-dimensional precise matching is based on the manufacturer string being completely equal, the model string prefix / complete matching, the firmware version number range comparison, and the optional sub-model. The first priority is to first match the manufacturer + model completely, and the second priority is to match the model fuzzily if there is no match. S2022, download instruction format, authentication key; specifically, establish a stable communication connection based on matching parameters. Establishing the connection involves sending an MMS Identify request or a vendor-defined query frame to obtain the exact version based on the mapped communication mode, IP, port, and MMS protocol stack parameters; if the version matches, establish an MMS connection using the corresponding authentication key.

[0053] S2023. Establish a communication connection based on the first matching parameter. If the connection fails, trigger a reconnection mechanism with a maximum of 3 reconnections. If the reconnection fails, an exception log will be generated. It should be noted that the criteria for determining connection failure include TCP three-way handshake failure, MMS Initiate response timeout (usually 5-10 seconds), Identify response error or version mismatch, and authentication failure (incorrect password / key). The reconnection mechanism includes incremental intervals, up to a maximum of 3 times; re-executing device information query before each reconnection; recording error codes such as ECONNREFUSED and ETIMEDOUT after failure, and prompting the user to check the network cable / IP.

[0054] S2024. After communication is established, security pre-verification is performed through the first and second verification mechanisms. S203: Send download instructions, transmit private format files in segments, and monitor progress and feedback in real time; After the transmission is complete, send a configuration activation command and receive an activation confirmation. If transmission is interrupted, the entire process will be re-executed after the fault is cleared. After-process verification is completed through a third verification mechanism.

[0055] In an embodiment of the present invention, risk control based on verification rules is performed in step S300, including the following steps S301-S302: S301. Extract process layer configuration information from the verified SCD file and generate a standard CCD file; S3011. Calculate the CRC-32 checksum for the standard CCD file and compare the checksum to determine the risk situation. In the embodiments of the present invention, this specifically involves removing the desc attribute, the attributes of the IED element except for name, the attributes of the FCDA element except for bType in the GOOSE and SV subscriptions, and the CRC element from the CCD file. S3012, Remove spaces, newlines, carriage returns, and list characters between elements and attributes; S3013. Preserve spaces in element and attribute values, and convert the processed file to a UTF-8 sequence; S3014. Perform a four-byte CRC-32 calculation on the UTF-8 sequence to generate a checksum. The CRC-32 calculation involves using regular expressions or string processing tools to remove specified redundant attributes and irrelevant characters, ensuring that only core configuration data is retained; and normalizing the string, removing unnecessary whitespace but retaining necessary spaces. Encode the string into a UTF-8 byte sequence and apply the CRC-32 algorithm to calculate a 32-bit check value; S3015. Compare the two check codes. If the comparison results are consistent, it is determined that there is no risk and a pass report is generated. When the comparison results are inconsistent, a risk is identified. A diff algorithm is used to compare the two CCD files, locate the differences in the fields, and provide correction suggestions for regenerating and downloading the CCD based on the SCD. The results and difference information are stored in the operation and maintenance logs for risk traceability. This rule ensures that the attribute order is insensitive, and for files that are too large (>10MB), performance can be optimized by dividing the calculation into blocks.

[0056] In summary, this invention uses a unified standard CID / CCD as an intermediate format, a four-dimensional dynamic mapping library, automatic supplementation of private extended fields, and automatic addition of signatures / verifications, achieving cross-vendor adaptability.

[0057] S302. When a risk is determined to exist, the exception handling mechanism is triggered. Specifically, if communication interruptions, format conversion failures, or verification failures are encountered during the reading, downloading, and verification processes, an exception handling mechanism will be triggered. Specific measures include: If communication is interrupted, a reconnection strategy will be executed. If the reconnection fails, a log will be generated and a prompt to check the network will be displayed. If format conversion fails, locate the incorrect field, match the mapping library correction rules to automatically correct it, or prompt for manual addition if correction fails. If the verification fails, the configuration will be disabled and a correction will be initiated; if an error occurs after downloading, the original backup configuration file will be called, and the system can roll back to the state before the download with one click.

[0058] Example 3, referring to Figures 1-3 This invention provides a method for adapting, downloading, and verifying configuration files for intelligent substations, as one embodiment of the present invention. To verify the beneficial effects of the present invention, scientific demonstration is conducted through experiments.

[0059] Example 1: A PCS-9611 relay protection device in a 220kV smart substation as an example: First, standard CID / CCD generation is performed: import the SCD file, parse and filter the PCS-9611 configuration subset, and generate configured.cid and configured.ccd; Match the conversion rules, convert to CFW format, and supplement the board mapping and signature.

[0060] Before downloading, establish a connection, read the original CFW file and convert it to a standard format backup; verify that the format and IEDName of the file to be downloaded are consistent.

[0061] Match communication parameters and perform multi-level verification; transmit CFW files in segments, and compare and confirm consistency after the segments take effect.

[0062] Perform process-level control, generate a standard CCD, and calculate CRC-32 (0x12345678); if the reading device CCD calculates the same value, a pass report is generated consistently.

[0063] Logs are archived to store information about the entire process.

[0064] Example 2: A PCS-931 device. Taking a PCS-931 device in another 220kV substation as an example: Import SCD filter subset; Generate CID / CCD and convert it to WCF format; Back up the original file and verify the IEDName; Perform download and CRC verification, similar to the above, to ensure cross-vendor applicability.

[0065] Example 3: If the CCD checksums read are inconsistent (0x12345679 vs. 0x12345678), the trigger mechanism is as follows: By comparing the differences, the error in the GOOSE subscription bType was located. The generated report prompts you to regenerate the CCD download; Disable the settings and roll back the backup configuration with one click.

[0066] Example 4, refer to Figure 3 This is an embodiment of the present invention, and the above is an illustrative scheme of a method for adapting, downloading, and verifying configuration files for intelligent substations. It should be noted that the technical solution of a system for adapting, downloading, and verifying configuration files for intelligent substations is based on the same concept as the above-described method for adapting, downloading, and verifying configuration files for intelligent substations. Details not described in detail in the technical solution of the system for adapting, downloading, and verifying configuration files for intelligent substations in this embodiment can be found in the description of the above-described method for adapting, downloading, and verifying configuration files for intelligent substations.

[0067] This embodiment provides an adaptation, download, and verification system for intelligent substation configuration files, including: a mapping library construction module, a self-adaptive communication module, a format conversion module, a CRC verification and control module, and an exception handling module; The mapping library construction module establishes a manufacturer-device parameter mapping library and generates configuration files based on the library. The self-adaptive communication module is used to identify the target device, establish a communication connection, perform security pre-verification and post-verification, and complete the download of the configuration file. The format conversion module is used to convert the standard configuration file into a private format file that can be recognized by the target device according to the private format conversion rules in the mapping library; The CRC check control module is used to generate a standard CCD file from the configuration file extraction process layer, calculate and compare the CRC-32 check code, and determine the configuration risk. The exception handling module is used to trigger the exception handling mechanism when a configuration risk is detected.

[0068] In addition, as attached Figure 3 As shown, this system also adopts a layered architecture, including an application layer, a core business layer, an adaptation layer, and a support layer. The application layer includes functions such as providing a visual interface, supporting device management, file import and export reports, log query, configuration rollback, and web / desktop clients; The core business layer includes modules such as mapping library management, self-adaptive communication, format conversion, CRC verification, and exception handling to implement business logic; The adaptation layer includes the communication protocols and format conversion rules of the packaging manufacturers, and provides a unified interface; The support layer provides basic tools such as XML parsing, binary parsing, and encryption verification.

[0069] This embodiment also provides an electronic device applicable to a method for adapting, downloading, and verifying a configuration file for a smart substation, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the method for adapting, downloading, and verifying a configuration file for a smart substation as proposed in the above embodiment.

[0070] This embodiment also provides a storage medium storing a computer program, which, when executed by a processor, implements a method for adapting, downloading, and verifying a configuration file for a smart substation as proposed in the above embodiments.

[0071] The storage medium proposed in this embodiment belongs to the same inventive concept as the method for adapting, downloading and verifying a configuration file for a smart substation proposed in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0072] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0073] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for adapting, downloading, and verifying configuration files for intelligent substations, characterized in that: include, Establish a manufacturer-device parameter mapping library, and generate a configuration file based on the parameter mapping library; The configuration file is automatically read and downloaded, and a security verification mechanism is added. Configure risk management based on verification rules.

2. The method for adapting, downloading, and verifying configuration files for intelligent substations as described in claim 1, characterized in that, The establishment of the manufacturer-device parameter mapping library includes: Collect the adaptation parameters of different models of secondary equipment from different manufacturers, and establish a four-dimensional mapping table of manufacturer-equipment model-firmware version-adaptation parameters; The adaptation parameters include a first parameter, a second parameter, and a third parameter; The mapping library expands the mapping table by importing parameter configuration files.

3. The method for adapting, downloading, and verifying configuration files for intelligent substations as described in claim 2, characterized in that, The generated configuration file includes: The system parses the entire substation configuration file, filters and matches a subset of configurations, and performs preliminary verification and prompts for correction when there are defects in the entire substation configuration file. Based on the selected configuration subset, extract the target device parameters to generate a standard configuration file; The manufacturer-device parameter mapping library is retrieved, and the private format conversion rules corresponding to the target device are matched to convert the standard configuration file.

4. The method for adapting, downloading, and verifying configuration files for intelligent substations as described in claim 3, characterized in that, The filtering and matching configuration subset includes: Parse the entire site configuration file and extract all IED elements; Based on the target device identifier selected by the user, the extracted IED is matched and extracted from the site-wide configuration file; When a match is successful, the current IED is retained, and redundant elements are removed using a multi-combination removal method.

5. The method for adapting, downloading, and verifying a configuration file for a smart substation as described in claim 4, characterized in that, The security verification mechanism includes: a first verification mechanism, a second verification mechanism, and a third verification mechanism; The first verification mechanism is a device compatibility verification; The second verification mechanism includes basic verification, firmware compatibility verification, and simulated download verification. The third verification mechanism is post-installation configuration verification.

6. The method for adapting, downloading, and verifying a configuration file for a smart substation as described in claim 5, characterized in that, The adaptive reading and downloading includes: Identify target device information and establish an initial connection; match the first parameter according to the mapping library of the current information. A communication connection is established based on the first matched parameter, and a reconnection mechanism is triggered when the connection fails. Once communication is established, security pre-verification is performed through the first and second verification mechanisms. After verification, a download command is sent, a private format file is read, and a configuration activation command is sent to complete the subsequent verification through a third verification mechanism.

7. The method for adapting, downloading, and verifying configuration files for intelligent substations as described in claim 6, characterized in that... The aforementioned risk management includes: Extract process layer configuration information from the verified configuration file and generate a standard CCD file; Calculate the CRC-32 checksum for the standard CCD file and compare the checksum to determine the risk status. When a risk is identified, the exception handling mechanism is triggered.

8. A system for adapting, downloading, and verifying configuration files for intelligent substations, employing the method for adapting, downloading, and verifying configuration files for intelligent substations as described in any one of claims 1 to 7, characterized in that... include: The architecture consists of a layered structure, a mapping library construction module, a self-adaptive communication module, a format conversion module, a CRC check and control module, and an exception handling module. The layered architecture includes an application layer, a core business layer, an adaptation layer, and a support layer. The mapping library construction module establishes a manufacturer-device parameter mapping library and generates a configuration file based on the parameter mapping library. The self-adaptive communication module is used to identify the target device, establish a communication connection, perform security pre-verification and post-verification, and complete the download of the configuration file. The format conversion module is used to convert the standard configuration file into a private format file that can be recognized by the target device according to the private format conversion rules in the mapping library; The CRC check control module is used to generate a standard CCD file from the configuration file extraction process layer, calculate and compare the CRC-32 check code, and determine the configuration risk. The exception handling module is used to trigger the exception handling mechanism when a configuration risk is detected.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for adapting, downloading and verifying a configuration file for an intelligent substation as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for adapting, downloading and verifying a configuration file for an intelligent substation as described in any one of claims 1 to 7.