Method and device for generating ied topology structure of smart substation
By parsing the configuration file of the entire intelligent substation system, unified IED topology data is generated, which solves the problems of inefficiency and errors caused by the dispersion of IED topology information, and realizes efficient and accurate data generation and updating.
Patent Information
- Application Number
- CN202311840063.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-12-27
AI Technical Summary
In smart substations, IED topology information is scattered across various files, resulting in non-reusability, low efficiency, and susceptibility to errors, as well as information asymmetry during configuration changes.
By creating IED topology structure tree objects, bay connection relationship linked list objects, bay connection relationship list objects, and IED description data objects, the system configuration file of the entire intelligent substation is parsed to generate unified IED topology structure data, which is automatically updated when the configuration changes.
It enables automated generation of IED topology data based on a unified standard, improving generation efficiency and accuracy, ensuring data can be updated quickly when configuration changes occur, and enhancing data symmetry.
Smart Images

Figure CN118172035B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of intelligent substation operation and maintenance, and particularly relates to an IED topology structure generation method and device of an intelligent substation. BACKGROUND
[0002] An intelligent substation is a substation based on unified standards and unified communication models. In the intelligent substation, a relay protection device is changed from a traditional microcomputer protection to an IED (Intelligent Electronic Device), and the IED has more digitalization, networking and intelligentization capabilities, improves the device automation level, the device intelligentization level and the reliability of protection, and develops more in the direction of configuration and customization, and is a cornerstone of a digital power grid and an intelligent power grid. In the intelligent substation, it is necessary to know the physical topology structure relationship between IEDs, which is the basis of many advanced applications, such as virtual terminal loop automatic checking, network parameter configuration, protection setting, etc.
[0003] At present, the information of the IED topology structure in the intelligent substation is scattered in various files and systems, such as a primary main wiring diagram, a secondary device configuration relationship table, an SSD file (a full-station system configuration file) and a bay configuration table, and when the IED topology structure needs to be used, information is extracted from the above various files by manual input into a system. Each time a system needs to be used, it needs to be input once, cannot be reused, is low in efficiency, is prone to errors, and is prone to information asymmetry due to configuration changes, thereby causing the IED topology structure stored and used in different application systems to be inconsistent. SUMMARY
[0004] The embodiments of the application provide an IED topology structure generation method and device of an intelligent substation, which can solve the technical problems of the current IED topology structure generation, such as unavailability of reuse, low efficiency, errors, information asymmetry due to configuration changes, etc.
[0005] In a first aspect, the embodiments of the application provide an IED topology structure generation method of an intelligent substation, which comprises the following steps.
[0006] creating an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object and an IED description data object;
[0007] analyzing a full-station system configuration file of the intelligent substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, to obtain an analysis result;
[0008] outputting IED topology structure data of the intelligent substation according to the analysis result.
[0009] The user sends a trigger instruction through the terminal. After receiving the trigger instruction sent by the terminal, the server 104 creates an IED topology structure tree object, an interval connection relationship linked list object, an interval connection relationship list object, and an IED description data object. Based on the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object, the server 104 parses the full-station system configuration file of the smart substation to obtain a parsing result. According to the parsing result, the server 104 outputs the IED topology structure data of the smart substation. After generating the IED topology structure data, the server 104 sends the IED topology structure data to the application end 105. The application end 105 performs virtual terminal loop automatic checking, network parameter configuration, protection setting value setting, and the like according to the IED topology structure data. Thus, the IED topology structure data is generated based on unified standard automation, the generation efficiency is improved, the accuracy of the IED topology structure data is improved, and the IED topology structure data can be reused. When the configuration is changed, the IED topology structure data can be automatically updated quickly, which is beneficial to improving the symmetry of the IED topology structure data.
[0010] In a second aspect, an embodiment of the present application provides an IED topology structure generation device of a smart substation, including:
[0011] An object creation module is configured to create an IED topology structure tree object, an interval connection relationship linked list object, an interval connection relationship list object, and an IED description data object.
[0012] A parsing module is configured to parse a full-station system configuration file of a smart substation based on the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object to obtain a parsing result.
[0013] A result output module is configured to output IED topology structure data of the smart substation according to the parsing result.
[0014] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the IED topology structure generation method of the smart substation in any one of the first aspect is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, including: the computer readable storage medium stores a computer program, and when the processor executes the computer program, the IED topology structure generation method of the smart substation in any one of the first aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer device, causes the computer device to execute the intelligent substation IED topology structure generation method in any one of the first aspect.
[0017] It can be understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description in the first aspect, which will not be repeated here.
[0018] Compared with the prior art, the beneficial effects of the embodiments of the present application are:
[0019] The present application creates an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object and an IED description data object; based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, the whole-station system configuration file of the intelligent substation is parsed to obtain a parsing result; according to the parsing result, the IED topology structure data of the intelligent substation is output. Thus, the IED topology structure data is generated based on the unified standard automation, the generation efficiency is improved, the accuracy of the IED topology structure data is improved, and the IED topology structure data can be reused, which is beneficial to improve the symmetry of the IED topology structure data. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0021] Figure 1 is an application scenario diagram provided by an embodiment of the present application;
[0022] Figure 2 is a flowchart of an intelligent substation IED topology structure generation method provided by an embodiment of the present application;
[0023] Figure 3 is a flowchart of an intelligent substation IED topology structure generation method provided by another embodiment of the present application;
[0024] Figure 4 is a structure diagram of an intelligent substation IED topology structure generation device provided by an embodiment of the present application;
[0025] Figure 5is a structural schematic diagram of an IED topology generation device of a smart substation provided by another embodiment of the present application;
[0026] Figure 6 is a structural schematic diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the application. However, it will be apparent to those skilled in the art that the application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the application with unnecessary detail.
[0028] It should be understood that the term "includes" when used in the specification and the appended claims herein, specifies the presence of stated features, integers, steps, operations, elements, and / or components but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0029] It should also be understood that the term "and / or" when used in the specification and the appended claims herein, means any one or more of the associated listed items or a combination thereof.
[0030] As used in the description of the application and the appended claims herein, the term "if" can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted as meaning "upon determining" or "in response to determining" or "upon detecting [a described condition or event]" or "in response to detecting [a described condition or event]", depending on the context.
[0031] In addition, in the description of the application and the appended claims herein, the terms "first", "second", "third", etc. are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0032] Reference within the specification of this application to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places within specified
[0033] The IED topology structure generation method of the intelligent substation provided by the embodiments of the application can be applied to the application environment as shown in Figure 1 The application environment includes a terminal (such as a 101 mobile terminal, a 102 notebook computer, and a 103 desktop computer in FIG. 1), a server 104, and an application end 105. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers. The application end 105 (also referred to as an application system or an application server) can be implemented by an independent server or a server cluster composed of multiple servers, and can also be various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
[0034] Optionally, a user sends a trigger instruction through a terminal. After receiving the trigger instruction sent by the terminal, the server 104 creates an IED topology structure tree object, an interval connection relationship linked list object, an interval connection relationship list object, and an IED description data object, parses a full-station system configuration file of the intelligent substation based on the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object, obtains a parsing result, and outputs IED topology structure data of the intelligent substation according to the parsing result. After generating the IED topology structure data, the server 104 sends the IED topology structure data to the application end 105. The application end 105 performs virtual terminal loop automatic checking, network parameter configuration, protection setting value setting, and the like according to the IED topology structure data. Thus, the IED topology structure data is generated based on unified standard automation, the generation efficiency is improved, the accuracy of the IED topology structure data is improved, the IED topology structure data can be reused, the IED topology structure data can be automatically updated when configuration changes, and the symmetry of the IED topology structure data is improved.
[0035] Optionally, the user sends a triggering instruction through the terminal. The terminal obtains the full-station system configuration file of the smart substation from the server 104 based on the triggering instruction. The terminal is configured to create an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object, and an IED description data object, parse the full-station system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object, obtain a parsing result, and output the IED topology structure data of the smart substation according to the parsing result.
[0036] Figure 2 A schematic flowchart of the method for generating the IED topology structure of the smart substation is shown, which is illustrative but not limiting.
[0037] S101: Create an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object, and an IED description data object.
[0038] Specifically, when parsing the full-station system configuration file (hereinafter referred to as SCD file) of the smart substation, data needs to be stored in an object. Therefore, an instance object needs to be created first. The created instance object includes an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object, and an IED description data object.
[0039] It can be understood that the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object are all initialized as empty values when created.
[0040] The IED topology structure tree object is an instance object corresponding to the topology relationship tree of the IED. The topology relationship tree is also referred to as a file tree. The bay connection relationship linked list object is an instance object corresponding to the bay connection relationship linked list. The bay connection relationship list object is an instance object corresponding to the bay connection relationship list. The IED description data object is an instance object corresponding to the IED description data.
[0041] S102: Parse the full-station system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object, and obtain a parsing result.
[0042] Specifically, a parser is created based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object. The full-station system configuration file of the smart substation is parsed based on the parser, and the parsed data is taken as the parsing result.
[0043] It can be understood that if the substation node exists in the whole-station system configuration file of the smart substation, the parsing result describes the relationship of the IED topology structure; if the substation node does not exist in the whole-station system configuration file of the smart substation, the parsing result is null or a preset value.
[0044] The substation node represents the node corresponding to the substation.
[0045] Optionally, the step of parsing the whole-station system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object to obtain a parsing result comprises: judging whether the keyword corresponding to the substation node exists in the whole-station system configuration file of the smart substation, if so, parsing the whole-station system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object to obtain the parsing result, if not, setting the parsing result as null or a preset value.
[0046] S103: outputting the IED topology structure data of the smart substation according to the parsing result.
[0047] Specifically, performing XML (Extensible Markup Language) format conversion on the parsing result, and taking the converted data as the IED topology structure data of the smart substation. The IED topology structure data describes the relationship of the IED topology structure of the smart substation.
[0048] It can be understood that by generating the IED topology structure data of the smart substation based on the SCD file of the smart substation, and importing the IED topology structure data into each application system, the relationship of the IED topology structure can be acquired, updated and synchronized, the efficiency is improved, the maintenance and use are facilitated, and the correctness of the relationship of the IED topology structure is ensured.
[0049] The embodiment realizes the generation of the IED topology structure data based on the unified standard automation, improves the generation efficiency, improves the accuracy of the IED topology structure data, and the IED topology structure data can be reused, so that the IED topology structure data can be automatically updated quickly when the configuration is changed, which is beneficial to improving the symmetry of the IED topology structure data.
[0050] In one embodiment, the IED topology tree object is an instance object for describing a voltage level / bay / IED identifier, a voltage level / bay / IED name, voltage level / bay / IED description data, a leaf node marker, a display node marker, and associated child node data.
[0051] The bay connection relationship list object is an instance object for describing associated bay identifiers.
[0052] The bay connection relationship list object is an instance object for describing associated bay identifiers.
[0053] The IED description data object is an instance object for describing IED description data and an IED name.
[0054] In the IED topology tree object, the corresponding keywords of the voltage level / bay / IED identifier are id, the corresponding keywords of the voltage level / bay / IED name are title, the corresponding keywords of the voltage level / bay / IED description data are key, the corresponding keywords of the leaf node marker are isLeaf, the corresponding keywords of the display node marker are disabled, and the corresponding keywords of the associated child node data are children.
[0055] The voltage level / bay / IED identifier is a voltage level identifier or a bay identifier or an IED identifier. The voltage level / bay / IED name is a voltage level name or a bay name or an IED name. The voltage level / bay / IED description data is voltage level description data or bay description data or IED description data.
[0056] The field value corresponding to the voltage level / bay / IED identifier is a string. The field value corresponding to the voltage level / bay / IED name is a string. The field value corresponding to the voltage level / bay / IED description data is a string. The field value corresponding to the leaf node marker is a Boolean type, indicating whether it is a leaf node (without child nodes). The field value corresponding to the display node marker is a Boolean type, indicating whether to display the node. The field value corresponding to the associated child node data identifies the child node data associated with the voltage level / bay / IED.
[0057] In the bay connection relationship list object, the corresponding keywords of the bay identifier are key, and the corresponding keywords of the associated bay identifier list are connect. The field value corresponding to the bay identifier is a string, used to describe the unique identifier of the bay. The field value corresponding to the associated bay identifier list is a list, used to describe the bay identifier corresponding to the field value of other bays associated with the bay.
[0058] In the interval connection relationship list object, a corresponding keyword of the associated interval identifier is key, and a corresponding field value of the associated interval identifier is a string, used for describing field values of interval identifiers of other intervals having a connection relationship with the interval.
[0059] In the IED description data object, a corresponding keyword of IED description data is desc, and a corresponding keyword of an IED name is Name. A corresponding field value of the IED description data is a string, used for recording IED description data. A corresponding field value of the IED name is a string, used for describing an IED name.
[0060] The embodiment describes detailed information of the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object, provides a basis for establishing a corresponding data structure to represent a topology relationship of an IED, and associates relationships among voltage levels, intervals, and IEDs.
[0061] In one embodiment, the step of parsing a full-station system configuration file of a smart substation based on the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object to obtain a parsing result includes:
[0062] S1011: A SAXHandelToFileTree class is created, and the SAXHandelToFileTree class inherits a DefaultHandler class.
[0063] The SAXHandelToFileTree class is a class in java language (an object-oriented programming language) and is an XML file parsing class.
[0064] The DefaultHandler class is a class in java language and is a class that is inherited by default by an XML file parsing class.
[0065] S1012: Target rewriting data corresponding to the SAXHandelToFileTree class is acquired based on the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object.
[0066] Specifically, the user inputs target rewriting data corresponding to the SAXHandelToFileTree class based on the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object. That is, the target rewriting data is data obtained by rewriting a method in the SAXHandelToFileTree class based on the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object.
[0067] S1013: save the target rewriting data and the SAXHandelToFileTree class as a SAX parser;
[0068] Specifically, the SAXHandelToFileTree class is replaced by using the target rewriting data, and the replaced SAXHandelToFileTree class is used as a SAX parser. Thus, the SAXHandelToFileTree class after rewriting is used as a SAX (simple API for XML) parser.
[0069] S1014: based on the SAX parser, the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, parse the whole-station system configuration file of the smart substation to obtain the parsing result.
[0070] Specifically, based on the SAX parser, the whole-station system configuration file of the smart substation is parsed, and the parsed data is added to the instance object (that is, the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object). Then, a file tree is constructed through the added instance object, and a JSON format file corresponding to the file tree is used as the parsing result.
[0071] The embodiment first generates a SAX parser based on the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, and then parses the whole-station system configuration file of the smart substation by using the SAX parser. Thus, the IED topology structure data is generated based on unified standard automation, the generation efficiency is improved, and the accuracy of the parsing result is improved.
[0072] In one embodiment, the target rewriting data includes: a start parsing node method rewriting data and an end parsing node method rewriting data.
[0073] The start parsing node method rewrites data that describes the main logic of parsing the total station system configuration file and the process of storing the parsed data into the corresponding data structure.
[0074] The end parsing node method rewrites data that describes the logic of adding the captured data structure to the instance object and adding the instance object to the file tree.
[0075] The start parsing node method rewrites data that is obtained by rewriting the startElement() method in the SAXHandelToFileTree class. In the method, the rewritten content includes: writing the main logic of parsing the SCD file, storing the parsed data into the corresponding data structure, using the switch statement to process different XML elements, and setting a custom handler as needed.
[0076] The start parsing node method rewrites data that is obtained by rewriting the endElement() method in the SAXHandelToFileTree class. In the method, the rewritten content includes: writing the logic of adding the captured data structure to the file tree. When an end tag is captured, the data contained in the element (i.e., the end tag) is added to the corresponding instance object (i.e., the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object) and the instance object is added to the file tree.
[0077] The startElement() method is a start parsing node method.
[0078] The endElement() method is an end parsing node method.
[0079] The start parsing node method rewrites data for the parsing of the SCD file and the storage of the parsed data, and the end parsing node method rewrites data for the update of the instance object and the construction of the file tree.
[0080] In one embodiment, the step of outputting the IED topology structure data of the smart substation according to the parsing result includes:
[0081] S1031: converting the parsing result from JSON format to XML format to obtain the IED topology structure data of the smart substation.
[0082] JSON, JavaScript Object Notation, JS object notation.
[0083] The embodiment has the advantages that the IED topology structure data is output in XML format, and interface display is performed based on the IED topology structure data and the IED topology structure data is updated to various application systems.
[0084] Please refer to Figure 3 In one embodiment, after the step of outputting the IED topology structure data of the smart substation according to the analysis result, the method further comprises:
[0085] S1041: performing interface display on the IED topology structure data to obtain an IED topology structure interface.
[0086] Specifically, the IED topology structure data is displayed based on a preset total interface display rule, and the displayed interface is taken as the IED topology structure interface.
[0087] Optionally, the preset total interface display rule is that a first area of the IED topology structure interface displays a configuration list, and the configuration list is divided into substation, voltage level, interval, and IED; and a second area of the IED topology structure interface is a display area. When any one of the substation, the voltage level, the interval, and the IED is selected in the first area, details are displayed in the second area.
[0088] S1042: obtaining a configuration instruction based on the IED topology structure interface.
[0089] Specifically, the configuration instruction can be triggered by a user based on a button in the IED topology structure interface, or the configuration instruction can be automatically triggered when the user clicks any one of the substation, the voltage level, the interval, and the IED in the first area.
[0090] The information carried by the configuration instruction at least includes an identifier of any one of the substation, the voltage level, the interval, and the IED clicked by the user in the first area, such as a substation identifier, a voltage level identifier, an interval identifier, and an IED identifier.
[0091] S1043: performing interface display and configuration data obtaining based on the configuration instruction, and updating the IED topology structure data according to the configuration data.
[0092] Specifically, interface display is performed based on the configuration instruction; configuration data is input based on the interface; and the configuration data in the interface is updated to the IED topology structure data, so that the updating of the IED topology structure data is realized.
[0093] The embodiment updates the IED topology structure data by performing interface display and obtaining configuration data update of the IED topology structure data based on the IED topology structure data, meets the personalized modification demand of the user, and is also beneficial to the user to audit and correct the IED topology structure data automatically generated.
[0094] In one embodiment, the step of performing interface display and obtaining configuration data based on the configuration instruction, and updating the IED topology structure data according to the configuration data comprises:
[0095] S10431: If the operation identifier in the configuration instruction is a configuration voltage level operation, interface display is performed according to the configuration instruction to obtain a first interface, a voltage level attribute configuration value is obtained according to the first interface, a first instance object is determined according to the voltage level attribute configuration value as the configuration data, and the IED topology structure data is updated according to the configuration data, wherein the first instance object is used to describe a voltage level identifier, voltage level key information, voltage level description data and a voltage level associated interval array.
[0096] The configuration voltage level operation comprises an operation of adding a voltage level or an operation of modifying a voltage level.
[0097] The voltage level attribute configuration value is a configuration value of a voltage level attribute. The voltage level attribute comprises a voltage level identifier and voltage level description data. The voltage level key information is a specific numerical value calculated. The voltage level description data is data used for front-end display. The voltage level identifier is a unique identifier of the voltage level.
[0098] Specifically, when the user clicks on a substation in the first area of the IED topology structure interface, the configuration instruction carries a substation identifier, the second area of the IED topology structure interface is updated according to the substation identifier to obtain a first interface, and the user can perform the operation of configuring the voltage level on the second area of the first interface. The user can select the required voltage level identifier and voltage level description data, and store these information in an instance object (fromObj), and then take the instance object as the first instance object.
[0099] Specifically, the structure of the first instance object comprises the following fields:
[0100] -id (a keyword corresponding to the voltage level identifier): used to store the data of the voltage level;
[0101] -key (a keyword corresponding to the voltage level key information): used to identify the key information of the voltage level;
[0102] -title (a keyword corresponding to the voltage level description data): used to store the data of the voltage level description.
[0103] children (key corresponding to the voltage level associated with the interval array): store the interval associated with this voltage level, here the children field is set to an empty array, indicating that the voltage level is temporarily not associated with the interval.
[0104] After the user selects the voltage level identifier and voltage level description data, the user can click the confirmation button to save the first instance object in the tree node (that is, the IED topology data).
[0105] For example, the field value corresponding to the voltage level identifier is 220KV, and the field value corresponding to the voltage level description data is 220KV voltage level.
[0106] S10432: If the operation identifier in the configuration instruction is a configuration interval operation, perform interface display according to the configuration instruction to obtain a second interface, obtain an interval attribute configuration value, a voltage level associated with the interval attribute configuration value based on the IED topology data according to the second interface, determine a second instance object based on the interval attribute configuration value and the voltage level associated with the interval attribute configuration value, as the configuration data, store the configuration data in the voltage level associated interval array corresponding to the voltage level in the IED topology data, wherein the interval attribute configuration value includes: interval type, interval description and interval name, the second instance object is used to describe first identifier, key information of voltage level to which the interval belongs, title determined based on interval type and interval description, associated IED array, the first identifier is an identifier generated based on voltage level key information, interval name and preset mark;
[0107] The configuration interval operation includes: an operation of adding an interval or an operation of modifying an interval.
[0108] The interval attribute configuration value is the configuration value of the interval attribute. The interval attribute includes: interval type, interval description and interval name.
[0109] Specifically, when the user clicks a certain voltage level in the first area of the IED topology interface, the configuration instruction carries a voltage level identifier at this time, and the second area of the IED topology interface is updated according to the voltage level identifier to obtain a second interface; then the user can perform a configuration interval operation on the second area of the second interface. At the same time, the voltage level key information (key corresponding to the field value) corresponding to the voltage level needs to be obtained.
[0110] The user can select an interval type on the second region of the second interface, and based on the IED topology data, the related interval name is automatically supplemented according to the selected interval type. When adding an interval, the field value corresponding to the key in the IED topology data is searched first to find the voltage level associated with the interval. Then, based on the configured interval attribute, an instance object (fromObj) is created, which is used as a second instance object, and the second instance object is stored in the interval array associated with the voltage level of the interval.
[0111] Specifically, the structure of the second instance object includes the following fields:
[0112] -id (the key corresponding to the first identifier): using the key value of the voltage level, the interval name, and "C2" as the identifier.
[0113] -key (the key corresponding to the key information of the voltage level to which the interval belongs): storing the key value of the voltage level to which the current interval belongs.
[0114] -title (the key corresponding to the title determined based on the interval type and the interval description): using the interval type and the interval description as the title.
[0115] -children (the key corresponding to the associated IED array): setting the children field to an empty array, indicating that the interval temporarily has no associated IED.
[0116] Through the above steps, a custom interval can be added in the second region of the second interface. After clicking Confirm, the interval object (that is, the second instance object) is stored in the interval array associated with the interval object in the voltage level of the IED topology data.
[0117] S10433: If the operation identifier in the configuration instruction is an IED configuration operation, the interface is displayed according to the configuration instruction to obtain a third interface, based on the IED topology data, the IED attribute configuration value is obtained from the third interface, the third instance object is determined according to the IED attribute configuration value as the configuration data, and the configuration data is stored in the associated IED array corresponding to the first interval identifier in the configuration instruction in the IED topology data;
[0118] The IED configuration operation includes an operation of adding an IED or an operation of modifying an IED.
[0119] The IED attribute configuration value is the configuration value of the IED attribute. The IED attribute includes an IED name and an IED description.
[0120] Specifically, when a user clicks on a certain interval in the first area of the IED topology interface, the configuration instruction carries an interval identifier, and the second area of the IED topology interface is updated according to the interval identifier to obtain a third interface; the user can perform an operation of configuring the IED on the second area of the third interface. At the same time, interval key information of the interval needs to be obtained. The interval key information is a specific numerical value calculated.
[0121] The user can select an IED description, and automatically obtain a related IED name from the IED topology data according to the selected IED description. When the IED name is added, the IED topology data is searched first, if a same node with a same field value corresponding to the previously obtained interval key information is found, an instance object (fromObj) is created based on the IED name and the IED description, the instance object is taken as a third instance object, and the third instance object is stored in an associated IED array of the interval in the IED topology data.
[0122] Specifically, the structure of the third instance object includes the following fields:
[0123] -id (a keyword corresponding to the IED name): used for storing the name of the IED;
[0124] -key (a keyword corresponding to the IED key information): used for identifying the key information of the IED;
[0125] -title (a keyword corresponding to the IED description): used for storing the description of the IED;
[0126] -isLeaf (a keyword corresponding to a leaf node marker): set to true, indicating that the node is a leaf node, i.e., no child node;
[0127] -disabled (a keyword corresponding to a display node marker): set to true, indicating that the node is not selectable.
[0128] Through the above steps, a custom IED can be added in the second area of the right third interface. After clicking confirmation, the third instance object is stored under the associated IED array of the associated interval.
[0129] S10434: If the operation identifier in the configuration instruction is a configuration interval connection relationship operation, an interface is displayed according to the configuration instruction to obtain a fourth interface, interval connection relationship attribute configuration values are obtained from the fourth interface based on the IED topology structure data, relationship objects are determined according to the interval connection relationship attribute configuration values as the configuration data, and the configuration data is stored in an associated interval identifier list corresponding to the second interval identifier in the configuration instruction in the IED topology structure data.
[0130] The configuration interval connection relationship operation includes an operation of adding an interval connection relationship or an operation of modifying an interval connection relationship.
[0131] The interval connection relationship attribute configuration value is a configuration value of an interval connection relationship attribute. The interval connection relationship attribute includes an interval name of a connected interval and an interval description of the connected interval.
[0132] When a user clicks a certain interval in the first area of the IED topology structure interface, the configuration instruction carries an interval identifier, the second area of the IED topology structure interface is updated according to the interval identifier to obtain a fourth interface, and the operation of configuring an interval connection relationship can be performed on the second area of the fourth interface. Meanwhile, interval key information of the interval needs to be obtained. All intervals can be searched from the IED topology structure data, and the intervals are associated with the current interval.
[0133] When an interval relationship is added, a temporary relationship object (temp object) can be established. The relationship object includes two fields: key and connect. The value of the key is a field value corresponding to the key of the current interval, and the value of the connect is an array. Each element in the connect is connection information of an interval. The connection information includes an interval name of a connected interval.
[0134] When the user connects the current interval to another interval, the associated interval name is added to the connect of the temp object. In this way, the connection relationship between the intervals can be established.
[0135] Through the above steps, the connection relationship between the intervals can be configured in the second area of the fourth interface. After clicking confirmation, the relationship object is stored in the associated interval identifier list of the related interval in the IED topology structure data.
[0136] The embodiment updates the IED topology structure data based on the configuration instruction to obtain the configuration data input by the user, meets the individual modification requirements of the user, and is also beneficial to the user to review and correct the IED topology structure data automatically generated.
[0137] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0138] The IED topology structure generation method of the smart substation corresponding to the embodiments described above, Figure 5 The structure block diagram of the IED topology structure generation device of the smart substation provided by the embodiments of the present application is shown, and only the part related to the embodiments of the present application is shown for the convenience of description.
[0139] Referring to Figure 4 The device comprises:
[0140] The object creation module 801 is configured to create an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object, and an IED description data object.
[0141] The parsing module 802 is configured to parse a full-station system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object, to obtain a parsing result.
[0142] The result output module 803 is configured to output the IED topology structure data of the smart substation according to the parsing result.
[0143] The embodiments realize the generation of the IED topology structure data based on the unified standard automation, improve the generation efficiency, improve the accuracy of the IED topology structure data, and the IED topology structure data can be reused, and the IED topology structure data can be automatically updated quickly when the configuration is changed, which is beneficial to improve the symmetry of the IED topology structure data.
[0144] In one embodiment, the IED topology structure tree object in the object creation module 801 is an instance object for describing voltage level / bay / IED identification, voltage level / bay / IED name, voltage level / bay / IED description data, leaf node mark, display node mark, and associated child node data.
[0145] The bay connection relationship linked list object is an instance object for describing bay identification and associated bay identification list.
[0146] The bay connection relationship list object is an instance object for describing associated bay identification.
[0147] The IED description data object is an instance object for describing IED description data and IED name.
[0148] In one embodiment, the step of parsing the whole-station system configuration file of the smart substation based on the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object in the object creation module 801 to obtain a parsing result comprises:
[0149] creating a SAXHandelToFileTree class and making the SAXHandelToFileTree class inherit a DefaultHandler class;
[0150] based on the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, obtaining target rewriting data corresponding to the SAXHandelToFileTree class;
[0151] saving the target rewriting data and the SAXHandelToFileTree class as a SAX parser;
[0152] based on the SAX parser, the IED topology tree object, the bay connection relationship linked list object, the bay connection relationship list object and the IED description data object, parsing the whole-station system configuration file of the smart substation to obtain the parsing result.
[0153] In one embodiment, the target rewriting data in the object creation module 801 comprises: start parsing node method rewriting data and end parsing node method rewriting data;
[0154] The start parsing node method rewriting data describes a processing program for parsing the main logic of the whole-station system configuration file and storing the parsed data into a corresponding data structure;
[0155] The end parsing node method rewriting data describes a logic for adding a captured data structure to an instance object and adding the instance object to a file tree.
[0156] In one embodiment, the step of outputting the IED topology data of the smart substation according to the parsing result in the result output module 803 comprises:
[0157] performing JSON format to XML format conversion on the parsing result to obtain the IED topology data of the smart substation.
[0158] Please refer to Figure 5 In one embodiment, the apparatus further comprises a configuration module 804, which is configured to:
[0159] The analysis results are displayed on a screen to obtain the IED topology structure interface;
[0160] Configuration instructions are obtained based on the IED topology interface;
[0161] The interface is displayed and configuration data is obtained based on the configuration instructions, and the parsing results are updated according to the configuration data.
[0162] In one embodiment, the step of displaying the interface and acquiring configuration data based on the configuration instructions in the configuration module 804, and updating the parsing result according to the configuration data, includes:
[0163] If the operation identifier in the configuration instruction is a voltage level configuration operation, then the interface is displayed according to the configuration instruction to obtain a first interface, the voltage level attribute configuration value is obtained according to the first interface, the first instance object is determined according to the voltage level attribute configuration value as the configuration data, and the parsing result is updated according to the configuration data. The first instance object is used to describe the voltage level identifier, voltage level key information, voltage level description data and voltage level associated interval array.
[0164] If the operation identifier in the configuration instruction is a configuration interval operation, then the interface is displayed according to the configuration instruction to obtain a second interface. Based on the parsing result, the interval attribute configuration value and the voltage level associated with the interval attribute configuration value are obtained according to the second interface. The second instance object is determined according to the interval attribute configuration value and the voltage level associated with the interval attribute configuration value as the configuration data. The configuration data is stored in the voltage level associated interval array corresponding to the voltage level associated with the interval attribute configuration value in the parsing result. The interval attribute configuration value includes: interval type, interval description and interval name. The second instance object is used to describe the first identifier, key information of the voltage level to which the interval belongs, the title determined based on the interval type and interval description, and the associated IED array. The first identifier is an identifier generated based on the voltage level key information, the interval name and the preset mark.
[0165] If the operation identifier in the configuration instruction is a configuration IED operation, then the interface is displayed according to the configuration instruction to obtain a third interface. Based on the parsing result, the IED attribute configuration value is obtained according to the third interface. The third instance object is determined according to the IED attribute configuration value as the configuration data. The configuration data is stored in the associated IED array in the parsing result that corresponds to the first interval identifier in the configuration instruction.
[0166] If the operation identifier in the configuration instruction is a configuration interval connection relationship operation, then the interface is displayed according to the configuration instruction to obtain a fourth interface. Based on the parsing result, the interval connection relationship attribute configuration value is obtained according to the fourth interface. The relationship object is determined according to the interval connection relationship attribute configuration value and used as the configuration data. The configuration data is stored in the associated interval identifier list corresponding to the second interval identifier in the configuration instruction in the parsing result.
[0167] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0168] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0169] Please see Figure 6 This application also provides a computer device, 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 in any of the above method embodiments.
[0170] This embodiment realizes the automated generation of IED topology data based on a unified standard, which improves the generation efficiency and accuracy of IED topology data. Moreover, the IED topology data can be reused and can be quickly and automatically updated when the configuration changes, which helps to improve the symmetry of IED topology data.
[0171] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0172] This embodiment realizes the automated generation of IED topology data based on a unified standard, which improves the generation efficiency and accuracy of IED topology data. Moreover, the IED topology data can be reused and can be quickly and automatically updated when the configuration changes, which helps to improve the symmetry of IED topology data.
[0173] This application provides a computer program product that, when run on a computer device, enables the computer device to perform the steps described in the above-described method embodiments.
[0174] This embodiment realizes the automated generation of IED topology data based on a unified standard, which improves the generation efficiency and accuracy of IED topology data. Moreover, the IED topology data can be reused and can be quickly and automatically updated when the configuration changes, which helps to improve the symmetry of IED topology data.
[0175] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / computer device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0176] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0177] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0178] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0179] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0180] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for generating the IED topology of a smart substation, characterized in that, The method includes: Create an IED topology structure tree object, a bay connection relationship linked list object, a bay connection relationship list object, and an IED description data object. The IED topology structure tree object is an instance object used to describe voltage level / bay / IED identifier, voltage level / bay / IED name, voltage level / bay / IED description data, leaf node markers, display node markers, and associated child node data. The bay connection relationship linked list object is an instance object used to describe bay identifiers and an associated bay identifier list. The bay connection relationship list object is an instance object used to describe associated bay identifiers. The IED description data object is an instance object used to describe IED description data and IED name. Based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object, the entire system configuration file of the intelligent substation is parsed to obtain the parsing result, including: creating a SAXHandelToFileTree class and making the SAXHandelToFileTree class inherit the DefaultHandler class; obtaining the target rewrite data corresponding to the SAXHandelToFileTree class based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object; and combining the target rewrite data with the SAXHandelToFileTree class. The `eTree` class is stored as a SAX parser. Based on the SAX parser, the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object, the entire system configuration file of the smart substation is parsed to obtain the parsing result. The target rewritten data includes: start parsing node method rewritten data and end parsing node method rewritten data. The start parsing node method rewritten data describes the main logic of parsing the entire system configuration file and the processing program of storing the parsed data into the corresponding data structure. The end parsing node method rewritten data describes the logic of adding the captured data structure to the instance object and adding the instance object to the file tree. Based on the analysis results, the IED topology data of the intelligent substation is output.
2. The method for generating the IED topology of a smart substation as described in claim 1, characterized in that, The step of outputting the IED topology data of the smart substation based on the parsing result includes: The parsing results are converted from JSON to XML format to obtain the IED topology data of the smart substation.
3. The method for generating the IED topology of a smart substation as described in claim 1, characterized in that, After the step of outputting the IED topology data of the smart substation based on the parsing result, the method further includes: The IED topology data is displayed on a screen to obtain the IED topology interface; Configuration instructions are obtained based on the IED topology interface; The interface is displayed and configuration data is obtained based on the configuration instructions, and the IED topology data is updated according to the configuration data.
4. The method for generating the IED topology of a smart substation as described in claim 3, characterized in that, The steps of displaying the interface and acquiring configuration data based on the configuration instructions, and updating the IED topology data according to the configuration data, include: If the operation identifier in the configuration instruction is a voltage level configuration operation, then the interface is displayed according to the configuration instruction to obtain a first interface, the voltage level attribute configuration value is obtained according to the first interface, the first instance object is determined according to the voltage level attribute configuration value as the configuration data, and the IED topology data is updated according to the configuration data. The first instance object is used to describe the voltage level identifier, voltage level key information, voltage level description data and voltage level associated interval array. If the operation identifier in the configuration instruction is a configuration interval operation, then the interface is displayed according to the configuration instruction to obtain a second interface. Based on the IED topology data, the interval attribute configuration value and the voltage level associated with the interval attribute configuration value are obtained according to the second interface. The second instance object is determined according to the interval attribute configuration value and the voltage level associated with the interval attribute configuration value as the configuration data. The configuration data is stored in the voltage level associated interval array corresponding to the voltage level associated with the interval attribute configuration value in the IED topology data. The interval attribute configuration value includes: interval type, interval description and interval name. The second instance object is used to describe the first identifier, key information of the voltage level to which the interval belongs, the title determined based on the interval type and interval description and the associated IED array. The first identifier is an identifier generated based on the voltage level key information, the interval name and the preset mark. If the operation identifier in the configuration instruction is a configuration IED operation, then the interface is displayed according to the configuration instruction to obtain a third interface. Based on the IED topology data, the IED attribute configuration value is obtained according to the third interface. The third instance object is determined according to the IED attribute configuration value and used as the configuration data. The configuration data is stored in the associated IED array in the IED topology data that corresponds to the first interval identifier in the configuration instruction. If the operation identifier in the configuration instruction is a configuration interval connection relationship operation, then the interface is displayed according to the configuration instruction to obtain the fourth interface. Based on the IED topology data, the interval connection relationship attribute configuration value is obtained according to the fourth interface. The relationship object is determined according to the interval connection relationship attribute configuration value and used as the configuration data. The configuration data is stored in the associated interval identifier list in the IED topology data that corresponds to the second interval identifier in the configuration instruction.
5. An IED topology generation device for an intelligent substation, characterized in that, The device includes: The object creation module is used to create IED topology structure tree objects, interval connection relationship linked list objects, interval connection relationship list objects, and IED description data objects. The IED topology structure tree object is an instance object used to describe voltage level / interval / IED identifier, voltage level / interval / IED name, voltage level / interval / IED description data, leaf node markers, display node markers, and associated child node data. The interval connection relationship linked list object is an instance object used to describe interval identifiers and an associated interval identifier list. The interval connection relationship list object is an instance object used to describe associated interval identifiers. The IED description data object is an instance object used to describe IED description data and IED name. The parsing module is used to parse the entire system configuration file of the smart substation based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object, and obtain the parsing result. This includes: creating a SAXHandelToFileTree class and making the SAXHandelToFileTree class inherit from the DefaultHandler class; obtaining the target rewrite data corresponding to the SAXHandelToFileTree class based on the IED topology structure tree object, the bay connection relationship linked list object, the bay connection relationship list object, and the IED description data object; and combining the target rewrite data with the SAXHandelToFileTree class. The `oFileTree` class is stored as a SAX parser. Based on the SAX parser, the IED topology structure tree object, the interval connection relationship linked list object, the interval connection relationship list object, and the IED description data object, the entire system configuration file of the smart substation is parsed to obtain the parsing result. The target rewritten data includes: start parsing node method rewritten data and end parsing node method rewritten data. The start parsing node method rewritten data describes the main logic of parsing the entire system configuration file and the processing program of storing the parsed data into the corresponding data structure. The end parsing node method rewritten data describes the logic of adding the captured data structure to the instance object and adding the instance object to the file tree. The result output module is used to output the IED topology data of the smart substation based on the analysis results.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the IED topology generation method for intelligent substations as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the IED topology generation method for intelligent substations as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Dynamic recognition method for intelligent substation network device topology based on MAC address matching
CN103856579A
Topology identification method for primary system of transformer substation
CN112949086A