CN112217802A - IEC103 message analysis method and device based on multistage classification mode - Google Patents

IEC103 message analysis method and device based on multistage classification mode Download PDF

Info

Publication number
CN112217802A
CN112217802A CN202010989360.4A CN202010989360A CN112217802A CN 112217802 A CN112217802 A CN 112217802A CN 202010989360 A CN202010989360 A CN 202010989360A CN 112217802 A CN112217802 A CN 112217802A
Authority
CN
China
Prior art keywords
message
messages
mode
class
iec103
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010989360.4A
Other languages
Chinese (zh)
Other versions
CN112217802B (en
Inventor
郑涛
苏彭鹏
张诗鹏
张振兴
卓颖
付晓曦
林圣�
邱平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maintenance Branch of State Grid Fujian Electric Power Co Ltd
Original Assignee
Maintenance Branch of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maintenance Branch of State Grid Fujian Electric Power Co Ltd filed Critical Maintenance Branch of State Grid Fujian Electric Power Co Ltd
Priority to CN202010989360.4A priority Critical patent/CN112217802B/en
Publication of CN112217802A publication Critical patent/CN112217802A/en
Application granted granted Critical
Publication of CN112217802B publication Critical patent/CN112217802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Abstract

The invention relates to an IEC103 message analysis method based on a multistage classification mode, which comprises the following message classification steps and message analysis steps; the message classification step is as follows: classifying all IEC103 messages in a class I manner according to whether the IEC103 messages are remote control messages or not; classifying a plurality of functional message classes according to the functions of the messages, and classifying the messages in the first class of messages in the I level at the II level; the message parsing step is as follows: collecting data information containing messages; the preset analysis process comprises an A mode and a B mode, and only the first class of messages of the I level in the data information are analyzed in the A mode; in the B mode, only the I-level second-class message in the data information is analyzed; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched; and outputting the analyzed data to an upper computer.

Description

IEC103 message analysis method and device based on multistage classification mode
Technical Field
The invention relates to an IEC103 message analysis method and device based on a multistage classification mode, and belongs to the technical field of power system data transmission.
Background
An IEC103 protocol based on an RS485 communication mode is usually adopted in a 500kV conventional transformer substation interval layer network, and in the process of daily maintenance, maintenance personnel often pay attention to the external problems of the device and ignore the interpretation of network messages in the substation, but the interpretation of the messages is an important means for effectively improving the working efficiency. The message formats displayed by the existing message analysis tools are all original 16-system formats, message information is not sorted, and the readability is poor, which is also a main reason for restricting the maintainers from actively analyzing the messages.
The existing inspection mode has the following problems:
1. readability is poor. The conventional message analysis tool does not analyze or translate the message, only displays the message by the most original 16-system number, and displays a large number of unaligned numbers, so that field maintainers have trouble looking up and key data are easy to miss;
2. the field applicability is not strong, no message classification is carried out, and no reading is carried out on key messages. For field service, there are two general problems,
problem 1 is that the communication of the AB network of the protection device is abnormal or interrupted, and the fault is mainly caused by the communication system between the protection device and the management machine being damaged, so that the fault point is determined to be on the protection side, the communication line or the protection management machine. The existing analysis tool does not carry out message combing, especially when multiple protection devices are in cascade communication, a large number of heartbeat messages and general calling messages can be generated, and a maintainer cannot quickly find a message of a fault device or an access message issued by a main station in the presence of a large number of original messages, so that the maintainer uses less message analysis tools, but message reading is an important means for effectively improving the working efficiency.
Problem 2 is that the master station remote control is unsuccessful. Due to many factors of unsuccessful remote control, for example, it is possible that the command is not successfully issued to the master station, the protection device does not send a remote control confirmation message, and the like. The existing message analysis tool does not highlight the key points, and when a large number of messages are analyzed, the key points of the remote control messages are not highlighted, so that a maintainer cannot quickly look up related information to analyze faults.
The IEC103 message analysis method and device based on the multi-level classification mode are provided, the analyzed result is translated in a Chinese form, the multi-level classification method is used for message analysis, analysis key point analysis is carried out on the remote control message, and the method and device have the advantages of being high in readability, simple to operate and convenient to carry.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an IEC103 message analysis method and device based on a multi-level classification mode, the analyzed result is translated in a Chinese form, the multi-level classification method is used for message analysis, and the analysis key point analysis is carried out on the remote control message.
The technical scheme of the invention is as follows:
the first technical scheme is as follows:
an IEC103 message analysis method based on a multistage classification mode comprises the following message classification steps and message analysis steps;
the message classification step is as follows:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
the message parsing step is as follows:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
and outputting the analyzed data to an upper computer.
Further, the functional message category includes a heartbeat message, an operation information message and a fixed value information message; the heartbeat messages comprise a master station calling message and a heartbeat message when the substation has no information to upload; the operation information message comprises an initialization message, a time synchronization message, a total calling message, a signal resetting message, an alarm message and a recording information message; the fixed value information message comprises a fixed value reading message, a fixed value writing message and a soft pressing plate reading message.
Furthermore, each piece of acquired data information containing the message is placed into a ring-shaped cache queue.
The second technical scheme is as follows:
an IEC103 message analysis device based on a multistage classification mode is characterized in that: the system comprises a message detection module, a main CPU, a power supply module and an analysis data output module;
the message detection module is used for collecting data information containing messages and transmitting the data information to the main CPU;
the main CPU is used for executing the following steps:
and (3) classifying IEC103 messages in multiple stages:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
and (3) analyzing the IEC103 message:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
the power supply module is used for supplying power to electric appliances in the device;
the analytic data output module is used for connecting the main CPU and the upper computer and transmitting the data analyzed by the main CPU to the upper computer.
Further, the message detection module is a 485 communication circuit using a MAX3485CSA chip main body; the main CPU adopts an STM32F103ZET6 chip; the analysis data output is a USB serial port conversion circuit which takes a CH340G chip as a main body.
The invention has the following beneficial effects:
1. the invention relates to an IEC103 message analysis method based on a multistage classification mode, which is characterized in that a multistage classification method is utilized to analyze messages, non-remote control messages and remote control messages are classified, the messages in the non-remote control messages are classified according to functions, message information is simplified, the non-remote control messages are simply analyzed, and the analysis result can reflect the communication process between devices; the remote control message is analyzed and analyzed independently, so that a maintainer can conveniently and quickly acquire fault information; the analyzed data can be translated in a Chinese form, and the readability is improved.
2. The IEC103 message analysis device based on the multistage classification mode is small in number of functional modules, simple to operate and easy to carry.
Drawings
FIG. 1 is a flow chart of a first embodiment of the present invention;
FIG. 2 is a flow chart of message parsing;
fig. 3 is a schematic diagram of an apparatus according to a second embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example one
Referring to fig. 1 and 2, an IEC103 message parsing method based on a multi-level classification mode includes the following message classification steps and message parsing steps;
the message classification step is as follows:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
the message parsing step is as follows:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
and outputting the analyzed data to an upper computer.
Further, the functional message category includes a heartbeat message, an operation information message and a fixed value information message; the heartbeat messages comprise a master station calling message and a heartbeat message when the substation has no information to upload; the operation information message comprises an initialization message, a time synchronization message, a total calling message, a signal resetting message, an alarm message and a recording information message; the fixed value information message comprises a fixed value reading message, a fixed value writing message and a soft pressing plate reading message.
Furthermore, each piece of acquired data information containing the message is placed into a ring-shaped cache queue.
In the embodiment, a multi-level classification method is used for analyzing messages, non-remote control messages and remote control messages are classified, the messages in the non-remote control messages are classified according to functions, message information is simplified, the non-remote control messages are simply analyzed, and the analysis result can reflect the communication process between devices; the remote control message is analyzed and analyzed independently, so that a maintainer can conveniently and quickly acquire fault information; the analyzed data can be translated in a Chinese form, and the readability is improved.
Example two:
referring to fig. 3, an IEC103 message parsing apparatus based on a multi-level classification mode is characterized in that: the system comprises a message detection module, a main CPU, a power supply module and an analysis data output module;
the message detection module is used for collecting data information containing messages and transmitting the data information to the main CPU;
the main CPU is used for executing the following steps:
and (3) classifying IEC103 messages in multiple stages:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
and (3) analyzing the IEC103 message:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
the power supply module is used for supplying power to electric appliances in the device; the device comprises a main power supply and a power supply module for converting 5V to 3.3V, wherein the main power supply adopts a USB interface standard, and a large-capacity charger can be used for supplying power to the device in actual use; and the 5V to 3.3V power supply module mainly supplies power to STM32 and MAX3485 CSA.
The analytic data output module is used for connecting the main CPU and the upper computer and transmitting the data analyzed by the main CPU to the upper computer.
Further, the message detection module is a 485 communication circuit which uses a MAX3485CSA chip main body, is connected with each protection device and the protection management machine through a wiring terminal block, and is responsible for collecting level information on 485 communication lines of the protection devices and the protection management machine and transmitting the information to the main CPU for analysis; the main CPU adopts an STM32F103ZET6 chip; the analyzed data output is a USB serial port conversion circuit which takes a CH340G chip as a main body and is connected with an upper computer through a USB interface, the upper computer can be a computer, and the computer displays the analyzed data through a serial port debugging assistant.
This embodiment functional module is few, has easy operation, carries convenient advantage.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. An IEC103 message analysis method based on a multistage classification mode is characterized by comprising the following message classification steps and message analysis steps;
the message classification step is as follows:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
the message parsing step is as follows:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
and outputting the analyzed data to an upper computer.
2. The IEC103 message analysis method based on the multilevel classification mode according to claim 1, characterized in that: the functional message category comprises a heartbeat message, an operation information message and a fixed value information message; the heartbeat messages comprise a master station calling message and a heartbeat message when the substation has no information to upload; the operation information message comprises an initialization message, a time synchronization message, a total calling message, a signal resetting message, an alarm message and a recording information message; the fixed value information message comprises a fixed value reading message, a fixed value writing message and a soft pressing plate reading message.
3. The IEC103 message analysis method based on the multilevel classification mode according to claim 1, characterized in that: and putting each piece of acquired data information containing the message into a ring-shaped cache queue.
4. An IEC103 message analysis device based on a multistage classification mode is characterized in that: the system comprises a message detection module, a main CPU, a power supply module and an analysis data output module;
the message detection module is used for collecting data information containing messages and transmitting the data information to the main CPU;
the main CPU is used for executing the following steps:
and (3) classifying IEC103 messages in multiple stages:
classifying the messages in class I, classifying the messages of non-remote control messages into first class I messages and classifying the remote control messages into second class I messages according to whether all the IEC103 messages are remote control messages or not;
classifying the messages in the first class of the I level according to the functions of the messages, and dividing the messages in the first class of the I level into the classes of the functional messages according to the functions of the messages;
and (3) analyzing the IEC103 message:
collecting data information containing messages;
the preset analysis process comprises an A mode and a B mode, and in the A mode, only the first class of messages of the I level in the data information are analyzed, the transmission direction and the device address of the messages are obtained, and the class of the obtained functional messages is classified according to the II level; in the B mode, only the I-level second type message in the data information is analyzed, and the original message, the transmission direction, the device address, the transmission reason and the message function of the message are obtained; in an initial state, the mode A is defaulted, and after a switching instruction is issued by an upper computer, the mode B is switched;
the power supply module is used for supplying power to electric appliances in the device;
the analytic data output module is used for connecting the main CPU and the upper computer and transmitting the data analyzed by the main CPU to the upper computer.
5. The IEC103 message analysis device based on the multilevel classification manner according to claim 4, characterized in that: the message detection module is a 485 communication circuit with a MAX3485CSA chip main body; the main CPU adopts an STM32F103ZET6 chip; the analysis data output is a USB serial port conversion circuit which takes a CH340G chip as a main body.
CN202010989360.4A 2020-09-18 2020-09-18 IEC103 message analysis method and device based on multistage classification mode Active CN112217802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010989360.4A CN112217802B (en) 2020-09-18 2020-09-18 IEC103 message analysis method and device based on multistage classification mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010989360.4A CN112217802B (en) 2020-09-18 2020-09-18 IEC103 message analysis method and device based on multistage classification mode

Publications (2)

Publication Number Publication Date
CN112217802A true CN112217802A (en) 2021-01-12
CN112217802B CN112217802B (en) 2022-09-16

Family

ID=74049016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010989360.4A Active CN112217802B (en) 2020-09-18 2020-09-18 IEC103 message analysis method and device based on multistage classification mode

Country Status (1)

Country Link
CN (1) CN112217802B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153718A1 (en) * 2009-12-22 2011-06-23 Sling Media Inc. Systems and methods for establishing network connections using local mediation services
CN103197948A (en) * 2013-04-03 2013-07-10 国电南瑞南京控制系统有限公司 Communication protocol script analyzing method of electricity intelligent equipment
CN103730959A (en) * 2013-12-19 2014-04-16 广东电网公司电力科学研究院 Method for testing communication protocols of power distribution network equipment
US20150341207A1 (en) * 2012-06-29 2015-11-26 Kyland Technology Co. Ltd Configuration information auto-management method based on intelligent substation
CN107547540A (en) * 2017-08-30 2018-01-05 上海许继电气有限公司 The protocol massages monitoring methods of IEC 60,870 5 104
CN109038827A (en) * 2018-08-22 2018-12-18 广东电网有限责任公司 It is a kind of to have the substation's telemechanical apparatus for accidentally controlling tracing function
CN109167762A (en) * 2018-08-14 2019-01-08 杭州迪普科技股份有限公司 A kind of IEC104 message checking method and device
CN109587161A (en) * 2018-12-21 2019-04-05 国网四川省电力公司电力科学研究院 The monitoring method of smart grid remote control command transmission overall process information
CN109617754A (en) * 2018-10-10 2019-04-12 国网浙江省电力有限公司检修分公司 A kind of realization intelligent substation IEC61850 communication message visualization method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153718A1 (en) * 2009-12-22 2011-06-23 Sling Media Inc. Systems and methods for establishing network connections using local mediation services
US20150341207A1 (en) * 2012-06-29 2015-11-26 Kyland Technology Co. Ltd Configuration information auto-management method based on intelligent substation
CN103197948A (en) * 2013-04-03 2013-07-10 国电南瑞南京控制系统有限公司 Communication protocol script analyzing method of electricity intelligent equipment
CN103730959A (en) * 2013-12-19 2014-04-16 广东电网公司电力科学研究院 Method for testing communication protocols of power distribution network equipment
CN107547540A (en) * 2017-08-30 2018-01-05 上海许继电气有限公司 The protocol massages monitoring methods of IEC 60,870 5 104
CN109167762A (en) * 2018-08-14 2019-01-08 杭州迪普科技股份有限公司 A kind of IEC104 message checking method and device
CN109038827A (en) * 2018-08-22 2018-12-18 广东电网有限责任公司 It is a kind of to have the substation's telemechanical apparatus for accidentally controlling tracing function
CN109617754A (en) * 2018-10-10 2019-04-12 国网浙江省电力有限公司检修分公司 A kind of realization intelligent substation IEC61850 communication message visualization method
CN109587161A (en) * 2018-12-21 2019-04-05 国网四川省电力公司电力科学研究院 The monitoring method of smart grid remote control command transmission overall process information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪正江: "基于网络监听的IEC60870-5-104通信规约测试方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Also Published As

Publication number Publication date
CN112217802B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN107045663B (en) Visual online checking system and method for secondary safety measure operation ticket
CN109687590B (en) Grading outage and restoration reporting method and system
CN100470976C (en) Integrated automation converting station debugging apparatus
CN108051726A (en) High voltage direct current Control protection system board test device
CN105528736A (en) Interval figure automatic generation method based on intelligent layout arrangement
CN110932406B (en) Remote signaling information checking method and device for intelligent substation scheduling master station
CN113300765A (en) Intelligent identification and diagnosis method for power digital link
CN216216887U (en) Online power broadband carrier information acquisition and storage device
CN112217802B (en) IEC103 message analysis method and device based on multistage classification mode
CN213338432U (en) Hardware-in-loop test system for multi-channel controller
CN219842683U (en) Multi-type network port access device for testing power monitoring system
CN210839614U (en) Handheld terminal supporting detection of communication protocols of multiple types of ammeter modules
CN105048629B (en) The hard pressing plate anti-misoperation warning system of relay protection
CN111443258A (en) Power grid fault recording graph conversion method and device
CN110297796A (en) Accumulation of energy unit multi-serial ports communication agreement real time parsing system and its analytic method
CN101699706B (en) Treating method of fault information system sub-station for overhauling state of protective relaying device
CN210129768U (en) Novel distribution network data acquisition terminal
CN108767986A (en) A kind of intelligence distribution transformer terminals monitoring system
CN201682276U (en) Relay protection and fault analysis system for power grid
CN217335206U (en) Portable relay protection constant value inspection device
CN212229479U (en) Information acquisition device
CN220139589U (en) Distribution line infrared inspection system based on mobile terminal
CN211454780U (en) Remote meter reading equipment platform
CN216792727U (en) Central control device testing device with carrier receiver
CN216560838U (en) Multifunctional signal detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant