An index display method and system for IED messages in smart substations
By analyzing SCD files and building message indexes, dynamically analyzing message details, solving the cumbersome problems of message verification in smart substations, achieving fast and intuitive message display, improving debugging efficiency and saving memory space.
Patent Information
- Application Number
- CN202011420430.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2040-12-07
AI Technical Summary
In smart substations, it is difficult for the prior art to quickly and intuitively verify and verify the correctness of IED messages, especially when looking for specific information in a large number of SCD files, the operation is cumbersome and error-prone, which affects the debugging and detection efficiency.
By analyzing SCD files, generating a mapping dictionary of model reference paths and description information, traversing the message files to collect feature information, building message classification index and location index, establishing a ring cache space, and dynamically parsing message details using background threads to achieve A brief and detailed index display of messages.
It realizes the rapid and intuitive display of IED message information, saves memory space, avoids display interface delay, improves debugging and detection efficiency, and reduces dependence on the IEC61850 standard.
Smart Images

Figure CN112579529B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power engineering applications, and more specifically, relates to an index display method and system for IED messages of smart substations. Background Art
[0002] The IEC61850 standard is the only global universal standard in the field of power system automation. It realizes the standardization of engineering operation of smart substations, making the engineering implementation of smart substations standardized, unified and transparent. The intelligent electronic devices (IED) in smart substations uniformly send and receive messages in accordance with the IEC61850 standard, forming a mutually cooperative communication system between various intelligent devices. In the project, when debugging and configuring the intelligent device, in order to avoid the situation where other devices are misjudged or falsely operated normally due to errors in the message content, it is necessary to verify whether the communication information of a single intelligent device is normal, and check whether the information of each field in the message structure is correct. In the prior art, the message is mainly captured by a third-party tool to view all the field information of the message. However, when checking the field whose content is the IED modeling path, it is necessary to jump and search in the XML nodes of the substation configuration description (SCD) file at all levels to obtain specific readable information to verify the correctness of the message. In a substation environment with many IEDs, when checking the IED modeling information in the message, it is necessary to search in the SCD files of tens or even hundreds of megabytes, which is quite cumbersome and prone to errors. During equipment configuration and debugging, the devices in the plant are running continuously. Tracking certain problems requires recording the messages during a long copy. At this time, the message files are very large, and query browsing will become very slow.
[0003] When checking communication messages during configuration debugging and problem tracking of IED in smart substations, a fast and intuitive IEC61850 message browsing method is designed to facilitate maintenance personnel to view message information and quickly browse and locate feature information in the message, thereby improving the efficiency of engineering debugging, detection and other related work. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the purpose of the present invention is to provide an index display method and system for IED messages in smart substations, parse the SCD file to collect model reference paths and description information to form a mapping dictionary, traverse the message file to collect message classification feature information to form a message classification index and a message location index, build a circular cache space for the message, and preload the message details dynamically parsed by the background thread, and implement index display of the message's brief information and detailed information according to the message classification. It can intuitively display the target IED's message information interpretation field and the location of the fast index message information in the SCD file, establish a circular cache area to store the message details parsed by the background, save memory space, improve operating efficiency, and avoid the phenomenon of display interface delay.
[0005] The present invention adopts the following technical scheme.
[0006] A method for indexing and displaying IED messages for smart substations, comprising the following steps:
[0007] Step 1, importing IED modeling information, parsing the SCD file to collect the model reference path and description information, and generating a first mapping path from the model reference path to the description information;
[0008] Step 2, traverse the message file to collect message communication characteristic information, record the message sequence number according to different characteristic information to form multiple characteristic message sequence number tables; collect message location information and generate a unique message index information table; construct a multi-level tree classification according to the message communication characteristic information, and construct a second mapping path from the message classification to the characteristic message sequence number table and then to the message index information table;
[0009] Step 3: construct a circular cache space for the message, and the background thread dynamically parses the detailed information of the message and preloads it into the cache space;
[0010] Step 4: According to the classification of the message, index display of brief information and detailed information of the message is realized.
[0011] Preferably,
[0012] In step 1,
[0013] The model reference path includes: the reference path of intelligent electronic device modeling information such as APPID, data set, data object, and data attribute;
[0014] The description information is readable information describing the node corresponding to the model reference path;
[0015] The first mapping path implements the mapping from the model reference path to the description information.
[0016] Preferably,
[0017] In step 2,
[0018] The message communication characteristic information includes: communication address, APPID and protocol type;
[0019] Multi-level tree classification means that the message communication feature information is classified in a tree-like manner according to the order of protocol type, communication address, and APPID. Each child node in the hierarchical tree corresponds to a complete message communication feature information, each child node corresponds to a feature message sequence number table, and each parent node corresponds to a combination of feature message sequence number tables of multiple child nodes;
[0020] The second mapping path implements mapping from message classification to the characteristic message sequence number table and then to the message index information table.
[0021] Preferably,
[0022] The communication address includes IP and MAC;
[0023] A complete message communication feature information includes: protocol, address and APPID;
[0024] The characteristic message sequence number table is an existing characteristic message sequence number table or a combination of multiple characteristic message sequence number tables.
[0025] Preferably,
[0026] Step 3 specifically includes:
[0027] Step 3.1, constructing a ring buffer space for the message, and dynamically dividing the ring buffer space into a plurality of continuous buffer areas;
[0028] Step 3.2, setting a browsing area, the browsing area displays the detailed information of the message in the current buffer area;
[0029] Step 3.3, according to the moving direction of the browsing area and the positional relationship with the boundary of the current cache area, the background thread dynamically parses the message detailed information and preloads it.
[0030] Preferably,
[0031] Each cache area stores M message details; the storage capacity of each cache area is dynamically divided according to the number of bytes of the M message details; the browsing area displays T message details; the storage capacity of the browsing area is dynamically divided according to the number of bytes of the T message details; wherein M and T are both positive integers, and M is greater than T.
[0032] Preferably,
[0033] In step 3.3,
[0034] When the browsing area moves toward the front boundary of the current buffer area and the distance from the front boundary is not greater than s message details, the background thread parses M message details forward and preloads these M message details into the previous buffer area of the current buffer area;
[0035] When the browsing area moves toward the rear boundary of the current buffer area and the distance from the rear boundary is not greater than s message details, the background thread parses M message details backward and preloads the M message details into the rear buffer area of the current buffer area;
[0036] Wherein, s is a positive integer, and M is much larger than s.
[0037] Preferably,
[0038] Step 4 specifically includes:
[0039] Step 4.1, according to the characteristic information corresponding to the message classification, generate a sequence number table using the characteristic message sequence number table according to step 2, search the message index information table according to the sequence number table, read the message for parsing, and cache the message detailed information according to step 3;
[0040] Step 4.2, according to the model reference path contained in the message detailed information, the corresponding description information is loaded into the detailed message display window through the first mapping path, and the readability of the message is prompted.
[0041] An index display system for IED messages of smart substations includes: a message information collection module, a message reading module, a message classification index module, a message parsing module, a message cache module, a message display module and a model reference information dictionary module;
[0042] The message information collection model references the path, description information, message communication feature information, and message location information;
[0043] A message reading module is used to generate a message location index table according to the message location information and the message sequence number, so as to realize fast reading of the message according to the message sequence number;
[0044] The message classification index module is used to realize the mapping relationship between the message classification tree node and the characteristic message sequence number table according to the message communication characteristic information and the recorded characteristic message sequence number table, and the tree classification according to the protocol type, communication address, and APPID;
[0045] A message parsing module is used to parse the message read by the message reading module to obtain detailed message information;
[0046] The message cache module has a built-in circular cache space for storing message details and a message browsing area for displaying message details.
[0047] The model reference information dictionary module collects the model reference path and corresponding description information in the SCD file and generates a mapping table from the model reference path to the description information;
[0048] The message display module is used to display the message according to the classification interface, the brief information user browsing interface of the message and the detailed information of the message; when the detailed information is displayed, the model reference information dictionary module will be queried and the corresponding readable description information will be filled in.
[0049] The beneficial effects of the present invention are as follows:
[0050] 1. Only message classification, characteristic message sequence number table, message index table and model reference path dictionary are stored in the memory for a long time, which can browse and display message information intuitively and quickly. When detailed message information needs to be displayed, the background thread performs dynamic parsing and preloading, which significantly saves memory space and improves operation efficiency.
[0051] 2. Avoid display interface delays and freezes by properly setting the number of messages dynamically parsed by the background thread.
[0052] 3. For personnel who conduct debugging or testing on the project site, the dependence on the IEC61850 standard and other related regulations and specifications is reduced, and work efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of the index display method for IED messages of smart substations of the present invention;
[0054] Figure 2 A flow chart of the index display method for smart substation IED messages of the present invention for constructing a first mapping table with a model reference path and description information;
[0055] Figure 3 The index display method for IED messages in smart substations of the present invention constructs a message classification tree and a characteristic message sequence number table with message feature information, and constructs a message index table and a relationship diagram of a second mapping path with message location information;
[0056] Figure 4 A schematic diagram of a ring buffer space constructed by the index display method for IED messages in smart substations of the present invention and background thread parsing and preloading messages;
[0057] Figure 5 This is an index display diagram of SV message information by the index display method for smart substation IED messages of the present invention;
[0058] Figure 6This is an index display diagram of MMS message information by the index display method for smart substation IED messages of the present invention;
[0059] Figure 7 It is a schematic diagram of the framework of the index display system for IED messages of smart substations of the present invention. DETAILED DESCRIPTION
[0060] The present application is further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present application.
[0061] like Figure 1 As shown, the present invention provides an index display method for IED messages of smart substations, comprising the following steps:
[0062] Step 1, such as Figure 2 As shown, IED modeling information is imported, the SCD file is parsed to collect the model reference path and description information, and a first mapping path from the model reference path to the description information is generated;
[0063] Specifically,
[0064] The model reference path collected from the SCD file includes the reference path of IED modeling information such as APPID, data set, data object, and data attribute.
[0065] It is worth noting that technical personnel in the relevant field can arbitrarily select the message characteristic information to be collected based on the general message information content. The preferred embodiment of the present invention obtains the information of the logical device and logical node of the target IED in the smart substation, and forms APPID, data set report, remote control, set value, virtual terminal and other information, which is only used for indexing and displaying the non-restrictive and preferred choice of the smart substation IED message. Technical personnel in the relevant field can use more or less, or other types of message characteristic information.
[0066] The description information collected from the SCD file is readable information describing the nodes corresponding to the model reference path.
[0067] The first mapping path implements the mapping from the model reference path to the description information.
[0068] Step 2, such as Figure 3 As shown, the message file is traversed to collect message communication characteristic information, and the message sequence is recorded according to different characteristic information to form multiple characteristic message sequence number tables; the message location information is collected and a unique message index information table is generated; a multi-level tree classification is constructed according to the message communication characteristic information, and a second mapping path is constructed from the message classification to the characteristic message sequence number table and then to the message index information table.
[0069] Specifically,
[0070] The message file is an existing message file, or a message file generated by connecting to the IED communication network port and capturing messages using a packet capture tool.
[0071] It is worth noting that the technicians in the relevant field can arbitrarily select a packet capture tool to realize network port packet capture to generate a packet file, such as but not limited to the winpcap packet capture library, the windows platform can also use the Npcap library, and the linux platform can use the libpcap library. The names and calling methods of the library functions of these tools are the same. The preferred embodiment of the present invention uses the winpcap packet capture library is only a non-restrictive and preferred choice.
[0072] The collected message communication characteristic information includes: communication address, APPID and protocol type.
[0073] In this embodiment, the communication address includes IP and MAC.
[0074] It is worth noting that technical personnel in the relevant field can arbitrarily select the message communication characteristic information to be collected based on the general message information content. The preferred embodiment of the present invention obtains three types of message communication characteristic information only for indexing and displaying the non-restrictive and preferred choice of smart substation IED messages. Technical personnel in the relevant field can use more or less, or other types of message communication characteristic information.
[0075] Multi-level tree classification means that the message communication characteristic information is classified in a tree-like manner in the order of protocol type, communication address, and APPID.
[0076] It is worth noting that technicians in the field can arbitrarily establish a tree structure for message communication feature information at different levels. The preferred embodiment of the present invention uses a three-layer order of protocol type, communication address, and APPID for numbering. It is a non-restrictive and preferred choice only for the present invention. Technicians in the field can use other hierarchical orders for numbering.
[0077] Each child node in the hierarchical tree corresponds to a complete message communication characteristic information, each child node corresponds to a characteristic message sequence number table, and each parent node corresponds to a combination of characteristic message sequence number tables of multiple child nodes.
[0078] In this embodiment, a complete message communication characteristic information includes: protocol, address and APPID.
[0079] The characteristic message sequence number table is an existing characteristic message sequence number table or a combination of multiple characteristic message sequence number tables.
[0080] Different classification methods all use the same classification search method. Each time a message classification information is selected, a corresponding existing feature message sequence number table or multiple feature message sequence number tables are first queried, and all feature message sequence number tables are combined into a feature message sequence number table of a target IED.
[0081] The collected message location information is the starting address of the message in the SCD file. The data size of each message location information is 4 bytes.
[0082] The second mapping path implements mapping from message classification to the characteristic message sequence number table and then to the message index information table, wherein the characteristic message sequence number table is an existing characteristic message sequence number table or a combination of multiple characteristic message sequence number tables.
[0083] Step 3, such as Figure 4 As shown, a circular cache space of the message is constructed, and the background thread dynamically parses the detailed information of the message and preloads it into the cache space.
[0084] Step 3 specifically includes:
[0085] Step 3.1, construct a circular buffer space for messages, and dynamically divide the circular buffer space into multiple continuous buffer areas.
[0086] Each cache area stores M message details; the storage capacity of each cache area is dynamically divided according to the number of bytes of the M message details; the browsing area displays T message details; the storage capacity of the browsing area is dynamically divided according to the number of bytes of the T message details; wherein M and T are both positive integers, and M is greater than T.
[0087] In this preferred embodiment, the circular cache space is dynamically divided into three cache areas that are continuous at the head and tail. According to the message parsing speed and the cache size, the cache area is set to store 200 message details. According to the display interface, the browsing area is set to display 100 message details T; and the boundary distance s between the browsing area and the cache area is set to 50.
[0088] Step 3.2, set a browsing area, the browsing area displays the detailed information of the message in the current buffer area.
[0089] Step 3.3, according to the moving direction of the browsing area and the positional relationship with the boundary of the current cache area, the background thread dynamically parses the message detailed information and preloads it.
[0090] Specifically,
[0091] When the browsing area moves toward the front boundary of the current cache area and the distance from the front boundary is no more than 50 message details, such as Figure 4As shown, the current cache area stores the 400th to 600th message details, the browsing area displays the 419th to 519th message details in the current cache area, and the browsing area moves toward the front boundary of the current cache area and the distance from the front boundary is no more than 50 message details. Therefore, the background thread parses 200 message details forward and preloads these 200 message details into the previous cache area of the current cache area.
[0092] When the browsing area moves toward the back boundary of the current cache area and the distance from the back boundary is no more than 50 message details, such as Figure 4 As shown, the current cache area stores the 400th to 600th message details, the browsing area displays the 481st to 581st message details in the current cache area, and the browsing area moves toward the rear boundary of the current cache area and the distance from the rear boundary is no more than 50 message details. Therefore, the background thread parses 200 message details backward and preloads these 200 message details into the next cache area of the current cache area.
[0093] When the browsing area moves backward or forward to the boundary of the cache space, the message details stored in the current cache are less than 200, and the background thread parses 200 message details backward or forward and preloads these 200 message details into the farthest cache area of the current cache.
[0094] Step 4: According to the classification of the message, index display of brief information and detailed information of the message is realized; specifically, it includes:
[0095] Step 4.1, generate a sequence number table using the characteristic message sequence number table according to step 2 according to the characteristic information corresponding to the message classification, search the message index information table according to the sequence number table, read the message for parsing, and cache the message detailed information according to step 3.
[0096] Specifically,
[0097] The message brief information is displayed on the user browsing interface, and the information content is the message time, address, summary and alarm information;
[0098] Step 4.2, according to the model reference path contained in the message detailed information, the corresponding description information is loaded into the detailed message display window through the first mapping path, and the readability of the message is prompted.
[0099] Specifically,
[0100] like Figure 5As shown, when displaying the message information of SV or GOOSE, the description information will be searched through the first mapping path according to the data set in the model reference path, and the corresponding attribute description information in the identifiable FCDA will be quickly converted according to the member number of the data set, and the attribute description information will be displayed in the detailed information window.
[0101] like Figure 6 As shown, when displaying the message information of the MMS, the corresponding attribute description information can be directly found according to the reference in the message characteristic information, and the message field to be parsed can be replaced with the attribute description information.
[0102] An index display system for IED messages in smart substations, such as Figure 7 As shown, it includes: a message information collection module, a message reading module, a message classification index module, a message parsing module, a message cache module, a message display module and a model reference information dictionary module;
[0103] The message information collection model references the path, description information, message communication feature information, and message location information;
[0104] A message reading module is used to generate a message location index table according to the message location information and the message sequence number, so as to realize fast reading of the message according to the message sequence number;
[0105] The message classification index module is used to realize the mapping relationship between the message classification tree node and the characteristic message sequence number table according to the message communication characteristic information and the recorded characteristic message sequence number table, and the tree classification according to the protocol type, communication address, and APPID;
[0106] A message parsing module is used to parse the message read by the message reading module to obtain detailed message information;
[0107] The message cache module has a built-in circular cache space for storing message details and a message browsing area for displaying message details.
[0108] The model reference information dictionary module collects the model reference path and corresponding description information in the SCD file and generates a mapping table from the model reference path to the description information;
[0109] The message display module is used to display the message according to the classification interface, the brief information user browsing interface of the message and the detailed information of the message; when the detailed information is displayed, the model reference information dictionary module will be queried and the corresponding readable description information will be filled in.
[0110] The beneficial effects of the present invention are as follows:
[0111] 1. Only message classification, characteristic message sequence number table, message index table and model reference path dictionary are stored in the memory for a long time, which can browse and display message information intuitively and quickly. When detailed message information needs to be displayed, the background thread performs dynamic parsing and preloading, which significantly saves memory space and improves operation efficiency.
[0112] 2. Avoid display interface delays and freezes by properly setting the number of messages dynamically parsed by the background thread.
[0113] 3. For personnel who conduct debugging or testing on the project site, the dependence on the IEC61850 standard and other related regulations and specifications is reduced, and work efficiency is improved.
[0114] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. An index display method for IED messages of smart substations, characterized in that: The steps of the index display method for smart substation IED messages are as follows: Step 1, importing intelligent electronic device modeling information, parsing the whole station system configuration file to collect model reference path and description information, and generating a first mapping path from the model reference path to the description information; Step 2, traverse the message file to collect message communication characteristic information, record the message sequence according to different characteristic information to form multiple characteristic message sequence number tables; collect message location information and generate a unique message index information table; construct a multi-level tree classification according to the message communication characteristic information, and construct a second mapping path from the message classification to the characteristic message sequence number table and then to the message index information table; Step 3: construct a circular cache space for the message, and the background thread dynamically parses the detailed information of the message and preloads it into the cache space; Step 4: According to the classification of the message, index display of brief information and detailed information of the message is realized.
2. The index display method for IED messages of smart substation according to claim 1 is characterized in that: In step 1, The model reference path includes: reference paths of intelligent electronic device modeling information such as APPID, data set, data object, and data attribute; The description information is readable information describing the node corresponding to the model reference path; The first mapping path implements mapping from the model reference path to the description information.
3. The index display method for IED messages of smart substation according to claim 1 is characterized in that: In step 2, The message communication characteristic information includes: communication address, APPID and protocol type; The multi-level tree classification means that the message communication feature information is classified in a tree-like manner in the order of protocol type, communication address, and APPID. Each child node in the hierarchical tree corresponds to a complete message communication feature information, each child node corresponds to a feature message sequence number table, and each parent node corresponds to a combination of feature message sequence number tables of multiple child nodes; The second mapping path implements mapping from message classification to the characteristic message sequence number table and then to the message index information table.
4. The index display method for IED messages of smart substation according to claim 3 is characterized in that: The communication address includes IP and MAC; The complete message communication characteristic information includes: protocol, address and APPID; The characteristic message sequence number table is an existing characteristic message sequence number table or a combination of multiple characteristic message sequence number tables.
5. The index display method for IED messages of smart substation according to claim 1 is characterized in that: Step 3 specifically includes: Step 3.1, constructing a ring buffer space for the message, and dynamically dividing the ring buffer space into a plurality of continuous buffer areas; Step 3.2, setting a browsing area, the browsing area displays the detailed information of the message in the current buffer area; Step 3.3, according to the moving direction of the browsing area and the positional relationship with the boundary of the current cache area, the background thread dynamically parses the message detailed information and preloads it.
6. The index display method for IED messages of smart substation according to claim 5 is characterized in that: Each buffer area stores M message details; the storage capacity of each buffer area is dynamically divided according to the number of bytes of the M message details; the browsing area displays T message details; The storage capacity of the browsing area is dynamically divided according to the number of bytes of T message detailed information; wherein M and T are both positive integers, and M is greater than T.
7. The index display method for IED messages of smart substations according to claims 5 to 6 is characterized in that: In step 3.3, When the browsing area moves toward the front boundary of the current buffer area and the distance from the front boundary is not greater than s message details, the background thread parses M message details forward and preloads these M message details into the previous buffer area of the current buffer area; When the browsing area moves toward the rear boundary of the current buffer area and the distance from the rear boundary is not greater than s message details, the background thread parses M message details backward and preloads the M message details into the rear buffer area of the current buffer area; Wherein, s is a positive integer, and M is much larger than s.
8. The index display method for IED messages of smart substation according to claim 1 is characterized in that: Step 4 specifically includes: Step 4.1, according to the characteristic information corresponding to the message classification, generate a sequence number table using the characteristic message sequence number table according to step 2, search the message index information table according to the sequence number table, read the message for parsing, and cache the message detailed information according to step 3; Step 4.2, according to the model reference path contained in the message detailed information, the corresponding description information is loaded into the detailed message display window through the first mapping path, and the readability of the message is prompted.
9. An index display system based on the index display method for smart substation IED messages according to claim 1, characterized in that: The index display system includes: a message information collection module, a message reading module, a message classification index module, a message parsing module, a message cache module, a message display module and a model reference information dictionary module; The message information collection model references path, description information, message communication feature information and message location information; The message reading module is used to generate a message location index table according to the message location information and the message sequence number, so as to realize fast reading of the message according to the message sequence number; The message classification index module is used to realize the mapping relationship between the message classification tree node and the characteristic message sequence number table according to the message communication characteristic information and the recorded characteristic message sequence number table, according to the protocol type, communication address, and APPID tree classification; The message parsing module is used to parse the message read by the message reading module to obtain detailed message information; The message cache module has a built-in circular cache space for storing message details, and a message browsing area for displaying message details; The model reference information dictionary module collects the model reference paths and corresponding description information in the system configuration files of the entire station, and generates a mapping table from the model reference paths to the description information; The message display module is used to display the message according to the classification interface, the brief information user browsing interface of the message and the detailed information of the message; when the detailed information is displayed, the model reference information dictionary module will be queried and the corresponding readable description information will be filled in.
Citation Information
Patent Citations
Method for testing secondary equipment of intelligent substation
CN108663581A
Method for parsing MMS message to IEC 61850 engineering service layer
CN109257359A