CN104333540B - A kind of substation automation system communication protocol dynamic implementation method - Google Patents

A kind of substation automation system communication protocol dynamic implementation method Download PDF

Info

Publication number
CN104333540B
CN104333540B CN201410567656.1A CN201410567656A CN104333540B CN 104333540 B CN104333540 B CN 104333540B CN 201410567656 A CN201410567656 A CN 201410567656A CN 104333540 B CN104333540 B CN 104333540B
Authority
CN
China
Prior art keywords
communication protocol
finite state
collection
keyword
state machine
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.)
Active
Application number
CN201410567656.1A
Other languages
Chinese (zh)
Other versions
CN104333540A (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.)
Nari Technology Co Ltd
Original Assignee
Nari Technology 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 Nari Technology Co Ltd filed Critical Nari Technology Co Ltd
Priority to CN201410567656.1A priority Critical patent/CN104333540B/en
Publication of CN104333540A publication Critical patent/CN104333540A/en
Application granted granted Critical
Publication of CN104333540B publication Critical patent/CN104333540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a kind of substation automation system communication protocol dynamic implementation method, text description including analyzing communication protocol, convert thereof into finite state machine, finite state machine finite state collection, event input set, processing behavior aggregate, the mapping function collection of status change and the part of original state 5 composition;Finite state collection, event input set, processing behavior aggregate are expressed with basic format respectively, the basic format is:" keyword=description character string ";Mapping function collection is write, including sequentially write from left to right:Current state, receive incoming message, perform operation operation and current state conversion results;Unified definition is carried out to the keyword in script;Grammer in script is described collectively.Finite state machine is applied in communication protocol modeling by the present invention, realizes framework by one communication protocol of construction, realizes the configuration of communication protocol.

Description

A kind of substation automation system communication protocol dynamic implementation method
Technical field
The present invention relates to a kind of substation automation system communication protocol dynamic implementation method, belong to communication technical field.
Background technology
Communication protocol species is various in current domestic electric substation automation system, the existing mark formulated by each standardization body Quasi- communication protocol, such as IEC60870 series, MODBUS, DNP, CDT etc., also there is the customized nonstandard agreement of each equipment manufacturer.But Even widely used IEC60870 series of standard protocols, its 4 kinds of planning standards:IEC60870-5-101、IEC60870-5- 102nd, IEC60870-5-103, IEC60870-5-104, longer due to formulating the cycle, option is more in agreement, and each department make Different with the understanding of unit, each device manufacturer to agreement, all there are many child releases in 4 kinds of planning standards.
Transformer substation communication supervisor as substation data center, it is necessary to from each smart machine in station and different scheduling stations Communication, due to the diversity of agreement and the invisibility of communication processor internal agreement processing procedure, usual communication interface debugging Need of work takes more debug time.Simultaneously, communication processor needs to safeguard the protocol library of an enormous amount, to agreement Any modification be required for changing the program of communication processor, also increase the difficulty of the version management of communication processor producer.
At present, the Finite State Machine in computer science is generally used for the dynamic behavior modeling to system, leads to Cross with state diagram come visable representation, be the strong tools to reaction equation system modelling.In the past 20 years, finite state machine and state The formalization mechanism of figure has obtained many researchs, effectively supports the modeling of various complex behaviors.
The content of the invention
It is an object of the invention to provide a kind of automation of transformation substations based on finite state machine and custom script language System communication protocol dynamic realizing method, finite state machine is applied in communication protocol modeling, passes through one communication protocols of construction View realizes framework, realizes the configuration of communication protocol.
To reach above-mentioned purpose, the technical solution adopted in the present invention is:A kind of substation automation system communication agreement Dynamic realizing method, comprise the following steps:
Step 1:Analyze the text description of communication protocol, convert thereof into finite state machine, finite state machine by:For Description sends the finite state collection of message, for describing to receive the event input set of message, the processing for representing processing behavior Behavior aggregate, the mapping function collection for representing the status change between finite state machine and the part of original state 5 composition;
Step 2:Finite state collection, event input set, processing behavior aggregate are expressed with basic format respectively, it is described basic Form is:" keyword=description character string ";
Step 3:Mapping function collection is write, including sequentially write from left to right:Current state, receive incoming message, hold Row operation operation and current state conversion results;
Step 4:Unified definition is carried out to the keyword in script, including:Finite state machine keyword definition, hair Send and receive expression formula keyword definition, processing expression formula keyword definition and calculation expression keyword definition;
Step 5:Grammer in script is described collectively, including:Finite state collection grammer explanation, event are defeated Enter to collect grammer explanation, processing behavior aggregate grammer explanation and mapping function collection grammer explanation.
Further, the finite state collection is all transmission orders extracted from communication protocol.
Further, the event input set is all reception orders extracted from communication protocol.
Further, the description character string is immediate.
Further, the description character string is calculation expression.
Further, the description character string is made up of multiple substrings, and each substring form is " keyword:Calculation expression Formula ".
Compared with prior art, the beneficial effect that is reached of the present invention is:
(1) a kind of substation automation system communication agreement based on finite state machine and custom script language is provided Dynamic realizing method, either client or service end agreement, also no matter agreement is balanced type or unbalanced, and transformer station leads to Believe that supervisor all can use same communication module and custom script language to realize, realize the configuration of communication protocol;
(2) invention defines a kind of script to describe communication protocol, limited by the programming Control to script The operation of state machine processor, different communication protocol correspond to different shell scripts, identical communication protocol shell script Identical, an abundant shell script storehouse can be formed by accumulating over a long period, and facilitate onsite application;
(3) finite state collection, event input set, processing behavior aggregate use unified basic format:" keyword=description Character string ", these three expression formula uniform formats, is easy to learn and use;
(4) customized script has autgmentability, convenient Function Extension later.
Brief description of the drawings
Fig. 1 is the inquiry/response communication protocol processes flow chart using the present invention.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following examples are only used for clearly illustrating the present invention Technical scheme, and can not be limited the scope of the invention with this.
Step 1:The text description of communication protocol is analyzed, converts thereof into finite state machine.
Finite state machine is made up of following 5 part:
Finite state collection:It is all transmission orders extracted from communication protocol, for describing to send message, Ke Yiyong [STATE_x] represent finite state collection code, wherein, x for numeral, each finite state collection by transmission message coding packet Formed with message name send_type is sent, send message coding packet as that there must be item.
Event input set:It is all reception orders extracted from communication protocol, for describing to receive message, with [INPUT_x] is represented, each event input set is made up of reception message coding packet and reception message name rece_type, Wherein packet is must have item.
Handle behavior aggregate:According to current state [STATE_x] and current input [INPUT_x], write according to communication protocol [OUTPUT_x], for representing corresponding processing behavior.
Mapping function collection:According to current state [STATE_x] and current input [INPUT_x], write according to communication protocol [TRANSLATE_x], for representing the status change between finite state machine.
Original state:The original state of finite state machine is represented, is defaulted as [STATE_1].
Step 2:Finite state collection, event input set, processing behavior aggregate are expressed with basic format respectively, basic format For:" keyword=description character string ".
Each finite state collection, event input set, processing behavior aggregate are made up of several expression items, each express Xiang Zuo Side is keyword, and right side is description character string.Keyword includes packet, send_type, test_input/test_input Items such as [x], description character string can be multiple substrings, and each substring form is " keyword:Calculation expression ", each substring Can be immediate or calculation expression, each byte in substring is with CSV.
" 0xeb, 0x90,0xeb, 0x90,0xeb, 0x90, Addr, 0x00,0x00, the SUM [6 such as packet=:8] ", table It is immediate to show that the state sends 10 bytes, 0x5a etc., SUM [6:8] calculation expression, represent to take the tired of the 6th to the 8th byte Add and check code.
For processing behavior aggregate, keyword represents process object in basic format, describes string representation pending data. It is exemplified below:
Such as:Yc4=" (byte10*256+byte9)/100 ", represents the value of right side calculation expression inserting telemetry The 4th point of storehouse.
Such as:Soe21=" state:Byte9==2, year:byte15,month:byte16,day:byte17,hour: byte18,min:byte19,second:Byte20 ", represent this be No. 21 point in remote signalling storehouse SOE information, description character string by Multiple substring compositions, describe every content of SOE information.Substring expression " state:Byte9==2 ", left side state tables Showing the state of SOE information, right side is calculation expression, represents SOE state values, when the 9th byte of reception is 2, SOE states It is worth for 1, other are 0.Substring expression " year:Byte15 ", left side year represent the year of SOE information, and right side is calculating Expression formula, represent time value.Remaining substring expression represents the moon of SOE information, day, hour, minute, second respectively.
Such as gps=" year:asc(byte12)*1000+asc(byte13)*100+asc(byte14)*10+asc (byte15),month:asc(byte11)*10+asc(byte10),day:asc(byte9*0x100+byte8),hour:asc (byte3)*10+asc(byte2),min:asc(byte5)*10+asc(byte4),second:asc(byte7)*10+asc (byte6) information when this is GPS pairs ", is represented, description character string is made up of multiple substrings, in items when describing GPS pairs Hold.Substring " year:Asc (byte12) * 1000+asc (byte13) * 100+asc (byte14) * 10+asc (byte15) ", it is left Side year represents year at GPS pairs, and right side is calculation expression, represents time value, and wherein asc () function representation will connect The byte data of receipts is converted into binary data by ASCII character.
Step 3:Mapping function collection is write, including sequentially write from left to right:Current state, receive incoming message, hold Row operation operation and current state conversion results.
Such as:Mapping function is:STATE_1--->INPUT_2--->OUTPUT_2--->STATE_2, then it represents that current shape When state is in STATE_1, if reception incoming message is INPUT_2, arithmetic operation OUTPUT_2 is performed, and current state is turned It is changed to STATE_2.
Step 4:Unified definition is carried out to the keyword in script, including:Finite state machine keyword definition, hair Send and receive expression formula keyword definition, processing expression formula keyword definition and calculation expression keyword definition.Such as table 1-5 institutes Show, be each several part keyword definition table of comparisons, table 6 is the operator and function supported in calculation expression.
Table 1:The finite state machine keyword definition table of comparisons
Table 2:Send and receive the expression formula keyword definition table of comparisons
Table 3:Handle the expression formula keyword definition table of comparisons:
Table 4:The calculation expression keyword definition table of comparisons
Table 5:Other keyword definition tables of comparisons
Table 6:The operator and function supported in calculation expression:
Step 5:Grammer in script is described collectively, including:Finite state collection grammer explanation, event are defeated Enter to collect grammer explanation, processing behavior aggregate grammer explanation and mapping function collection grammer explanation.Grammer if table 7-10 is each several part is said It is bright.
Table 7:Finite state collection grammer explanation
Table 8:Event input set grammer
Table 9:Handle behavior aggregate grammer
Table 10:Mapping function collection grammer
As shown in figure 1, it is a kind of inquiry/response communication protocol processes flow chart, communication processor is according to [STATE_1] first Assembling sends message, then waits reception device returned packet [INPUT_1] or [INPUT_2] or [INPUT_3], and according to dress The different messages for putting return enter alignment processing module, afterwards according to mapping function [TRANSLATE_1] by State Transferring extremely [STATE_2], send after ACK confirms, due to without receiving and processing module, further according to mapping function [TRANSLATE_2] by shape State is changed to [STATE_1], completes a communication process.
Below by taking MODBUS agreement kilowatt-hour meter equipment as an example, the configuration file to be communicated with MODBUS agreement kilowatt-hour meters is provided:
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, some improvement and deformation can also be made, these are improved and deformation Also it should be regarded as protection scope of the present invention.

Claims (4)

1. a kind of substation automation system communication protocol dynamic implementation method, it is characterised in that comprise the following steps:
Step 1:Analyze the text description of communication protocol, convert thereof into finite state machine, finite state machine by:For describing Send the finite state collection of message, the event input set for describing reception message, the processing action for representing processing behavior Collection, the mapping function collection for representing the status change between finite state machine and the part of original state 5 composition;
Step 2:Finite state collection, event input set, processing behavior aggregate are expressed with basic format respectively, the basic format For:" keyword=description character string ";
Step 3:Mapping function collection is write, including sequentially write from left to right:Current state, receive incoming message, perform fortune Row operation and current state conversion results;
Step 4:Unified definition is carried out to the keyword in script, including:Finite state machine keyword definition, transmission connect Receive expression formula keyword definition, processing expression formula keyword definition and calculation expression keyword definition;
Step 5:Grammer in script is described collectively, including:Finite state collection grammer explanation, event input set Grammer explanation, processing behavior aggregate grammer explanation and mapping function collection grammer explanation;
The finite state collection is all transmission orders extracted from communication protocol;
The event input set is all reception orders extracted from communication protocol.
2. substation automation system communication protocol dynamic implementation method according to claim 1, it is characterised in that described Description character string is immediate.
3. substation automation system communication protocol dynamic implementation method according to claim 1, it is characterised in that described Description character string is calculation expression.
4. substation automation system communication protocol dynamic implementation method according to claim 1, it is characterised in that described Description character string is made up of multiple substrings, and each substring form is " keyword:Calculation expression ".
CN201410567656.1A 2014-10-22 2014-10-22 A kind of substation automation system communication protocol dynamic implementation method Active CN104333540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410567656.1A CN104333540B (en) 2014-10-22 2014-10-22 A kind of substation automation system communication protocol dynamic implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410567656.1A CN104333540B (en) 2014-10-22 2014-10-22 A kind of substation automation system communication protocol dynamic implementation method

Publications (2)

Publication Number Publication Date
CN104333540A CN104333540A (en) 2015-02-04
CN104333540B true CN104333540B (en) 2018-02-13

Family

ID=52408192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410567656.1A Active CN104333540B (en) 2014-10-22 2014-10-22 A kind of substation automation system communication protocol dynamic implementation method

Country Status (1)

Country Link
CN (1) CN104333540B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119187A (en) * 1995-11-30 2000-09-12 Excel Switching Corp. Telecommunication system with universal API using generic messages having user functionality associated with predetermined functions, primitives and logical states for defining PPL component state machines
CN103197948A (en) * 2013-04-03 2013-07-10 国电南瑞南京控制系统有限公司 Communication protocol script analyzing method of electricity intelligent equipment
CN103414694A (en) * 2013-07-21 2013-11-27 华北电力大学(保定) Communication service mapping and encapsulating method for transformer substation monitoring system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119187A (en) * 1995-11-30 2000-09-12 Excel Switching Corp. Telecommunication system with universal API using generic messages having user functionality associated with predetermined functions, primitives and logical states for defining PPL component state machines
CN103197948A (en) * 2013-04-03 2013-07-10 国电南瑞南京控制系统有限公司 Communication protocol script analyzing method of electricity intelligent equipment
CN103414694A (en) * 2013-07-21 2013-11-27 华北电力大学(保定) Communication service mapping and encapsulating method for transformer substation monitoring system

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
一种基于EFSM的一致性测试序列生成方法;邸剑,王晓月,李丽芬;《电子制作》;20131202;全文 *
一种基于EFSM的变电站通信协议一致性测试模型描述方法;王延安,余义传,张丹,肖登明;《电力自动化设备》;20080410;第28卷(第4期);全文 *
基于IEC 61850 GOOSE通信机制的简易母线保护在均禾变电站的应用;叶石丰;《中国优秀硕士学位论文全文数据库》;20110615;C042-437 *
基于有限状态机的绝缘在线监测装置软件模型与实现;单茂华,刘骥,白钟;《测控技术》;20070918;第26卷(第9期);全文 *
基于有限状态机的远动规约的设计和实现;傅钦翠,陈剑云;《电网技术》;20060630;第30卷;第214-217页 *
有限状态机技术在GOOSE报文传输;殷志良,刘云峰;《华东电力》;20090324;第37卷(第3期);第0422-0424页 *

Also Published As

Publication number Publication date
CN104333540A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
US20160014177A1 (en) Cim/e and cim/g-based graphics-model-integrated apparatus and method for distribution network
CN107621987B (en) Unmanned aerial vehicle general ground station software architecture system based on message
CN105653616A (en) Communication protocol conversion method for master station in power system
CN104363131A (en) Electric power communication protocol exception detection method based on dynamic extensible finite state
CN103779962A (en) Intelligent telecontrol machine based method for converting 61850 model to CIM model
CN105025056A (en) Internet of Things information collection and monitoring system design method
WO2015149595A1 (en) Iec61850-based communication simulation method for insulation on-line monitoring device
CN110768372A (en) IEC61850 standard-based protection information system source end modeling method
CN105141475A (en) Auxiliary debugging system for station level equipment of intelligent substation
CN103996276A (en) Remote transmission system and method for data of power plant
CN105225164A (en) Intelligent substation GOOSE virtual secondary circuit graphic method
CN102780592A (en) Methods and systems for detecting compatibility issues within an electrical grid control system
US10210177B2 (en) Distribution management system
CN103676669A (en) Method and system for checking motion information
CN104333540B (en) A kind of substation automation system communication protocol dynamic implementation method
Hussain et al. An open-source framework for publishing/subscribing IEC 61850 R-GOOSE and R-SV
CN102970201B (en) Mobility integrated method for industrial field device
CN101105747A (en) Power station communication system and its reduction procedure implement method
CN102208998B (en) Field programmable gate array (FPGA)-based common object request broker architecture (CORBA) communication device
CN107493269B (en) Intelligent electronic equipment of transformer substation and data sending and receiving method and system thereof
CN105242592B (en) The method and system of HART meter parameter are directly read by PROFIBUS PA active station
CN106878103A (en) A kind of MMS messages telemetry extracting method
CN202904867U (en) Long-distance concentrated metering multi-protocol data collection device
CN204758712U (en) Conformance testing appearance based on many CPU structure
Ebeid et al. Presenting user behavior from main meter data

Legal Events

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