A method and system for parsing multi-protocol communication messages of substation secondary equipment

By analyzing real-time and historical messages from substation secondary equipment, the system automatically determines the equipment status, solving the problem of difficult serial communication message parsing in existing technologies and achieving efficient auxiliary fault diagnosis.

CN119743540BActive Publication Date: 2025-10-31GUIZHOU POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411590503.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-10-31
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

The existing technology lacks tools for parsing serial communication messages of substation secondary equipment, resulting in a large amount of manpower being consumed by manual parsing, and the existing equipment cannot parse serial communication messages.

Method used

This paper provides a method for parsing multi-protocol communication messages of substation secondary equipment. By collecting and comparing real-time and historical messages, the method automatically parses and judges the operating status of the equipment, assists in fault diagnosis, and supports secondary equipment with serial port, RJ45 network port and Ethernet communication.

Benefits of technology

It enables automatic parsing of various communication protocol messages within substations, reducing manual intervention, improving equipment fault diagnosis efficiency, and supporting online real-time and offline historical message parsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743540B_ABST
    Figure CN119743540B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for parsing multi-protocol communication messages of substation secondary equipment, belonging to the field of communication message parsing technology. The method includes the following steps: collecting communication messages from substation secondary equipment; performing historical and real-time message parsing on the collected messages; comparing the parsed messages from real-time and historical messages; extracting different messages using the same rules and automatically parsing them to obtain key information from the real-time messages, and further determining the operating status of the secondary equipment; comparing the obtained operating status with corresponding historical data to determine whether the secondary equipment is operating normally, and providing the basis for the operating status to assist technicians in diagnosing equipment faults. This invention parses both network port communication messages and serial port communication messages from substation secondary equipment and applies the parsing results to auxiliary fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication message parsing technology, and in particular to a method and system for parsing multi-protocol communication messages of substation secondary equipment. Background Technology

[0002] During the operation of power plants, commissioning of power equipment is required, which generates a large number of MMS (Microsoft Media Server Protocol) messages. Currently, there is a lack of dedicated tools for parsing MMS messages, so a significant amount of MMS message analysis must be done manually. This results in a substantial consumption of manpower for manual message parsing. Furthermore, the equipment currently used for parsing communication messages in substation secondary equipment, such as network communication message analyzers, is designed for recording and parsing network port communication messages, not serial port communication messages. Summary of the Invention

[0003] In view of the problems existing in the parsing of multi-protocol communication messages and systems of existing substation secondary equipment, this invention is proposed.

[0004] Therefore, the problem that this invention aims to solve is the inability to parse serial communication messages.

[0005] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0006] In a first aspect, embodiments of the present invention provide a method for parsing multi-protocol communication messages of secondary equipment in a substation, comprising the following steps:

[0007] By collecting communication messages from secondary equipment in substations, historical and real-time message parsing is performed on the collected communication messages.

[0008] The parsed messages from real-time messages are compared with those from historical messages. The same rules are used to extract different messages, and they are automatically parsed to obtain key information from the real-time messages and further determine the operating status of the secondary equipment.

[0009] By comparing the obtained secondary equipment operating status with the corresponding historical data, it is determined whether the secondary equipment is operating normally, and the basis for the operating status is provided to assist technicians in completing equipment fault diagnosis.

[0010] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment described in this invention, the substation secondary equipment includes serial communication secondary equipment, RJ45 network port communication secondary equipment, and Ethernet communication secondary equipment.

[0011] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment according to the present invention, the method for parsing historical messages of the communication messages includes the following steps:

[0012] S101. Open the RJ45 network port communication module and the serial port communication module. Scan the current network port and serial port, and select the corresponding network port and serial port.

[0013] S102. Set the network port and serial port to listening mode and determine whether they have listened to communication packets. If they have listened, proceed to step S103. If they have not listened, repeat steps S101-S102.

[0014] S103. Collect messages and obtain complete message data;

[0015] S104. By matching message features, identify the communication protocol and determine whether it can be parsed; if it can be parsed, parse it and proceed to step S105; if it cannot be parsed, discard it.

[0016] S105. Add the parsed results to the database and store them as message communication information.

[0017] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment described in this invention, the method for parsing historical messages of communication messages from RJ45 network port secondary equipment includes the following steps:

[0018] S201. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition. If it can be parsed, proceed to step S202; if it cannot be parsed, discard it.

[0019] S202. Add the selected message file to the message database and read the selected message file;

[0020] S203. Collect message files and obtain complete message data;

[0021] S204. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S205. If it has not been completely acquired, repeat steps S203-S204. If the message file has ended, re-determine whether the message data has been completely acquired.

[0022] S205. Determine whether the message file has been entered into the database. If it has been entered into the database, discard it and reread the message database, and select another message to add to the database. If it has not been entered into the database, proceed to step S206.

[0023] S206. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S207; if it is a non-real-time message, proceed to step S208.

[0024] S207. By matching message features, set up a monitoring communication device, and automatically parse it after monitoring, then proceed to step S209.

[0025] S208. Automatic parsing through message feature matching, proceed to step S209;

[0026] S209. Add the parsed results to the database and store them as message communication information.

[0027] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment according to the present invention, the method for parsing historical messages of the Ethernet communication secondary equipment includes the following steps.

[0028] S301. Select the Ethernet communication module, turn on the network card, and check if the network card is turned on normally. If the network card is turned on normally, proceed to step S302; if the network card cannot be turned on normally, select the Ethernet communication module again.

[0029] S302. Read network card information: SNMP interface, MAC address; S303. Check the packet buffer to see if there is a packet. If there is a packet, proceed to step S304; if there is no packet, repeat steps S302-S303.

[0030] S304. Obtain message data and further determine whether the message data has ended; if the message data has ended, then end; if not, proceed to step S305.

[0031] S305. Place the message data into the database;

[0032] S306. Automatically parse the message data in the database.

[0033] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment according to the present invention, the method for real-time message parsing of the communication messages of the RJ45 network port communication secondary equipment includes the following steps.

[0034] S401. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition; if it can be parsed, proceed to step S402; if it cannot be parsed, discard it.

[0035] S402. Add the selected message file to the message database and read the selected message file;

[0036] S403. Collect messages and obtain complete message data;

[0037] S404. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S405. If it has not been completely acquired, repeat steps S403-S404. If the message has ended, re-determine whether the message data has been completely acquired.

[0038] S405. Determine whether the message has been entered into the database. If it has been entered into the database, discard it and reread the message database, then select another message to add to the database. If it has not been entered into the database, proceed to step S406.

[0039] S406. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S407; if it is a non-real-time message, proceed to step S530. S407. Set up a monitoring communication device through feature matching. After monitoring, the device will automatically parse the message and proceed to step S408.

[0040] S408. Add message data to the database and retrieve message data;

[0041] S409. Determine whether the message data has ended. If the message data has ended, then end; if not, repeat steps S408-S409.

[0042] S410. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S411; if it is a non-real-time message, proceed to step S413.

[0043] S411. Automatically parse the message by matching message features, and proceed to step S412;

[0044] S412. Add the parsed results to the database and store them as message communication information;

[0045] S413. Place the message data into the database;

[0046] S414. Automatically parse the communication message data in the database.

[0047] As a preferred embodiment of the multi-protocol communication message parsing method for substation secondary equipment according to the present invention, the message feature matching step includes:

[0048] S501. Extract message features to obtain message data message features;

[0049] S502. After feature extraction, further determine the message type. If it is a text message, proceed to step S503; if it is a non-text message, proceed to step S506.

[0050] S503. Further determine the message type. The message type includes string type and hexadecimal type. If it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505.

[0051] S504. After feature matching, proceed to step S505.

[0052] S505. Parse the message;

[0053] S506, through feature matching.

[0054] Secondly, embodiments of the present invention provide a multi-protocol communication message parsing system for substation secondary equipment, which includes a data acquisition module, a parsing module, and an equipment fault diagnosis module;

[0055] The acquisition module is used to acquire communication messages from secondary equipment in the substation, and to perform historical message parsing and real-time message parsing on the acquired communication messages.

[0056] The parsing module is used to compare the parsed real-time message with the parsed historical message, extract different messages using the same rules, and automatically parse them to obtain key information of the real-time message.

[0057] The equipment fault diagnosis module is used to output diagnostic information about equipment faults.

[0058] Thirdly, embodiments of the present invention provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement any step of the above-described substation secondary equipment multi-protocol communication message parsing method.

[0059] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the above-described method for parsing multi-protocol communication messages of substation secondary equipment.

[0060] The beneficial effects of this invention are as follows: it parses both network port communication messages and serial port communication messages of substation secondary equipment and applies the parsing results to auxiliary fault diagnosis; it parses various communication protocol messages used by secondary equipment in the substation, including IEC60870-5-104, IEC60870-5-103, DISA system remote control protocol, MODBUS and other communication protocols, and applies the parsing results to auxiliary fault diagnosis; it can parse communication messages online in real time and offline in historical messages, and apply the parsing results to auxiliary fault diagnosis. Attached Figure Description

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

[0062] Figure 1 This is a flowchart illustrating the method for parsing multi-protocol communication messages for secondary equipment in a substation. Detailed Implementation

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

[0064] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0065] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0066] This invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of this invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not adhering to the usual scale. Furthermore, the schematic diagrams are merely examples and should not be construed as limiting the scope of protection of this invention. In actual fabrication, the three-dimensional spatial dimensions of length, width, and depth should be included.

[0067] Furthermore, in the description of this invention, it should be noted that the terms "upper," "lower," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used solely for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. In addition, the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0068] Unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" in this invention should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; similarly, they can refer to mechanical connections, electrical connections, or direct connections, or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0069] Example 1

[0070] Reference Figure 1 This is the first embodiment of the present invention, which provides a method for parsing multi-protocol communication messages of substation secondary equipment, including the following steps.

[0071] S1. By collecting communication messages from secondary equipment in the substation, perform historical message parsing and real-time message parsing on the collected communication messages.

[0072] The substation secondary equipment includes serial communication secondary equipment, RJ45 network port communication secondary equipment, and Ethernet communication secondary equipment.

[0073] The method for parsing historical messages in the aforementioned communication messages includes the following steps:

[0074] S101. Open the RJ45 network port communication module and the serial port communication module. Scan the current network port and serial port, and select the corresponding network port and serial port.

[0075] S102. Set the network port and serial port to listening mode and determine whether they have listened to communication packets. If they have listened, proceed to step S103. If they have not listened, repeat steps S101-S102.

[0076] S103. Collect messages and obtain complete message data;

[0077] S104. By matching message features, identify the communication protocol and determine whether it can be parsed; if it can be parsed, parse it and proceed to step S105; if it cannot be parsed, discard it.

[0078] S105. Add the parsed results to the database and store them as message communication information.

[0079] The method for parsing historical packets of communication messages from RJ45 network port secondary devices includes the following steps.

[0080] S201. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition. If it can be parsed, proceed to step S202; if it cannot be parsed, discard it.

[0081] S202. Add the selected message file to the message database and read the selected message file;

[0082] S203. Collect message files and obtain complete message data;

[0083] S204. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S205. If it has not been completely acquired, repeat steps S203-S204. If the message file has ended, re-determine whether the message data has been completely acquired.

[0084] S205. Determine whether the message file has been entered into the database. If it has been entered into the database, discard it and reread the message database, and select another message to add to the database. If it has not been entered into the database, proceed to step S206.

[0085] S206. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S207; if it is a non-real-time message, proceed to step S208.

[0086] S207. By matching message features, set up a monitoring communication device, and automatically parse it after monitoring, then proceed to step S209.

[0087] S208. Automatic parsing through message feature matching, proceed to step S209;

[0088] S209. Add the parsed results to the database and store them as message communication information.

[0089] S2. Compare the parsed messages of real-time messages with the parsed messages of historical messages, extract the same rules for different messages, and automatically parse them to obtain key information of real-time messages, and further determine the operating status of secondary equipment.

[0090] The method for parsing historical packets of the communication packets of the Ethernet communication secondary device includes the following steps:

[0091] S301. Select the Ethernet communication module, turn on the network card, and check if the network card is turned on normally. If the network card is turned on normally, proceed to step S302; if the network card cannot be turned on normally, select the Ethernet communication module again.

[0092] S302. Read network card information: SNMP interface, MAC address; S303. Check the packet buffer to see if there is a packet. If there is a packet, proceed to step S304; if there is no packet, repeat steps S302-S303.

[0093] S304. Obtain message data and further determine whether the message data has ended; if the message data has ended, then end; if not, proceed to step S305.

[0094] S305. Place the message data into the database;

[0095] S306. Automatically parse the message data in the database.

[0096] S3. Compare the obtained secondary equipment operating status with the corresponding historical data to determine whether the secondary equipment is operating normally, and provide the basis for the operating status to assist technicians in completing equipment fault diagnosis.

[0097] The method for real-time parsing of communication messages from the RJ45 network port communication secondary device includes the following steps:

[0098] S401. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition; if it can be parsed, proceed to step S402; if it cannot be parsed, discard it.

[0099] S402. Add the selected message file to the message database and read the selected message file;

[0100] S403. Collect messages and obtain complete message data;

[0101] S404. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S405. If it has not been completely acquired, repeat steps S403-S404. If the message has ended, re-determine whether the message data has been completely acquired.

[0102] S405. Determine whether the message has been entered into the database. If it has been entered into the database, discard it and reread the message database, then select another message to add to the database. If it has not been entered into the database, proceed to step S406.

[0103] S406. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S407; if it is a non-real-time message, proceed to step S530. S407. Set up a monitoring communication device through feature matching. After monitoring, the device will automatically parse the message and proceed to step S408.

[0104] S408. Add message data to the database and retrieve message data;

[0105] S409. Determine whether the message data has ended. If the message data has ended, then end; if not, repeat steps S408-S409.

[0106] S410. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S411; if it is a non-real-time message, proceed to step S413.

[0107] S411. Automatically parse the message by matching message features, and proceed to step S412;

[0108] S412. Add the parsed results to the database and store them as message communication information;

[0109] S413. Place the message data into the database;

[0110] S414. Automatically parse the communication message data in the database.

[0111] The message feature matching steps include:

[0112] S501. Extract message features to obtain message data message features;

[0113] S502. After feature extraction, further determine the message type. If it is a text message, proceed to step S503; if it is a non-text message, proceed to step S506.

[0114] S503. Further determine the message type. The message type includes string type and hexadecimal type. If it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505.

[0115] S504. After feature matching, proceed to step S505.

[0116] S505. Parse the message;

[0117] S506, through feature matching.

[0118] In summary, both network and serial communication messages from substation secondary equipment are parsed, and the parsing results are applied to auxiliary fault diagnosis. Various communication protocol messages used by secondary equipment within the substation are also parsed, including IEC60870-5-104, IEC60870-5-103, DISA system remote control protocol, MODBUS, and other communication protocols, and the parsing results are applied to auxiliary fault diagnosis. Communication messages can be parsed both online in real-time and offline in historical format, and the parsing results are applied to auxiliary fault diagnosis.

[0119] Example 2

[0120] Based on the first embodiment, this embodiment further provides a substation secondary equipment multi-protocol communication message parsing system, including a data acquisition module, a parsing module, and an equipment fault diagnosis module;

[0121] The acquisition module is used to acquire communication messages from secondary equipment in the substation, and to perform historical message parsing and real-time message parsing on the acquired communication messages.

[0122] The parsing module is used to compare the parsed real-time message with the parsed historical message, extract different messages using the same rules, and automatically parse them to obtain key information of the real-time message.

[0123] The equipment fault diagnosis module is used to output diagnostic information about equipment faults.

[0124] This embodiment also provides a computer device applicable to the multi-protocol communication message parsing method for substation secondary equipment, including a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the multi-protocol communication message parsing method for substation secondary equipment as proposed in the above embodiment.

[0125] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0126] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements the method for parsing multi-protocol communication messages of substation secondary equipment as proposed in the above embodiments.

[0127] The storage medium proposed in this embodiment and the data storage method proposed in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0128] Example 3

[0129] Based on the previous two embodiments, this embodiment provides a method for parsing multi-protocol communication messages of substation secondary equipment. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0130] Table 1: Comparison of Experiments Using Different Methods

[0131] parameter unit Existing methods Example 1 accuracy % 85 95 Resolution time Second 2.5 1.8 CPU utilization % 60 45 Ease of use - Disaster easy Fault diagnosis capability - 70 95

[0132] Experimental Methods: Generate or collect a certain amount of simulated communication message data, including historical and real-time messages. Configure simulation software and performance monitoring tools to ensure that both methods can run in the same environment. Use the new method and the existing method to parse the simulated message data respectively, and record key performance indicators such as CPU utilization and parsing time of the two methods during the parsing process.

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

Claims

1. A method for parsing multi-protocol communication messages in substation secondary equipment, characterized in that: Includes the following steps, By collecting communication messages from secondary equipment in substations, historical and real-time message parsing is performed on the collected communication messages. The parsed messages from real-time messages are compared with those from historical messages. The same rules are used to extract different messages, and they are automatically parsed to obtain key information from the real-time messages and further determine the operating status of the secondary equipment. By comparing the obtained secondary equipment operating status with the corresponding historical data, it is determined whether the secondary equipment is operating normally, and the basis for the operating status is given to assist technicians in completing equipment fault diagnosis. The method for performing historical message parsing on the aforementioned communication messages includes the following steps: S101. Open the RJ45 network port communication module and the serial port communication module. Scan the current network port and serial port, and select the corresponding network port and serial port. S102. Set the network port and serial port to listening mode and determine whether they have listened to communication packets. If they have listened, proceed to step S103. If they have not listened, repeat steps S101-S102. S103. Collect messages and obtain complete message data; S104. By matching message features, identify the communication protocol and determine whether it can be parsed; if it can be parsed, parse it and proceed to step S105; if it cannot be parsed, discard it. S105. Add the parsed results to the database and store them as message communication information.

2. The method for parsing multi-protocol communication messages of substation secondary equipment as described in claim 1, characterized in that: The substation secondary equipment includes serial communication secondary equipment, RJ45 network port communication secondary equipment, and Ethernet communication secondary equipment.

3. The method for parsing multi-protocol communication messages of substation secondary equipment as described in claim 2, characterized in that: The method for parsing historical packets of communication messages from RJ45 network port secondary devices includes the following steps. S201. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition. If it can be parsed, proceed to step S202; if it cannot be parsed, discard it. S202. Add the selected message file to the message database and read the selected message file; S203. Collect message files and obtain complete message data; S204. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S205. If it has not been completely acquired, repeat steps S203-S204. If the message file has ended, re-determine whether the message data has been completely acquired. S205. Determine whether the message file has been entered into the database. If it has been entered into the database, discard it and reread the message database, and select another message to add to the database. If it has not been entered into the database, proceed to step S206. S206. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S207; if it is a non-real-time message, proceed to step S208. S207. By matching message features, set up a monitoring communication device, and automatically parse it after monitoring, then proceed to step S209. S208. Automatic parsing through message feature matching, proceed to step S209; S209. Add the parsed results to the database and store them as message communication information.

4. The method for parsing multi-protocol communication messages of substation secondary equipment as described in claim 3, characterized in that: The method for parsing historical packets of the communication packets of the Ethernet communication secondary device includes the following steps: S301. Select the Ethernet communication module, turn on the network card, and check if the network card is turned on normally. If the network card is turned on normally, proceed to step S302; if the network card cannot be turned on normally, select the Ethernet communication module again. S302. Read network card information: SNMP interface, MAC address; S303. Check the packet buffer to see if there is a packet. If there is a packet, proceed to step S304; if there is no packet, repeat steps S302-S303. S304. Obtain message data and further determine whether the message data has ended; if the message data has ended, then end; if not, proceed to step S305. S305. Place the message data into the database; S306. Automatically parse the message data in the database.

5. The method for parsing multi-protocol communication messages of substation secondary equipment as described in claim 4, characterized in that: The method for real-time parsing of communication messages from the RJ45 network port communication secondary device includes the following steps: S401. Open the message file, read the message file, obtain the message file characteristics, and determine whether the message file can be parsed through feature recognition; if it can be parsed, proceed to step S402; if it cannot be parsed, discard it. S402. Add the selected message file to the message database and read the selected message file; S403. Collect messages and obtain complete message data; S404. Determine whether the message data has been completely acquired or whether the message has ended. If it has been completely acquired, proceed to step S405. If it has not been completely acquired, repeat steps S403-S404. If the message has ended, re-determine whether the message data has been completely acquired. S405. Determine whether the message has been entered into the database. If it has been entered into the database, discard it and reread the message database, then select another message to add to the database. If it has not been entered into the database, proceed to step S406. S406. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S407. If it is a non-real-time message, proceed to step S530; S407, through feature matching, set up a monitoring communication device, and automatically parse it after monitoring, then proceed to step S408; S408. Add message data to the database and retrieve message data; S409. Determine whether the message data has ended. If the message data has ended, then end; if not, repeat steps S408-S409. S410. Determine whether the message is a real-time message. If it is a real-time message, proceed to step S411; if it is a non-real-time message, proceed to step S413. S411. Automatically parse the message by matching message features, and proceed to step S412; S412. Add the parsed results to the database and store them as message communication information; S413. Place the message data into the database; S414. Automatically parse the communication message data in the database.

6. The method for parsing multi-protocol communication messages of substation secondary equipment as described in claim 5, characterized in that: The message feature matching steps include: S501. Extract message features to obtain message data message features; S502. After feature extraction, further determine the message type. If it is a text message, proceed to step S503; if it is a non-text message, proceed to step S506. S503. Further determine the message type. The message type includes string type and hexadecimal type. If it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505. S504. After feature matching, proceed to step S505. S505. Parse the message; S506, through feature matching.

7. A substation secondary equipment multi-protocol communication message parsing system, based on the substation secondary equipment multi-protocol communication message parsing method according to any one of claims 1 to 6, characterized in that: It includes a data acquisition module, a data parsing module, and a device fault diagnosis module; The acquisition module is used to acquire communication messages from secondary equipment in the substation, and to perform historical message parsing and real-time message parsing on the acquired communication messages. The parsing module is used to compare the parsed real-time message with the parsed historical message, extract different messages using the same rules, and automatically parse them to obtain key information of the real-time message. The equipment fault diagnosis module is used to output diagnostic information about equipment faults.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the substation secondary equipment multi-protocol communication message parsing method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the substation secondary equipment multi-protocol communication message parsing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Substation network online failure analysis method

    CN104979908A

  • Automatic cut-off and recovery method and system for intelligent substation communication system

    CN112234714A