A method and terminal for parsing SCD files to obtain substation secondary system topology information
By parsing the switch, communication and physical connection information of the SCD file, the topology information of the secondary system of the smart substation is obtained, which solves the problem of difficulty in understanding the secondary system architecture of the smart substation in the existing technology and improves engineering efficiency.
Patent Information
- Application Number
- CN202311033624.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-08-17
AI Technical Summary
The existing technology makes it difficult to intuitively understand the overall architecture of the secondary system of a smart substation, making it difficult for engineers to obtain the correlation between different information when processing huge and complicated SCD files, affecting work efficiency.
By parsing the IED elements, Communication elements and physical connection information of the SCD file, the switch configuration, external signals of intelligent electronic devices and physical connection information of the substation secondary system are obtained, thereby determining the information flow path and providing topology information of the substation secondary system.
It improves engineers' overall understanding of the secondary system of smart substations, simplifies the design, debugging and simulation processes, and improves work efficiency.
Smart Images

Figure CN117014317B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent substations, and in particular to a method and a terminal for parsing an SCD file to obtain substation secondary system topology information. Background Art
[0002] With the widespread application of the 61850 standard in smart substations, various smart substation configuration files have emerged. The SCD file (Substation Configuration Description) is a smart substation configuration description file, which is defined by IEC61850 to describe the configuration of primary and secondary devices in smart substations. This file uses the SCL (Substation Configuration description Language) substation configuration description language to describe in detail the communication parameters and logical connections of the secondary equipment, as well as the connection method between each isolated device. As a configuration description file, its content is huge and complicated. Taking the 500kV substation configuration file as an example, each secondary device IED element description text is as many as 4,000 lines, and the total number of text lines is as high as more than 9 million lines. It is difficult for engineers to intuitively understand the correlation between different information using general text viewing tools, and it is difficult to get a full picture of the substation. Summary of the invention
[0003] In order to solve the deficiencies of the existing technical solutions, the technical solution of the present invention provides a method for obtaining substation secondary system topology information from SCD file parsing, by gradually parsing the smart substation configuration file SCD file, obtaining the substation secondary system switch configuration information, smart electronic device external signal information, substation secondary system physical connection information, and obtaining the substation secondary system information flow path according to the substation secondary system switch configuration information, smart electronic device external signal information, and substation secondary system physical connection information. By applying this technical solution, engineering personnel will be able to intuitively obtain the overall architecture of the smart substation secondary system and improve engineering efficiency.
[0004] In the first aspect, the present invention provides a method for parsing an SCD file to obtain substation secondary system topology information, including:
[0005] Retrieve and parse the switch content of the IED element of the SCD file to obtain the substation secondary system switch configuration information;
[0006] Parse the IED elements and Communication elements of the SCD file to obtain external signal information of intelligent electronic devices;
[0007] Parse the Communication element of the SCD file to obtain the physical connection information of the substation secondary system;
[0008] The information flow path of the substation secondary system is obtained according to the substation secondary system switch configuration information, the external signal information of the intelligent electronic device, and the substation secondary system physical connection information.
[0009] Preferably, the SCD file is a smart substation system configuration description file, including an IED element and a Communication element, wherein the IED element includes an IED element describing the configuration information of the smart substation network switch;
[0010] In a second aspect, an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for parsing an SCD file to obtain topology information of a substation secondary system as described in the first aspect or any possible implementation of the first aspect are implemented.
[0011] It can be seen from the above technical solution that this patent has the following beneficial effects:
[0012] This patent is a method and terminal for parsing SCD files to obtain substation secondary system topology information, the method includes:
[0013] Retrieve and parse the switch content of the IED element of the SCD file to obtain the switch configuration information of the substation secondary system, parse the IED element and Communication element of the SCD file to obtain the external signal information of the intelligent electronic device, parse the Communication element of the SCD file to obtain the physical connection information of the substation secondary system. According to the substation secondary system switch configuration information, the external signal information of the intelligent electronic device, and the physical connection information of the substation secondary system, obtain the information flow path of the substation secondary system. The method of parsing the SCD file to obtain the substation secondary system topology information proposed in this patent enables engineering personnel to obtain a comprehensive understanding of the substation secondary system from the SCD file, improves work efficiency, and facilitates the design, debugging, and simulation of the intelligent substation secondary system using the secondary system topology information. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of this patent, each figure used in illustrating the embodiments will be numbered and briefly introduced below. And the following figures are only embodiments of this patent. Without making creative work, ordinary technicians in this field can also obtain other figures through the following figures.
[0015] Figure 1 , a flowchart of a method for obtaining substation secondary system topology information from SCD file parsing in a specific embodiment of this patent;
[0016] Figure 2 , a schematic diagram of the structure of the Communication element in the SCD file provided by the specific embodiment of this patent;
[0017] Figure 3 , a physical connection diagram of an intelligent electronic device provided by a specific embodiment of this patent;
[0018] Figure 4 , a schematic diagram of physical connection information of the substation secondary system provided by a specific embodiment of this patent;
[0019] Figure 5 , a schematic diagram of the switch content structure of the IED element in the SCD file provided by the specific embodiment of the present patent;
[0020] Figure 6 , a schematic diagram of the configuration information of the substation secondary system switch provided by the specific embodiment of this patent;
[0021] Figure 7 , a schematic diagram of the structure of the external signal part of the IED element in the SCD file provided by the specific embodiment of the present patent;
[0022] Figure 8 , a schematic diagram of external signal information of an intelligent electronic device provided by a specific embodiment of this patent;
[0023] Fig. 9 , a flowchart of obtaining the information flow path of the substation secondary system provided by the specific embodiment of this patent;
[0024] Fig.10 , a schematic diagram of the information flow path of the substation secondary system provided by the specific embodiment of this patent;
[0025] Fig.11 , a terminal schematic diagram provided by a specific embodiment of this patent. DETAILED DESCRIPTION
[0026] In order to make the technical features of the present technical solution clearer, the technical solution of the present invention is fully and detailedly described below in conjunction with the accompanying drawings. The described implementation methods are only examples and are not limitations of the present invention.
[0027] Embodiment 1
[0028] See also Figure 1 , showing the flowchart of the method for obtaining substation secondary system topology information from SCD file parsing provided by this implementation case;
[0029] Preferably, the Communication element of the SCD file is parsed to obtain the physical connection information of the substation secondary system;
[0030] The physical connection information of the substation secondary system includes the subnet name, subnet protocol type, the name, access point, description of the intelligent electronic device connected to the subnet, the port identifier of the intelligent electronic device, the name and port identifier of other intelligent electronic devices connected to the port of the intelligent electronic device, the interface type, etc.;
[0031] See also Figure 2 , a schematic diagram of the structure of the Communication element in the SCD file;
[0032] In the embodiment of the present invention, the Communication element of the SCD file is parsed to obtain the physical connection information of the substation secondary system, including:
[0033] According to the SubNetwork element under the Communication element, the subnet name and subnet protocol type are obtained, wherein the SubNetwork element includes the attribute name and the attribute type, wherein the attribute name is the subnet name, which is globally unique in the SCD file; and the attribute type is the subnet protocol type;
[0034] The subnet name uses a prefix to distinguish the voltage level and a suffix to distinguish the subnet type. For example, the subnet name is "XkV GOOSE_Y", the prefix "X" is the voltage level, and the suffix "_Y" represents the subnet type, such as "_A" represents A network, "_B" represents B network, "_U" or "" represents a single network, and the communication subnet types include MMS, GOOSE, and SV;
[0035] According to the ConnectedAP element under the SubNetwork element, the name of the intelligent electronic device and the intelligent electronic device access point connected to the subnet are obtained, wherein the ConnectedAP element attribute includes the attribute iedName and the attribute apName, wherein the attribute iedName is the name of the intelligent electronic device, which is globally unique in the SCD file, and the attribute apName is the access point of the intelligent electronic device;
[0036] According to the name of the intelligent electronic device, retrieve the IED element whose name attribute value in the SCD file is the name of the intelligent electronic device, and obtain the description of the intelligent electronic device according to the attribute desc of the IED element;
[0037] The physical properties of the port of the intelligent electronic device are obtained according to the multiple P sub-elements of the PhysConn sub-element of the ConnectedAP sub-element, including: obtaining the port identifier of the intelligent electronic device according to the P sub-element value of the type attribute value "Port"; obtaining the name and port identifier of other intelligent electronic devices connected to the port of the intelligent electronic device according to the P sub-element value of the type attribute value "Cable"; obtaining the interface type according to the P sub-element value of the type attribute value "Type";
[0038] Among them, the interface types include 100BaseT, FOC, and WLAN. The content format of the P sub-element value with the type attribute value of "Cable" is "smart electronic device name: port identifier_connected smart electronic device name: connected port identifier", and the name of the connected smart electronic device and the connected port identifier are obtained through its value.
[0039] In this example, the Communication element is parsed, and each SubNetwork element is parsed in turn within the Communication element. Taking a 220kV line bay in the SCD file as an example, the physical connections of the related intelligent electronic devices are as follows: Figure 3 ;
[0040] See also Figure 4 , Figure 3 The obtained physical connection information can be displayed in a table form.
[0041] Preferably, the switch content of the IED element of the SCD file is retrieved and parsed to obtain the substation secondary system switch configuration information;
[0042] See also Figure 5 ,Schematic diagram of the switch content structure of the IED element in the SCD file;
[0043] In the embodiment of the present invention, retrieving and parsing the switch content of the IED element of the SCD file to obtain the substation secondary system switch configuration information includes:
[0044] The substation secondary system switch configuration information includes switch name, switch description, static multicast information, port neighbor information, VLAN information, and port VLAN information;
[0045] The switch content is included in the IED element whose name attribute value begins with "SW" in the technical specification of the smart substation system configuration description (SCD) file;
[0046] The attributes of the IED element include an attribute name and an attribute desc, the attribute name and the attribute desc are globally unique in the SCD text and correspond to each other, the attribute name is the switch name, and the attribute desc is the switch description;
[0047] Acquiring the static multicast information according to the DOI sub-element of the logical node sub-element whose LnClass attribute value is "SSMG" of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, including:
[0048] Get the multicast sequence number according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "SMGInd";
[0049] Get the multicast MAC address according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "McastAddr";
[0050] Get the multicast VLAN ID according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "VlanId";
[0051] Get the multicast port list according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "PortBits";
[0052] Acquiring the port neighbor information according to the DOI sub-element of the logical node sub-element whose LnClass attribute value is "APNE" of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, including:
[0053] Obtain the local port identifier according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "LocPortID";
[0054] According to the DAI sub-element whose name attribute value is "setVal" and the DOI sub-element whose name attribute value is "RmtDevDesc", the remote device description is obtained, and according to the remote device description, the IED whose desc attribute value in the SCD file is the remote device description is retrieved, and the name attribute value of the IED element is the remote device name;
[0055] Obtain the remote device port identifier according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "RmtPortID";
[0056] Obtain the MAC address of the remote device according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "RmtDevMAC";
[0057] Acquiring the VLAN information according to the DOI sub-element of the logical node sub-element whose LnClass attribute value is "CSVN" of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, including:
[0058] Obtain the VLAN parameter group according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "VInd";
[0059] Get the VLAN ID according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "VlanId";
[0060] Get the VLAN port list according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "PortBits";
[0061] Obtain the Utag list according to the DAI sub-element whose name attribute value is "setVal" and the DOI sub-element whose name attribute value is "UntagBits";
[0062] Acquiring the port VLAN information according to the DOI sub-element of the logical node sub-element whose LnClass attribute value is "CPVN" of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, including:
[0063] Get the port description according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "PortDesc";
[0064] Get the port VLAN ID according to the DAI sub-element whose name attribute value is "setVal" of the DOI sub-element whose name attribute value is "PortVId";
[0065] The switch information can be displayed in a table, for example, see Figure 6 ,for Figure 2The configuration information of switch A is shown in a table.
[0066] Preferably, the IED element and the Communication element of the SCD file are parsed to obtain the external signal information of the intelligent electronic device;
[0067] The external signal information of the intelligent electronic device includes the name of the intelligent electronic device, the description of the intelligent electronic device, the name of the other intelligent electronic device from which the input comes, the input physical port identifier, the text description of the external signal, the data type, and the destination MAC address;
[0068] See also Figure 7 , schematic diagram of the external signal part of the IED element in the SCD file;
[0069] In an embodiment of the present invention, parsing the IED element and the Communication element of the SCD file to obtain the external signal information of the intelligent electronic device includes:
[0070] The attributes of the IED element include an attribute name and an attribute desc, the attribute name and the attribute desc are globally unique in the SCD text and correspond to each other, the attribute name is the name of the intelligent electronic device, and the attribute desc is the description of the intelligent electronic device;
[0071] According to the ExtRef element of the Inputs sub-element of the LN0 sub-element of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, obtain the name of the other intelligent electronic device from which the input comes and the input physical port identifier;
[0072] The attributes of the ExtRef element include the attribute iedName and the attribute intAddr, the attribute iedName is the name of the other intelligent electronic device from which the input comes, and the attribute intAddr includes the input physical port identifier;
[0073] The IED element and the Communication element are searched according to the attributes of the ExtRef element to obtain the text description, data type, and destination MAC address of the external signal, including:
[0074] The ExtRef element attributes include the above-mentioned attributes iedName and intAddr, and further include: attributes LdInst, prefix, LdInst, prefix, LnClass, LnInst, doName, and scrCBname;
[0075] According to the attributes of the ExtRef element, the IED element is searched to obtain the text description and data type of the external signal, including:
[0076] In the SCD file, search for an IED element whose name attribute value is the above-mentioned iedName attribute value, in the IED element, search for an LDevice sub-element whose inst attribute value is the above-mentioned LdInst attribute value, in the LDevice sub-element, search for a logical node sub-element whose prefix, LnClass, and inst attribute values are the above-mentioned prefix, LnClass, and LnInst attribute values in sequence, in the logical node sub-element, determine a DOI sub-element whose name attribute value is the above-mentioned doName attribute value, and obtain a text description of the external signal according to the Val sub-element value under the DAI sub-element whose name attribute value is "dU" under the DOI sub-element;
[0077] In the LN0 sub-element of the LDevice sub-element, retrieve the sampling value control block sub-element or the GSE control block sub-element whose name attribute value is the scrCBname attribute value, and obtain the data type of the external signal, including GOOSE, GSSE, and SV. The data type corresponding to the sampling value control block sub-element is SV, and the data type corresponding to the type attribute value of the GSE control block sub-element is GOOSE or GSSE.
[0078] According to the attributes of the ExtRef element, the Communication element is searched to obtain the destination MAC address of the external signal, including:
[0079] In the Communication element, search for a ConnectedAP child element whose iedName attribute value is the above iedName attribute value, and in the ConnectedAP child element, search for a GSE child element or SMV child element whose ldInst and cbName attribute values are the above LdInst and scrCBname attribute values, respectively;
[0080] Obtaining the destination MAC address of the external signal according to the P sub-element whose type attribute of the Address sub-element of the GSE sub-element or the SMV sub-element is "MAC-Address";
[0081] The external signal information of intelligent electronic devices can be displayed in a table. For example, see Figure 8 ,for Figure 2 The external signal information of the 220kV line protection unit A and the 220kV line multifunctional measurement and control device is a schematic diagram in tabular form.
[0082] Preferably, the information flow path of the substation secondary system is obtained according to the substation secondary system switch configuration information, the external signal information of the intelligent electronic device, and the physical connection information of the substation secondary system. Fig. 9 , is a flowchart to obtain the information flow path of the substation secondary system,
[0083] include:
[0084] The information flow path is a communication path from a source intelligent electronic device to a destination intelligent electronic device, including a sending port of the source intelligent electronic device, a receiving port and a sending port of an intermediate intelligent electronic device, and a receiving port of the destination intelligent electronic device.
[0085] The name of the target intelligent electronic device and the receiving port are the name of the intelligent electronic device and the input physical port identifier of the external signal information of the target intelligent electronic device;
[0086] The name and multicast MAC address of the source intelligent electronic device are the names and destination MAC addresses of other intelligent electronic devices from which the external signal information of the destination intelligent electronic device is input;
[0087] According to the receiving port of the target intelligent electronic device, the physical connection information of the substation secondary system is retrieved, the name and port identifier of the intelligent electronic device connected to the receiving port are obtained, and then the information flow path of the substation secondary system is obtained, including:
[0088] If the name of the connected intelligent electronic device is the name of the source intelligent electronic device, the source intelligent electronic device communicates with the destination intelligent electronic device in a direct connection manner, and the sending port of the source intelligent electronic device is the port identifier of the connection;
[0089] If the name of the connected intelligent electronic device is not the name of the source intelligent electronic device, the intelligent electronic device communicates through networking. When the intelligent electronic device communicates through networking, the substation secondary system switch configuration information is retrieved according to the name and multicast MAC address of the source intelligent electronic device, and the names and port identifiers of the intermediate intelligent electronic devices passed in sequence are obtained, including:
[0090] Determine the configuration information of the switch connected to the source-end intelligent electronic device by retrieving the port neighbor information whose remote device name is the name of the source-end intelligent electronic device and the static multicast information whose multicast MAC address is the multicast MAC address of the source-end intelligent electronic device, obtain the name of the switch, and determine the sending port identifier of the source-end intelligent electronic device according to the remote device port identifier of the port neighbor information;
[0091] Taking the sending port of the source intelligent electronic device as the starting point, the name of the switch connected thereto is the name of the first intermediate intelligent electronic device, and the local port identifier of the port neighbor information of the first intermediate intelligent electronic device name is the receiving port identifier of the first intermediate intelligent electronic device;
[0092] Retrieve the static multicast information of the first intermediate intelligent electronic device. When the multicast MAC address is the multicast MAC address of the source intelligent electronic device, record the port identifier in the corresponding multicast port list, retrieve the port neighbor information of the port identifier, and if the remote device name of the port neighbor information is the name of the destination intelligent electronic device, it means that the information flow path matches successfully, and the port identifier is the sending port identifier of the first intermediate intelligent electronic device; if the information flow path matches fail, determine the name and receiving port identifier of the second intermediate intelligent electronic device according to the remote device name and the remote device port identifier of the port neighbor information of the port identifier, and so on, to complete the information flow path matching.
[0093] Optionally, the information flow path after matching can be expressed in the form of [[source end intelligent electronic device name, sending port]-[intermediate intelligent electronic device, receiving port]-[intermediate intelligent electronic device, sending port]-[destination intelligent electronic device name, receiving port]], for example, see Fig.10 , showing Figure 2 The information flow path between the multifunctional measurement and control and acquisition execution unit A.
[0094] Embodiment 2
[0095] See also Fig.11 This embodiment provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-mentioned method of parsing an SCD file to obtain substation secondary system topology information.
[0096] The terminal can be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. Fig.11 It is only an example of the terminal provided in this embodiment and does not constitute a limitation on the terminal. The memory may be the hard disk or memory of the computing device, or the memory may be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device.
[0097] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.
Claims
1. A method for parsing SCD files to obtain substation secondary system topology information, characterized in that: include: Retrieve and parse the switch content of the IED element of the SCD file to obtain the substation secondary system switch configuration information; Parse the IED elements and Communication elements of the SCD file to obtain external signal information of intelligent electronic devices; Parse the Communication element of the SCD file to obtain the physical connection information of the substation secondary system; Acquire the information flow path of the substation secondary system according to the substation secondary system switch configuration information, the external signal information of the intelligent electronic device, and the substation secondary system physical connection information; The above-mentioned information flow path for obtaining the substation secondary system includes: The information flow path is a communication path from a source intelligent electronic device to a destination intelligent electronic device, including a sending port of the source intelligent electronic device, a receiving port and a sending port of an intermediate intelligent electronic device, and a receiving port of the destination intelligent electronic device. The name of the target intelligent electronic device and the receiving port are the name of the intelligent electronic device and the input physical port identifier of the external signal information of the target intelligent electronic device; The name and multicast MAC address of the source intelligent electronic device are the names and destination MAC addresses of other intelligent electronic devices from which the external signal information of the destination intelligent electronic device is input; According to the receiving port of the target intelligent electronic device, the physical connection information of the substation secondary system is retrieved, the name and port identifier of the intelligent electronic device connected to the receiving port are obtained, and then the information flow path of the substation secondary system is obtained, including: If the name of the connected intelligent electronic device is the name of the source intelligent electronic device, the source intelligent electronic device communicates with the destination intelligent electronic device in a direct connection manner, and the sending port of the source intelligent electronic device is the port identifier of the connection; If the name of the connected intelligent electronic device is not the name of the source intelligent electronic device, the intelligent electronic device communicates through networking. When the intelligent electronic device communicates through networking, the substation secondary system switch configuration information is retrieved according to the name and multicast MAC address of the source intelligent electronic device, and the names and port identifiers of the intermediate intelligent electronic devices passed in sequence are obtained, including: Determine the configuration information of the switch connected to the source-end intelligent electronic device by retrieving the port neighbor information whose remote device name is the name of the source-end intelligent electronic device and the static multicast information whose multicast MAC address is the multicast MAC address of the source-end intelligent electronic device, obtain the name of the switch, and determine the sending port identifier of the source-end intelligent electronic device according to the remote device port identifier of the port neighbor information; Taking the sending port of the source intelligent electronic device as the starting point, the name of the switch connected thereto is the name of the first intermediate intelligent electronic device, and the local port identifier of the port neighbor information of the first intermediate intelligent electronic device is the receiving port identifier of the first intermediate intelligent electronic device; Retrieve the static multicast information of the first intermediate intelligent electronic device. When the multicast MAC address is the multicast MAC address of the source intelligent electronic device, record the port identifier in the corresponding multicast port list, retrieve the port neighbor information of the port identifier, and if the remote device name of the port neighbor information is the name of the destination intelligent electronic device, it means that the information flow path matches successfully, and the port identifier is the sending port identifier of the first intermediate intelligent electronic device; if the information flow path matches fail, determine the name and receiving port identifier of the second intermediate intelligent electronic device according to the remote device name and the remote device port identifier of the port neighbor information of the port identifier, retrieve the static multicast information of the second intermediate intelligent electronic device according to the above-mentioned multicast MAC address, and retrieve the port neighbor information of the port identifier according to the port identifier in the multicast port list corresponding to the multicast MAC address, until the information flow path matches successfully.
2. The method for parsing SCD files to obtain substation secondary system topology information according to claim 1 is characterized in that: Retrieve and parse the switch content of the IED element of the SCD file to obtain the substation secondary system switch configuration information, including: The substation secondary system switch configuration information includes switch name, switch description, static multicast information, port neighbor information, VLAN information, and port VLAN information; The switch content is included in the IED element whose name attribute value begins with "SW" in the technical specification of the smart substation system configuration description (SCD) file; The attributes of the IED element include an attribute name and an attribute desc, the attribute name and the attribute desc are globally unique in the SCD text and correspond to each other, the attribute name is the switch name, and the attribute desc is the switch description; In the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, the static multicast information, the port neighbor information, the VLAN information, and the port VLAN information are obtained according to the logical node elements with different LnClass attribute values, including: According to the DOI sub-element of the logical node sub-element with the LnClass attribute value of "SSMG", the static multicast information is obtained, wherein the static multicast information includes: a multicast sequence number, a multicast MAC address, a multicast VLAN ID, and a multicast port list; According to the DOI sub-element of the logical node sub-element with the LnClass attribute value of "APNE", the port neighbor information is obtained, wherein the port neighbor information includes: a local port identifier, a remote device description, a remote device name, a remote device port identifier, and a remote device MAC address; According to the DOI sub-element of the logical node sub-element with the LnClass attribute value of "CSVN", the VLAN information is obtained, wherein the VLAN information includes: a VLAN parameter group number, a VLAN ID, a VLAN port list, and a Utag list; According to the DOI sub-element of the logical node sub-element with the LnClass attribute value of "CPVN", the port VLAN information is obtained, and the port VLAN information includes: port description and port VLAN ID.
3. The method for parsing SCD files to obtain substation secondary system topology information according to claim 1 is characterized in that: Parse the IED elements and Communication elements of the SCD file to obtain external signal information of the intelligent electronic device, including: The attributes of the IED element include an attribute name and an attribute desc, the attribute name and the attribute desc are globally unique in the SCD text and correspond to each other, the attribute name is the name of the intelligent electronic device, and the attribute desc is the description of the intelligent electronic device; According to the ExtRef element of the Inputs sub-element of the LN0 sub-element of the LDevice sub-element of the intelligent electronic device server sub-element of the access point sub-element of the IED element, obtain the name of the other intelligent electronic device from which the input comes and the input physical port identifier; The attributes of the ExtRef element include the attribute iedName and the attribute intAddr, the attribute iedName is the name of the other intelligent electronic device from which the input comes, and the attribute intAddr includes the input physical port identifier; The IED element and the Communication element are searched according to the attributes of the ExtRef element to obtain the text description, data type, and destination MAC address of the external signal.
4. According to the method for parsing the SCD file to obtain the substation secondary system topology information according to claim 3, it is characterized in that: The IED element and the Communication element are searched according to the attributes of the ExtRef element to obtain the text description, data type, and destination MAC address of the external signal, including: The ExtRef element attributes include the above-mentioned attributes iedName and intAddr, and further include: attributes LdInst, prefix, LnClass, LnInst, doName, and scrCBname; According to the attributes of the ExtRef element, the IED element is searched to obtain the text description and data type of the external signal, including: In the SCD file, search for an IED element whose name attribute value is the above-mentioned iedName attribute value, in the IED element, search for an LDevice sub-element whose inst attribute value is the above-mentioned LdInst attribute value, in the LDevice sub-element, search for a logical node sub-element whose prefix, LnClass, and inst attribute values are the above-mentioned prefix, LnClass, and LnInst attribute values in sequence, in the logical node sub-element, determine a DOI sub-element whose name attribute value is the above-mentioned doName attribute value, and obtain a text description of the external signal according to the Val sub-element value under the DAI sub-element whose name attribute value is "dU" under the DOI sub-element; In the LN0 sub-element of the LDevice sub-element, retrieve the sampling value control block sub-element or the GSE control block sub-element whose name attribute value is the scrCBname attribute value, and obtain the data type of the external signal, including GOOSE, GSSE, and SV. The data type corresponding to the sampling value control block sub-element is SV, and the data type corresponding to the type attribute value of the GSE control block sub-element is GOOSE or GSSE. According to the attributes of the ExtRef element, the Communication element is searched to obtain the destination MAC address of the external signal, including: In the Communication element, search for a ConnectedAP child element whose iedName attribute value is the above iedName attribute value, and in the ConnectedAP child element, search for a GSE child element or SMV child element whose ldInst and cbName attribute values are the above LdInst and scrCBname attribute values, respectively; According to the P sub-element whose type attribute of the Address sub-element of the GSE sub-element or the SMV sub-element is "MAC-Address", the destination MAC address of the external signal is obtained.
5. The method for parsing SCD files to obtain substation secondary system topology information according to claim 1, characterized in that: Parse the Communication element of the SCD file to obtain the physical connection information of the substation secondary system, including: According to the SubNetwork element under the Communication element, the subnet name and subnet protocol type are obtained, wherein the SubNetwork element includes the attribute name and the attribute type, wherein the attribute name is the subnet name, which is globally unique in the SCD file; and the attribute type is the subnet protocol type; According to the ConnectedAP element under the SubNetwork element, the name of the intelligent electronic device and the intelligent electronic device access point connected to the subnet are obtained, wherein the ConnectedAP element attribute includes the attribute iedName and the attribute apName, wherein the attribute iedName is the name of the intelligent electronic device, which is globally unique in the SCD file, and the attribute apName is the access point of the intelligent electronic device; According to the name of the intelligent electronic device, retrieve the IED element whose name attribute value in the SCD file is the name of the intelligent electronic device, and obtain the description of the intelligent electronic device according to the attribute desc of the IED element; The physical properties of the port of the intelligent electronic device are obtained according to multiple P sub-elements of the PhysConn sub-element of the ConnectedAP sub-element, including: obtaining the port identifier of the intelligent electronic device according to the P sub-element value of the type attribute value "Port"; obtaining the name and port identifier of other intelligent electronic devices connected to the port of the intelligent electronic device according to the P sub-element value of the type attribute value "Cable"; obtaining the interface type according to the P sub-element value of the type attribute value "Type".
6. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes the computer program to implement the method for parsing an SCD file to obtain substation secondary system topology information as described in any one of claims 1 to 5 above.
