Secondary loop model consistency verification method and system based on SPD file and SPCD file
By analyzing and comparing the secondary circuit model data in SPD and SPCD files, a standardized data set was constructed, which solved the problem of low efficiency in manual verification of substation secondary circuit models and achieved higher wiring accuracy and operation and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-05
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, the SPD and SPCD files of substation secondary circuit models are complex, and manual verification is inefficient and has a high error rate, affecting the accuracy of secondary circuit wiring and the efficiency of substation operation and maintenance.
By parsing SPD and SPCD files, a standardized dataset is constructed, and multi-level comparisons are performed to verify the consistency of the secondary loop model and generate a consistency verification report.
It improves the accuracy of secondary circuit wiring and the efficiency of substation operation and maintenance, and simplifies the complex work of document comparison.
Smart Images

Figure CN121637818A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of secondary circuit model configuration file verification for intelligent substations, specifically to a method and system for verifying the consistency of secondary circuit models based on SPD files and SPCD files. Background Technology
[0002] As a crucial component of the power grid, the quality of substation secondary circuit design and operation / maintenance directly impacts the safety and stability of the power system. In recent years, with the expansion of power system capacity and the increase in automation, the design complexity of substation secondary systems has significantly increased, and secondary circuit models have undergone frequent changes and modifications. This has led to errors in the secondary circuit models that do not match reality, severely affecting the accuracy of secondary circuit wiring and the efficiency of substation operation and maintenance. Based on this situation, there is an urgent need to research verification techniques for secondary circuit model data to improve the completeness and accuracy of the data, support intelligent operation and maintenance processes, and ensure the safe and stable operation of the power grid.
[0003] Currently, the relevant standards for secondary circuit models are "GB / T 37755-2019 Technical Specification for Fiber Optic Circuit Modeling and Coding in Intelligent Substations" and "DL-T2765-2024 Logic Model Specification for Transmission and Transformation Engineering." GB / T 37755-2019 defines the generation of SPCD files, which contain fiber optic circuit modeling information for secondary circuits, while DL-T2765-2024 defines the generation of SPD files, which also contain fiber optic circuit modeling information for secondary circuits. Therefore, redundant data between SPD and SPCD files can be used to perform consistency verification of the secondary circuit model, checking for errors in the files and preventing accidents. However, the content of SPD and SPCD files is quite complex, containing fiber optic secondary circuit modeling data for the entire substation, resulting in a large data volume. Manual verification is not only labor-intensive but also inefficient and prone to errors, seriously affecting the accuracy of secondary circuit wiring and the efficiency of substation operation and maintenance. Summary of the Invention
[0004] To address the aforementioned problems in the prior art, this invention provides a method and system for verifying the consistency of secondary circuit models based on SPD and SPCD files, which can improve the accuracy of secondary circuit wiring and the efficiency of substation operation and maintenance.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention includes the following steps: S1, Model parsing steps: Parse the SPD model file and SPCD model file respectively, extract the secondary loop model data contained in them, and construct a standardized SPD model data set and SPCD model data set; S2, Consistency Verification Step: Perform multi-level comparison between the SPD model dataset and each data point in the specified dataset of the SPCD model dataset to verify consistency.
[0006] Furthermore, the specified dataset in step S2 includes: room information, cabinet information, secondary equipment information, board information, optical port information, fiber optic connection relationship information within the cabinet, fiber optic cable information between cabinets, and fiber optic connection relationship information between cabinets.
[0007] Furthermore, the parsing of the SPD model file in step S1 specifically includes: Based on the hierarchical structure of the "DL-T2765-2024 Power Transmission and Transformation Engineering Logical Model Specification", the nodes in the SPD file are parsed to extract information on small rooms, cabinets, secondary equipment, boards, optical ports, optical fibers inside cabinets, optical cables between cabinets, and optical fibers between cabinets; wherein, the nodes include Substation, Region, Cubicle, Device, SubDevice, Pin, Core, and Cable nodes.
[0008] Furthermore, the parsing of the SPCD model file in step S1 specifically includes: Based on the hierarchical structure of "GB / T 37755-2019 Technical Specification for Fiber Optic Loop Modeling and Coding in Intelligent Substations", the nodes in the SPCD file are parsed to extract information on compartments, cabinets, secondary equipment, boards, optical ports, optical fibers inside cabinets, optical cables between cabinets, and optical fibers between cabinets; wherein, the nodes include Substation, Region, Cubicle, Unit, Board, Port, IntCore, Cable, and Core nodes.
[0009] Furthermore, step S2 specifically involves performing the following steps for each individual data point in the specified dataset: S21, Traverse the SPD model data set and the SPCD model data set, and match the corresponding data in the two sets with the specified keyword. If each of the individual data contained in the two sets can be matched, the data information is considered to be consistent; otherwise, the information is inconsistent. S22, if the information is inconsistent, record the data information that exists in the SPD model data set but does not exist in the SPCD model data set, or record the data information that exists in the SPCD model data set but does not exist in the SPD model data set.
[0010] Furthermore, the specified keyword is: When verifying the consistency of the cell information, the keyword is specified as "name". When verifying the consistency of cabinet information, the specified keywords are name and the room to which it belongs; When verifying the consistency of secondary device information, the specified keywords are name, cabinet, and 61850 identifier iedname; When verifying the consistency of board information, the specified keywords are name and the secondary device to which it belongs; When verifying the consistency of optical port information, the specified keywords are name and the board to which it belongs; When verifying the consistency of fiber optic connections within the verification cabinet, the specified keywords are fiber optic start port, fiber optic end port, and the cabinet to which the fiber belongs. When verifying the consistency of optical cable connections between verification cabinets, specify the keywords as the optical cable starting cabinet and the optical cable ending cabinet.
[0011] Furthermore, it also includes the following steps: S3, Report Generation Step: Summarize the comparison results of each level in step S2 and generate a consistency verification report. The report is used to identify missing items, conflicting items, and inconsistent items.
[0012] The present invention also provides a secondary loop model consistency verification system based on SPD files and SPCD files, including a processor and a computer-readable storage medium interconnected with each other. The computer-readable storage medium stores a computer program, which is executed by the processor to implement the steps of the above-described secondary loop model consistency verification method based on SPD files and SPCD files.
[0013] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method for verifying the consistency of a secondary loop model based on SPD and SPCD files.
[0014] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for verifying the consistency of a secondary loop model based on SPD files and SPCD files.
[0015] Compared with the prior art, the advantages of the present invention are as follows: This invention simplifies the complex task of full-text comparison of SPD and SPCD files by parsing SPD and SPCD files, constructing standardized SPD and SPCD model data sets, specifying datasets and performing multi-level comparisons on each data set to verify consistency. This not only ensures the accuracy of substation secondary circuit wiring but also greatly improves the operation and maintenance efficiency of substations. Attached Figure Description
[0016] Figure 1This is a flowchart illustrating an embodiment of the present invention. Detailed Implementation
[0017] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but this does not limit the scope of protection of the present invention.
[0018] The technical solution adopted in this embodiment includes the following steps: S1, Model parsing steps: Parse the SPD model file and SPCD model file respectively, extract the secondary loop model data contained in them, and construct a standardized SPD model data set and SPCD model data set; S2, Consistency Verification Step: Perform multi-level comparison between the SPD model dataset and each data point in the specified dataset of the SPCD model dataset to verify consistency.
[0019] Preferably, the specified dataset in step S2 includes: room information, cabinet information, secondary equipment information, board information, optical port information, fiber optic connection relationship information within the cabinet, fiber optic cable information between cabinets, and fiber optic connection relationship information between cabinets.
[0020] Preferably, the parsing of the SPD model file in step S1 specifically includes: Based on the hierarchical structure of the "DL-T2765-2024 Power Transmission and Transformation Engineering Logical Model Specification", the nodes in the SPD file are parsed to extract information on small rooms, cabinets, secondary equipment, boards, optical ports, optical fibers inside cabinets, optical cables between cabinets, and optical fibers between cabinets; wherein, the nodes include Substation, Region, Cubicle, Device, SubDevice, Pin, Core, and Cable nodes.
[0021] Specifically, it includes: S111, parse the SPD file, parse the cell information of the Region node under the Substation node in the file, and get the name and description of all cells in the station; S112, parse the cabinet information of the Cubicle node under the Region node in the file, and obtain the name, description and room information of all cabinets in the station; S113, parse the secondary device information of the Device node under the Cubicle node of the cabinet in the file, and obtain the name, 61850 identifier iedname, description and cabinet information of all secondary devices in the station; S114, parse the board information of the SubDevice node under the Device node in the file, and obtain the name, description, and secondary device information of all boards in the station; S115, parse the optical port information of the Pin node under the SubDevice node of the board in the file, and obtain the name, portType and secondary device information of all optical ports in the station; S116, parse the fiber optic connection information of the Core node under the Cubicle node of the cabinet in the file, and obtain the name, portType, startPinName, endPinName and cabinet information of all fiber optic connections in the station. S117, parse the cable information between the cable nodes under the Bay nodes in the file, and obtain the name, startCubicle, and startCubicle of all optical cables in the station. S118, parse the fiber optic connection information between the Core node cabinets under the Cable node in the file, and obtain the name, startPinName, endPinName and the fiber optic cable information of all fiber optic cables in the station. Preferably, the parsing of the SPCD model file in step S1 specifically includes: Based on the hierarchical structure of "GB / T 37755-2019 Technical Specification for Fiber Optic Loop Modeling and Coding in Intelligent Substations", the nodes in the SPCD file are parsed to extract information on compartments, cabinets, secondary equipment, boards, optical ports, optical fibers inside cabinets, optical cables between cabinets, and optical fibers between cabinets; wherein, the nodes include Substation, Region, Cubicle, Unit, Board, Port, IntCore, Cable, and Core nodes.
[0022] Specifically, it includes: S121, parse the SPCD file, parse the cell information of the Region node under the Substation node in the file, and obtain the name and description of all cells in the station; S122, parse the cabinet information of the Cubicle node under the Region node in the file, and obtain the name, description and room information of all cabinets in the station; S123, parse the secondary device information of the Unit node under the Cubicle node of the cabinet in the file, and obtain the name, 61850 identifier iedname, description and cabinet information of all secondary devices in the station; S124, parse the board information of the Board node under the Unit node of the secondary equipment in the file, and obtain the name, description and secondary equipment information of all boards in the station; S125, parse the optical port information of the Port node under the Board node in the file, and obtain the name, type, and board information of all optical ports in the station; S126, parse the fiber optic connection information of the IntCore node under the Cubicle node of the cabinet in the file, and obtain the name, starting port information portA, ending port information portB, and cabinet information of all fiber optic connections in the station. S127, parse the cable information between the cable nodes under the Bay nodes in the file, and obtain the name of all optical cables in the station, the starting cabinet of the optical cable cubeA, and the ending cabinet of the optical cable cubeB. S128, parse the fiber optic connection information between the Core node cabinets under the Cable node in the file, and obtain the name, starting port information portA, ending port information portB, and associated fiber optic cable information of all fiber optic cables in the station. Preferably, step S2 specifically involves performing the following steps for each individual data point in the specified dataset: S21, Traverse the SPD model data set and the SPCD model data set, and match the corresponding data in the two sets with the specified keyword. If each of the individual data contained in the two sets can be matched, the data information is considered to be consistent; otherwise, the information is inconsistent. S22, if the information is inconsistent, record the data information that exists in the SPD model data set but does not exist in the SPCD model data set, or record the data information that exists in the SPCD model data set but does not exist in the SPD model data set.
[0023] Preferably, the specified keyword is: When verifying the consistency of the cell information, the keyword is specified as "name". When verifying the consistency of cabinet information, the specified keywords are name and the room to which it belongs; When verifying the consistency of secondary device information, the specified keywords are name, cabinet, and 61850 identifier iedname; When verifying the consistency of board information, the specified keywords are name and the secondary device to which it belongs; When verifying the consistency of optical port information, the specified keywords are name and the board to which it belongs; When verifying the consistency of fiber optic connections within the verification cabinet, the specified keywords are fiber optic start port, fiber optic end port, and the cabinet to which the fiber belongs. When verifying the consistency of optical cable connections between verification cabinets, specify the keywords as the optical cable starting cabinet and the optical cable ending cabinet.
[0024] Preferably, it also includes the following steps: S3, Report Generation Step: Summarize the comparison results of each level in step S2 and generate a consistency verification report. The report is used to identify missing items, conflicting items, and inconsistent items.
[0025] like Figure 1 The diagram shown is a schematic representation of the preferred complete technical solution of this embodiment.
[0026] This embodiment also provides a secondary loop model consistency verification system based on SPD files and SPCD files, including a processor and a computer-readable storage medium interconnected with each other. The computer-readable storage medium stores a computer program, which is executed by the processor to implement the steps of the above-described secondary loop model consistency verification method based on SPD files and SPCD files.
[0027] This embodiment also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method for verifying the consistency of a secondary loop model based on SPD and SPCD files.
[0028] This embodiment also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for verifying the consistency of a secondary loop model based on SPD files and SPCD files.
[0029] This embodiment simplifies the complex task of full-text comparison of SPD and SPCD files by parsing SPD and SPCD files, constructing standardized SPD model data sets and SPCD model data sets, specifying datasets and performing multi-level comparisons on each data set to verify consistency. This not only ensures the accuracy of substation secondary circuit wiring but also greatly improves the operation and maintenance efficiency of substations.
[0030] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0031] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for checking consistency of a secondary circuit model based on an SPD file and an SPCD file, characterized in that, The method comprises the following steps: S1, a model analysis step: respectively analyze the SPD model file and the SPCD model file, extract the secondary circuit model data contained in both, and construct a standardized SPD model data set and a SPCD model data set; S2, a consistency checking step: compare the SPD model data set with each data in the specified data set in the SPCD model data set in multiple levels, and check the consistency.
2. The consistency verification method of the secondary circuit model based on the SPD file and the SPCD file according to claim 1, characterized in that, The specified data set in step S2 comprises: cubicle information, screen cabinet information, secondary equipment information, board card information, optical port information, intra-cabinet optical fiber connection relationship information, inter-cabinet optical cable information and inter-cabinet optical fiber connection relationship information.
3. The consistency verification method of the secondary circuit model based on the SPD file and the SPCD file according to claim 2, characterized in that, The analysis of the SPD model file in step S1 specifically comprises: According to the hierarchical structure of “DL-T2765-2024 Specification for Logical Model of Power Transmission and Transformation Project”, the nodes in the SPD file are analyzed to extract the information of cubicle, screen cabinet, secondary equipment, board card, optical port, intra-cabinet optical fiber, inter-cabinet optical cable and inter-cabinet optical fiber; wherein the nodes comprise Substation, Region, Cubicle, Device, SubDevice, Pin, Core and Cable nodes.
4. The consistency verification method of the secondary circuit model based on the SPD file and the SPCD file according to claim 2, characterized in that, The analysis of the SPCD model file in step S1 specifically comprises: According to the hierarchical structure of “GB / T 37755-2019 Specification for Modeling and Coding Technology of Optical Fiber Circuit in Smart Substation”, the nodes in the SPCD file are analyzed to extract the information of cubicle, screen cabinet, secondary equipment, board card, optical port, intra-cabinet optical fiber, inter-cabinet optical cable and inter-cabinet optical fiber; wherein the nodes comprise Substation, Region, Cubicle, Unit, Board, Port, IntCore, Cable and Core nodes.
5. The consistency verification method of the secondary circuit model based on the SPD file and the SPCD file according to claim 2, characterized in that, The specific steps of step S2 are as follows: S21, traverse the SPD model data set and the SPCD model data set to match the corresponding data in the two sets with the specified keywords, if each of the individual data contained in the two sets can be matched, it is considered that the data information is consistent, otherwise the information is inconsistent; S22, if the information is inconsistent, record the data information that exists in the SPD model data set but does not exist in the SPCD model data set, or the data information that exists in the SPCD model data set but does not exist in the SPD model data set.
6. The consistency verification method of a secondary circuit model based on an SPD file and an SPCD file according to claim 5, characterized in that, The specified keywords are: When checking the consistency of cubicle information, the specified keyword is name; When checking the consistency of screen cabinet information, the specified keywords are name and the cubicle to which it belongs; When checking the consistency of secondary equipment information, the specified keywords are name, the screen cabinet to which it belongs and 61850 identifier iedname; When checking the consistency of board card information, the specified keywords are name and the secondary equipment to which it belongs; When checking the consistency of optical port information, the specified keywords are name and the board card to which it belongs; When checking the consistency of the fiber connection relationship in the cabinet, the specified keyword is the fiber start optical port, the fiber end optical port, and the cabinet to which it belongs. When checking the consistency of the cable connection relationship between cabinets, the specified keyword is the cable start cabinet and the cable end cabinet.
7. The consistency verification method of a secondary circuit model based on an SPD file and an SPCD file according to claim 2, characterized in that, Further comprising steps of: S3, a report generation step: aggregating the comparison results of each level in step S2 to generate a consistency check report, the report identifying missing items, conflicting items, and inconsistent items.
8. A secondary circuit model consistency verification system based on an SPD file and an SPCD file, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the secondary circuit model consistency checking method based on the SPD file and the SPCD file according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the secondary circuit model consistency checking method based on the SPD file and the SPCD file according to any one of claims 1-7.
10. A computer program product, characterised in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the secondary circuit model consistency checking method based on the SPD file and the SPCD file according to any one of claims 1-7.