Method and system for analyzing multi-protocol communication message of secondary equipment of transformer substation

By collecting and analyzing communication messages from substation secondary equipment, the problem of being unable to parse serial communication messages in the existing technology is solved, and the real-time monitoring of the operating status of the equipment and assisting fault diagnosis is achieved.

CN119743540AActive Publication Date: 2025-04-01GUIZHOU POWER GRID CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art cannot effectively parse serial communication packets, resulting in manual resolution time-consuming and real-time monitoring of the operating status of secondary equipment of the substation.

Method used

By collecting communication messages from secondary equipment of the substation, using historical message analysis and real-time message analysis methods, different messages are extracted and automatically analyzed in the same rules, obtaining key information of real-time message and assisting in equipment fault diagnosis.

Benefits of technology

It realizes automatic analysis of serial communication packets of secondary equipment of substations, can monitor the operating status of the equipment in real time, reduce manual intervention, and improve the efficiency and accuracy of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743540A_ABST
    Figure CN119743540A_ABST
Patent Text Reader

Abstract

The invention discloses a substation secondary equipment multi-protocol communication message analysis method and system, and relates to the technical field of communication message analysis, and the method comprises the following steps: collecting a substation secondary equipment communication message, and carrying out the historical message analysis and real-time message analysis of the collected communication message; respectively comparing the message obtained after the real-time message is analyzed with the message obtained after the historical message is analyzed, extracting different messages according to the same rule, and automatically analyzing to obtain the key information of the real-time message and further obtain the operation state of the secondary equipment; and comparing the obtained operation state of the secondary equipment with corresponding historical data, judging whether the operation state of the secondary equipment is normal or not, and giving an operation state basis to assist technicians in completing equipment fault diagnosis. According to the method, the network port communication message and the serial port communication message of the secondary equipment of the transformer substation are analyzed, and the analysis result is applied to fault auxiliary diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication message analysis, and in particular to a method and system for analyzing multi-protocol communication messages of secondary equipment in a transformer substation. Background Art

[0002] During the operation of power plants, power equipment needs to be debugged, and a large number of MMS (Microsoft Media Server Protocol) messages are generated during the debugging process. Due to the lack of dedicated parsing tools for MMS messages, a large number of MMS message analysis tasks need to be completed manually, which results in a large amount of manpower consumption in the manual message analysis process. At present, the equipment used for substation secondary equipment communication message analysis includes network communication message analyzers, etc., which are aimed at recording and parsing network port communication messages, and do not involve the analysis of serial port communication messages. Summary of the invention

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

[0004] Therefore, the problem to be solved by the present invention is that it is impossible to resolve the serial communication message.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a method for parsing multi-protocol communication messages of a substation secondary device, which comprises the following steps:

[0007] By collecting the communication messages of the secondary equipment of the substation, the collected communication messages are analyzed for historical messages and real-time messages;

[0008] Compare the parsed real-time messages with the parsed historical messages, extract the same rules from different messages, and automatically parse them to obtain the key information of the real-time messages, and further obtain the operating status of the secondary equipment;

[0009] By comparing the obtained operating status of the secondary equipment with the corresponding historical data, it is determined whether the operating status of the secondary equipment is normal, and the basis for the operating status is given to assist technical personnel in completing equipment fault diagnosis.

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

[0011] As a preferred solution of the method for parsing multi-protocol communication messages of substation secondary equipment of the present invention, the method for parsing historical messages of the communication messages comprises the following steps:

[0012] S101, open the RJ45 network port communication module, open the serial port communication module, scan the current network port and serial port, and select the corresponding network port and serial port;

[0013] S102, setting the network port and the serial port to monitoring mode, and determining whether the communication message is monitored; if it is monitored, proceeding to step S103; if it is not monitored, repeating steps S101-S102;

[0014] S103, collect messages and obtain complete message data;

[0015] S104, identify the communication protocol through message feature matching, and determine whether it is parseable; if it is parseable, parse it and proceed to step S105; if it is not parseable, discard it;

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

[0017] As a preferred solution of the method for parsing multi-protocol communication messages of substation secondary equipment of the present invention, the method for parsing historical messages of communication messages of RJ45 network port communication secondary equipment comprises the following steps:

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

[0019] S202, adding the selected message file to the message database, and reading the selected message file;

[0020] S203, collect message files and obtain complete message data;

[0021] S204, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S205; if it has not been completely acquired, repeating steps S203-S204; if the message file has ended, re-judging whether the message data has been completely acquired;

[0022] S205, determine whether the message file has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S206;

[0023] S206, determine whether the message is a real-time message, if it is a real-time message, go to step S207; if it is a non-real-time message, go to step S208;

[0024] S207, through message feature matching, set the monitoring communication device, automatically analyze after monitoring, and enter step S209;

[0025] S208, automatically parse through message feature matching, and proceed to step S209;

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

[0027] As a preferred solution of the method for parsing multi-protocol communication messages of substation secondary equipment of the present invention, the method for parsing historical messages of the communication messages of the Ethernet communication secondary equipment comprises the following steps:

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

[0029] S302, read the network card information: SNMP interface, MAC address; S303, check the message buffer area to see if there is a message, if there is a message, go to step S304; if there is no message, repeat steps S302-S303;

[0030] S304, obtaining message data, and further determining whether the message data has ended; if the message data has ended, then ending; if not, proceeding to step S305;

[0031] S305, putting the message data into the database;

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

[0033] As a preferred solution of the method for parsing multi-protocol communication messages of substation secondary equipment of the present invention, the method for real-time message parsing of the communication messages of the RJ45 network port communication secondary equipment comprises the following steps:

[0034] S401, open the message file, read the message file, obtain the message file features, and determine whether the message file can be parsed through feature recognition; if it can be parsed, go to step S402; if it cannot be parsed, discard it;

[0035] S402, adding the selected message file to the message database, and reading the selected message file;

[0036] S403, collect messages and obtain complete message data;

[0037] S404, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S405; if it has not been completely acquired, repeating steps S403-S404; if the message has ended, re-judging whether the message data has been completely acquired;

[0038] S405, determine whether the message has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S406;

[0039] S406, determine whether the message is a real-time message, if it is a real-time message, go to step S407; if it is a non-real-time message, go to step S530; S407, set the monitoring communication device through feature matching, automatically analyze after monitoring, and go to step S408;

[0040] S408, adding the message data to the database to obtain the 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 through message feature matching, and proceed to step S412;

[0044] S412, adding the parsed results to the database and storing them as message communication information;

[0045] S413, putting the message data into a database;

[0046] S414, automatically parsing the communication message data in the database.

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

[0048] S501, extracting 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 a string type and a hexadecimal type, if it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505;

[0051] S504, through feature matching, after matching, proceed to step S505;

[0052] S505, parsing the message;

[0053] S506: Through feature matching.

[0054] In a second aspect, an embodiment of the present invention provides a substation secondary equipment multi-protocol communication message parsing system, which includes a collection module, a parsing module, and an equipment fault diagnosis module;

[0055] The acquisition module is used to collect communication messages of secondary equipment in the substation, and perform historical message analysis and real-time message analysis on the collected communication messages;

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

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

[0058] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, it implements any step of the above-mentioned substation secondary equipment multi-protocol communication message parsing method.

[0059] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the above-mentioned method for parsing multi-protocol communication messages of a substation secondary device is implemented.

[0060] The beneficial effects of the present invention are as follows: both network port communication messages and serial port communication messages of the substation secondary equipment are parsed, and the parsing results are applied to auxiliary fault diagnosis; multiple communication protocol messages used by the secondary equipment in the substation are parsed, including IEC60870-5-104, IEC60870-5-103, DISA system telecontrol protocol, MODBUS and other communication protocols, and the parsing results are applied to auxiliary fault diagnosis; communication messages can be parsed online in real time and offline in historical messages, and the parsing results are applied to auxiliary fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0062] Figure 1 The present invention is a flow chart of a method for parsing multi-protocol communication messages of secondary equipment in a substation. DETAILED DESCRIPTION

[0063] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0064] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present 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 term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0066] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0067] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0068] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0069] Example 1

[0070] Reference Figure 1 , which is the first embodiment of the present invention, and provides a method for parsing multi-protocol communication messages of a substation secondary device, comprising the following steps:

[0071] S1. Collecting communication messages of secondary equipment in the substation and performing historical message analysis and real-time message analysis on the collected communication messages.

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

[0073] The method for parsing the communication message historically comprises the following steps:

[0074] S101, open the RJ45 network port communication module, open the serial port communication module, scan the current network port and serial port, and select the corresponding network port and serial port;

[0075] S102, setting the network port and the serial port to monitoring mode, and determining whether the communication message is monitored; if it is monitored, proceeding to step S103; if it is not monitored, repeating steps S101-S102;

[0076] S103, collect messages and obtain complete message data;

[0077] S104, identify the communication protocol through message feature matching, and determine whether it is parseable; if it is parseable, parse it and proceed to step S105; if it is not parseable, discard it;

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

[0079] The method for parsing historical messages of communication messages of a secondary device of an RJ45 network port communication comprises the following steps:

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

[0081] S202, adding the selected message file to the message database, and reading the selected message file;

[0082] S203, collect message files and obtain complete message data;

[0083] S204, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S205; if it has not been completely acquired, repeating steps S203-S204; if the message file has ended, re-judging whether the message data has been completely acquired;

[0084] S205, determine whether the message file has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S206;

[0085] S206, determine whether the message is a real-time message, if it is a real-time message, go to step S207; if it is a non-real-time message, go to step S208;

[0086] S207, through message feature matching, set the monitoring communication device, automatically analyze after monitoring, and enter step S209;

[0087] S208, automatically parse through message feature matching, and 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 real-time message with the parsed historical message, extract the same rules for different messages, and automatically parse them to obtain the key information of the real-time message, and further obtain the operating status of the secondary equipment.

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

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

[0092] S302, read the network card information: SNMP interface, MAC address; S303, check the message buffer area to see if there is a message, if there is a message, go to step S304; if there is no message, repeat steps S302-S303;

[0093] S304, obtaining message data, and further determining whether the message data has ended; if the message data has ended, then ending; if not, proceeding to step S305;

[0094] S305, putting the message data into the database;

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

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

[0097] The method for performing real-time message parsing on the communication message of the RJ45 network port communication secondary device comprises the following steps:

[0098] S401, open the message file, read the message file, obtain the message file features, and determine whether the message file can be parsed through feature recognition; if it can be parsed, go to step S402; if it cannot be parsed, discard it;

[0099] S402, adding the selected message file to the message database, and reading the selected message file;

[0100] S403, collect messages and obtain complete message data;

[0101] S404, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S405; if it has not been completely acquired, repeating steps S403-S404; if the message has ended, re-judging whether the message data has been completely acquired;

[0102] S405, determine whether the message has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S406;

[0103] S406, determine whether the message is a real-time message, if it is a real-time message, go to step S407; if it is a non-real-time message, go to step S530; S407, set the monitoring communication device through feature matching, automatically analyze after monitoring, and go to step S408;

[0104] S408, adding the message data to the database to obtain the 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 through message feature matching, and proceed to step S412;

[0108] S412, adding the parsed results to the database and storing them as message communication information;

[0109] S413, putting the message data into a database;

[0110] S414, automatically parsing the communication message data in the database.

[0111] The step of message feature matching includes:

[0112] S501, extracting 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 a string type and a hexadecimal type, if it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505;

[0115] S504, through feature matching, after matching, proceed to step S505;

[0116] S505, parsing the message;

[0117] S506: Through feature matching.

[0118] In summary, both the network port communication messages and serial port communication messages of the substation secondary equipment are parsed, and the parsing results are applied to auxiliary fault diagnosis; various communication protocol messages used by the secondary equipment in the substation are parsed, including IEC60870-5-104, IEC60870-5-103, DISA system telecontrol protocol, MODBUS and other communication protocols, and the parsing results are applied to auxiliary fault diagnosis; communication messages can be parsed online in real time and offline historical messages can be parsed, and the parsing results are applied to auxiliary fault diagnosis.

[0119] Example 2

[0120] On the basis of the first embodiment, this embodiment further provides a substation secondary equipment multi-protocol communication message analysis system, including a collection module, an analysis module, and an equipment fault diagnosis module;

[0121] The acquisition module is used to collect communication messages of secondary equipment in the substation, and perform historical message analysis and real-time message analysis on the collected communication messages;

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

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

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

[0125] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

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

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

[0128] Example 3

[0129] On the basis of the previous two embodiments, this embodiment provides a method for parsing multi-protocol communication messages of secondary equipment in a substation. 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: Experimental comparison of different methods

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

[0132] Experimental method: Generate or collect a certain amount of simulated communication message data, including historical messages and real-time messages, configure simulation software and performance monitoring tools, 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 the key performance indicators such as CPU usage 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 rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for parsing multi-protocol communication messages of secondary equipment in a substation, characterized in that: The following steps are included: By collecting the communication messages of the secondary equipment of the substation, the collected communication messages are analyzed for historical messages and real-time messages; Compare the parsed real-time messages with the parsed historical messages, extract the same rules from different messages, and automatically parse them to obtain the key information of the real-time messages, and further obtain the operating status of the secondary equipment; By comparing the obtained operating status of the secondary equipment with the corresponding historical data, it is determined whether the operating status of the secondary equipment is normal, and the basis for the operating status is given to assist technical personnel in completing equipment fault diagnosis.

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

3. The method for parsing multi-protocol communication messages of a substation secondary device according to claim 2, characterized in that: The method for parsing the communication message historically comprises the following steps: S101, open the RJ45 network port communication module, open the serial port communication module, scan the current network port and serial port, and select the corresponding network port and serial port; S102, setting the network port and the serial port to monitoring mode, and determining whether the communication message is monitored; if it is monitored, proceeding to step S103; if it is not monitored, repeating steps S101-S102; S103, collect messages and obtain complete message data; S104, identify the communication protocol through message feature matching, and determine whether it is parseable; if it is parseable, parse it and proceed to step S105; if it is not parseable, discard it; S105: 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 according to claim 3, characterized in that: The method for parsing historical messages of communication messages of a secondary device of an RJ45 network port communication comprises the following steps: S201, open the message file, read the message file, obtain the message file features, and determine whether the message file can be parsed through feature recognition. If it can be parsed, go to step S202; if it cannot be parsed, discard it; S202, adding the selected message file to the message database, and reading the selected message file; S203, collect message files and obtain complete message data; S204, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S205; if it has not been completely acquired, repeating steps S203-S204; if the message file has ended, re-judging whether the message data has been completely acquired; S205, determine whether the message file has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S206; S206, determine whether the message is a real-time message, if it is a real-time message, go to step S207; if it is a non-real-time message, go to step S208; S207, through message feature matching, set the monitoring communication device, automatically analyze after monitoring, and enter step S209; S208, automatically parse through message feature matching, and proceed to step S209; S209: Add the parsed results to the database and store them as message communication information.

5. The method for parsing multi-protocol communication messages of substation secondary equipment according to claim 4, characterized in that: The method for parsing historical messages of the communication messages of the Ethernet communication secondary device comprises the following steps: S301, select the Ethernet communication module, turn on the network card, and check whether the network card is turned on normally. If the network card is turned on normally, go to step S302; if the network card cannot be turned on normally, reselect the Ethernet communication module; S302, read the network card information: SNMP interface, MAC address; S303, check the message buffer area to see if there is a message, if there is a message, go to step S304; if there is no message, repeat steps S302-S303; S304, obtaining message data, and further determining whether the message data has ended; if the message data has ended, then ending; if not, proceeding to step S305; S305, putting the message data into the database; S306: Automatically parse the message data in the database.

6. The method for parsing multi-protocol communication messages of a substation secondary device according to claim 5, characterized in that: The method for performing real-time message parsing on the communication message of the RJ45 network port communication secondary device comprises the following steps: S401, open the message file, read the message file, obtain the message file features, and determine whether the message file can be parsed through feature recognition; if it can be parsed, go to step S402; if it cannot be parsed, discard it; S402, adding the selected message file to the message database, and reading the selected message file; S403, collect messages and obtain complete message data; S404, judging whether the message data has been completely acquired or whether the message has ended, if it has been completely acquired, proceeding to step S405; if it has not been completely acquired, repeating steps S403-S404; if the message has ended, re-judging whether the message data has been completely acquired; S405, determine whether the message has been stored in the database. If it has been stored in the database, discard it and re-read the message database to select another message to add to the database; if it has not been stored in the database, proceed to step S406; S406, determine whether the message is a real-time message, if it is a real-time message, go to step S407; If it is a non-real-time message, proceed to step S530; S407, set the monitoring communication device through feature matching, automatically analyze after monitoring, and proceed to step S408; S408, adding the message data to the database to obtain the 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, go to step S411; if it is a non-real-time message, go to step S413; S411, automatically parse through message feature matching, and proceed to step S412; S412, adding the parsed results to the database and storing them as message communication information; S413, putting the message data into a database; S414, automatically parsing the communication message data in the database.

7. The method for parsing multi-protocol communication messages of a substation secondary device according to claim 6, characterized in that: The step of message feature matching includes: S501, extracting 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 a string type and a hexadecimal type, if it is a string type, proceed to step S504; if it is a hexadecimal type, proceed to step S505; S504, through feature matching, after matching, proceed to step S505; S505, parsing the message; S506: Through feature matching.

8. 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 7, characterized in that: It includes acquisition module, analysis module, and equipment fault diagnosis module; The acquisition module is used to collect communication messages of secondary equipment in the substation, and perform historical message analysis and real-time message analysis on the collected communication messages; The parsing module is used to compare the parsed real-time message with the parsed historical message, extract the same rules from different messages, and automatically parse them to obtain key information of the real-time message; The equipment fault diagnosis module is used to output equipment fault diagnosis information.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the substation secondary equipment multi-protocol communication message parsing method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Patent Citations

  • Substation network online failure analysis method

    CN104979908A

  • Bus equipment listening system and method

    CN108809784A

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

    CN112234714A

  • Substation secondary system fault diagnosis positioning method

    CN117713345A

  • Message detection method and device and electronic equipment

    CN118042025A