[go: up one dir, main page]

CN105183572A - Method and device for configuration of electric power communication protocols - Google Patents

Method and device for configuration of electric power communication protocols Download PDF

Info

Publication number
CN105183572A
CN105183572A CN201510627015.5A CN201510627015A CN105183572A CN 105183572 A CN105183572 A CN 105183572A CN 201510627015 A CN201510627015 A CN 201510627015A CN 105183572 A CN105183572 A CN 105183572A
Authority
CN
China
Prior art keywords
stipulations
definition
communication
data
configuration
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.)
Pending
Application number
CN201510627015.5A
Other languages
Chinese (zh)
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.)
Rui Rui Technology (tianjin) Co Ltd
Original Assignee
Rui Rui Technology (tianjin) 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 Rui Rui Technology (tianjin) Co Ltd filed Critical Rui Rui Technology (tianjin) Co Ltd
Priority to CN201510627015.5A priority Critical patent/CN105183572A/en
Publication of CN105183572A publication Critical patent/CN105183572A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides a method and device for configuration of electric power communication protocols. In the process of depending on various communication protocols for data interaction between automatic software systems and automation equipment, between the automation equipment and between the automatic software systems, protocol procedures do not need to be developed or written, and data communication between the systems can be achieved only by using a visual protocol configuration tool to generate a protocol rule text file. Through the scheme, the development of communication protocols between heterogeneous systems is achieved, conventional protocol development needing to be achieved through programming is changed into the writing of a protocol definition text file, the protocol development difficulty and development cost are lowered greatly, the protocol development efficiency is improved, and the communication connection between the systems becomes simple.

Description

A kind of configuration method of power communication stipulations and device
Technical field
The invention belongs to communication field, particularly relate to a kind of configuration method and device of power communication stipulations.
Background technology
In electric system, communication protocol achieves equipment and data and control command mutual between equipment, automation system and equipment and automated system, is the important guarantee that electric system normally runs.
Existing communication protocol is of a great variety, and communication modes is different, and the understanding of each producer to stipulations is also not quite similar, although what all declare oneself to defer to is certain stipulations that are domestic or international standard, is in fact all the mutation of these stipulations; Also have many equipment manufacturers, in order to realize better dirigibility and extendability, the self-defined stipulations of choice for use, this is a no small challenge for system integrator, needs to spend no small manpower financial capacity to carry out programming development and realizes various isomery stipulations.For ensureing the safety and stability of system, often require that the implementor of stipulations will have deep understanding to stipulations, possess consummate program capability, this makes the debugging difficulty of system and the access difficulty between distinct device and system and cost greatly increase simultaneously.
Therefore, to the access of various communication protocol, be badly in need of a kind of general, configurable method, make general engineering staff after simple training, without the need to exploitation and programming, only need to input a stipulations definition text by a stipulations configuration instrument software or according to certain format, just can complete the cut-in operation of conventional stipulations.
Summary of the invention
In view of this, the object of the invention is to the configuration method and the device that propose a kind of power communication stipulations, efficiently solve the development problem of communication protocol between heterogeneous system, improve the efficiency of stipulations exploitation, the communication between system is connected and becomes simple.
For achieving the above object, the technical scheme of the invention is achieved in that and comprises the following steps a kind of configuration method of power communication stipulations:
Step one: for different stipulations, application stipulations configuration instrument generates different stipulations definition texts;
Step 2: use stipulations processing engine program, resolves and processes described stipulations definition text;
Step 3: after reading the parameter of stipulations definition text, call communication apparatus read-write interface, carry out collection and the parsing of data;
Step 4: calling system data read and write interface is by analysis result data writing systems.
Further, stipulations configuration instrument described in step one is visual stipulations configuration instrument.
Further, described in step one, stipulations definition text comprises communication port parameter definitional part, for incoming traffic type and communications parameter; Frame definitional part, for inputting frame head definition, control word definition, length definition, region frame data definition and verification mode definition; Data point definitional part, for defining the position of data point and region frame data, data point place; Communication process definitional part, for defining the Frame transmitting-receiving flow process of each communication process.
Another aspect of the present invention, a kind of configuration equipment of power communication stipulations, comprises stipulations configuration instrument module, for generating different stipulations definition texts for different stipulations; Stipulations processing engine module, for resolving and process described stipulations definition text; Communication apparatus module for reading and writing, for calling communication apparatus read-write interface, carries out collection and the parsing of data; System data module for reading and writing, for calling system data read and write interface by analysis result data writing systems.
Further, described stipulations configuration instrument module is visual stipulations configuration instrument module.
Further, described stipulations configuration instrument module comprises communication port parameter definition unit, for defining Text Input communication type and communications parameter in stipulations; Frame definition unit, defines for inputting frame head definition, control word definition, length definition, region frame data definition and verification mode at stipulations definition Text Input; Data point definition unit, for the position in stipulations definition text definition data point and region frame data, data point place; Communication process definition unit, for the Frame transmitting-receiving flow process at each communication process of stipulations definition text definition.
Relative to prior art, configuration method and the device of a kind of power communication stipulations of the present invention have following advantage: a kind of method that present invention is disclosed stipulations configuration, use this method, between automated software system and automation equipment, automation equipment, rely on various communication protocol between automated software system and carry out in the process of data interaction, stipulations program is write without the need to exploitation, only need to use visual stipulations configuration instrument to generate a reduction rule text, the data communication namely between feasible system.Pass through such scheme, the development problem of communication protocol between heterogeneous system will be solved, need the exploitation of the stipulations of programming realization to become to write stipulations definition text by traditional, greatly reduce difficulty and the cost of development of stipulations exploitation, improve the efficiency of stipulations exploitation, the communication between system is connected and becomes simple.
Accompanying drawing explanation
The accompanying drawing forming a part of the present invention is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.
In the accompanying drawings:
Fig. 1 is software configuration schematic diagram of the present invention.
Fig. 2 is stipulations processing engine routine processes flow process of the present invention.
Fig. 3 is parsing communication process of the present invention definition sub-process.
Embodiment
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Software configuration of the present invention as shown in Figure 1, for different stipulations, is applied visual stipulations configuration instrument E and is generated different stipulations definition text B.Stipulations definition text B is made up of four parts: B1 is the definition of communication port parameter, this part incoming traffic type (serial ports or network interface), and communications parameter (baud rate, ip address etc.); B2 is Frame definitional part, the definition of this part input frame head, control word definition, length definition, region frame data definition and verification mode definition; B3 is data point definitional part, the position of this part definition data point and region frame data, data point place; B4 is communication process definition, and this part defines the Frame transmitting-receiving flow process of each communication process.
A is general stipulations processing engine program, and this engine program is responsible for resolving and process different stipulations definition text B; After reading the B1 parameter of stipulations definition text B, call communication apparatus read-write interface C, carry out collection and the parsing of data, then calling system data read and write interface D is by analysis result data writing systems.
Stipulations processing engine routine processes flow process of the present invention is as shown in Figure 2:
Step 1: read stipulations definition text B;
Step 2: checking stipulations definition text validity, if invalid, then terminates;
Step 3: read the communication port parameter definition B1 part in stipulations definition text;
Step 4: open communication port, if failure, then terminates;
Step 5: call and resolve communication process definition B4 sub-process.
Parsing communication process of the present invention defines B4 sub-process as shown in Figure 3:
Step 1: whether issue Frame, if do not had, then goes to 3;
Step 2: issue frame according to Frame definition text B2 composition, and call communication apparatus read-write interface C and carry out data transmission;
Step 3: the need of reading data, if not, terminate;
Step 4: call communication apparatus read-write interface C and read data;
Step 5: according to Frame definition text B2 form, and data point definition text B3 completes Data Analysis;
Step 6: by calling system data read and write interface D by Data Analysis result writing system.
Stipulations in actual applications, can be defined text B and define in the mode of XML by the present invention, and develop visual stipulations configuration instrument E, define this XML file by the mode of graphic configuration.Development specification processing engine program A, exploitation communication apparatus read-write interface C, and use adapter design pattern, realize system data read-write interface D, drive stipulations to define text B by stipulations engine program A.
After completing above work, from now on, for each new stipulations or the mutation stipulations of system, only need the stipulations definition text B using visual software tool production XML format, after driving with stipulations engine A, stipulations communication can be realized.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a configuration method for power communication stipulations, is characterized in that, comprises the following steps:
Step one: for different stipulations, application stipulations configuration instrument generates different stipulations definition texts;
Step 2: use stipulations processing engine program, resolves and processes described stipulations definition text;
Step 3: after reading the parameter of stipulations definition text, call communication apparatus read-write interface, carry out collection and the parsing of data;
Step 4: calling system data read and write interface is by analysis result data writing systems.
2. the configuration method of a kind of power communication stipulations according to claim 1, is characterized in that, stipulations configuration instrument described in step one is visual stipulations configuration instrument.
3. the configuration method of a kind of power communication stipulations according to claim 1 and 2, is characterized in that, described in step one, stipulations definition text comprises communication port parameter definitional part, for incoming traffic type and communications parameter; Frame definitional part, for inputting frame head definition, control word definition, length definition, region frame data definition and verification mode definition; Data point definitional part, for defining the position of data point and region frame data, data point place; Communication process definitional part, for defining the Frame transmitting-receiving flow process of each communication process.
4. a configuration equipment for power communication stipulations, is characterized in that, comprises stipulations configuration instrument module, for generating different stipulations definition texts for different stipulations; Stipulations processing engine module, for resolving and process described stipulations definition text; Communication apparatus module for reading and writing, for calling communication apparatus read-write interface, carries out collection and the parsing of data; System data module for reading and writing, for calling system data read and write interface by analysis result data writing systems.
5. the configuration equipment of a kind of power communication stipulations according to claim 4, is characterized in that, described stipulations configuration instrument module is visual stipulations configuration instrument module.
6. the configuration equipment of a kind of power communication stipulations according to claim 4 or 5, is characterized in that, described stipulations configuration instrument module comprises communication port parameter definition unit, for defining Text Input communication type and communications parameter in stipulations; Frame definition unit, defines for inputting frame head definition, control word definition, length definition, region frame data definition and verification mode at stipulations definition Text Input; Data point definition unit, for the position in stipulations definition text definition data point and region frame data, data point place; Communication process definition unit, for the Frame transmitting-receiving flow process at each communication process of stipulations definition text definition.
CN201510627015.5A 2015-09-28 2015-09-28 Method and device for configuration of electric power communication protocols Pending CN105183572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510627015.5A CN105183572A (en) 2015-09-28 2015-09-28 Method and device for configuration of electric power communication protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510627015.5A CN105183572A (en) 2015-09-28 2015-09-28 Method and device for configuration of electric power communication protocols

Publications (1)

Publication Number Publication Date
CN105183572A true CN105183572A (en) 2015-12-23

Family

ID=54905667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510627015.5A Pending CN105183572A (en) 2015-09-28 2015-09-28 Method and device for configuration of electric power communication protocols

Country Status (1)

Country Link
CN (1) CN105183572A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665112A (en) * 2017-09-29 2018-02-06 北京紫优能源科技有限公司 A kind of configuration method and device of Electric control flow
CN108063695A (en) * 2017-12-14 2018-05-22 福建龙净环保股份有限公司 Communication instruction configuration method, configuration equipment and collecting method, harvester
CN108900597A (en) * 2018-06-26 2018-11-27 成都晶博电气科技有限公司 The method and the means of communication being marked using protocol data markup language
CN109150854A (en) * 2018-08-01 2019-01-04 浙江艾罗网络能源技术有限公司 Dynamic and configurable communication protocol converting system based on XML file
CN110956030A (en) * 2019-10-17 2020-04-03 贵州电网有限责任公司 Method and system for comparing configuration information of remote machine of transformer substation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on an embedded QNX operating system
CN202035012U (en) * 2011-04-21 2011-11-09 武汉钢铁(集团)公司 Protocol converter based on intelligent expert system
CN102685134A (en) * 2012-05-15 2012-09-19 深圳市中电电力技术股份有限公司 Communication managing machine capable of being comprehensively realized based on extensible markup language and dynamic library
US20140292566A1 (en) * 2013-04-01 2014-10-02 Fitbit, Inc. Portable biometric monitoring devices having location sensors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on an embedded QNX operating system
CN202035012U (en) * 2011-04-21 2011-11-09 武汉钢铁(集团)公司 Protocol converter based on intelligent expert system
CN102685134A (en) * 2012-05-15 2012-09-19 深圳市中电电力技术股份有限公司 Communication managing machine capable of being comprehensively realized based on extensible markup language and dynamic library
US20140292566A1 (en) * 2013-04-01 2014-10-02 Fitbit, Inc. Portable biometric monitoring devices having location sensors

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665112A (en) * 2017-09-29 2018-02-06 北京紫优能源科技有限公司 A kind of configuration method and device of Electric control flow
CN108063695A (en) * 2017-12-14 2018-05-22 福建龙净环保股份有限公司 Communication instruction configuration method, configuration equipment and collecting method, harvester
CN108063695B (en) * 2017-12-14 2020-09-29 福建龙净环保股份有限公司 Communication instruction configuration method and device and data acquisition method and device
CN108900597A (en) * 2018-06-26 2018-11-27 成都晶博电气科技有限公司 The method and the means of communication being marked using protocol data markup language
CN108900597B (en) * 2018-06-26 2021-06-22 成都晶博电气科技有限公司 Method for marking by protocol data marking language and communication method
CN109150854A (en) * 2018-08-01 2019-01-04 浙江艾罗网络能源技术有限公司 Dynamic and configurable communication protocol converting system based on XML file
CN109150854B (en) * 2018-08-01 2021-03-19 浙江艾罗网络能源技术股份有限公司 A Dynamically Configurable Communication Protocol Conversion System Based on XML File
CN110956030A (en) * 2019-10-17 2020-04-03 贵州电网有限责任公司 Method and system for comparing configuration information of remote machine of transformer substation
CN110956030B (en) * 2019-10-17 2023-11-24 贵州电网有限责任公司 Method and system for comparing configuration information of remote machine of transformer substation

Similar Documents

Publication Publication Date Title
CN105183572A (en) Method and device for configuration of electric power communication protocols
CN101262486B (en) Modbus bus analysis system based on built-in platform
CN106209503B (en) RPC interface test method and system
CN104965700A (en) Method and system for implementing driving on SPI equipment under VxWorks operating system
CN107817703B (en) A method of realizing that Industry Control host computer controls slave computer
CN111026460A (en) Method and device for quickly matching points by using area template in configuration tool
CN103634161A (en) Train communication protocol consistency detection device and train communication protocol consistency detection method
CN103746840A (en) Method and system for automatic checking of software version information of network equipment
CN102736617A (en) Method for diagnosing PROFIBUS-DP bus
CN105867295A (en) Communication method and upper computer
CN113485690A (en) API interface visual entity conversion method
CN105653477A (en) Double-port RAM-based method for communication of hard core and soft core in FPGA
CN104698962A (en) Programmable logic controller (PLC) communication method and system
CN202650333U (en) Cordwood system type programming language device
KR20200081657A (en) Platform of Smart Factory
CN109412856B (en) Network equipment brand non-difference management method and system
CN111369230A (en) One-key control system for setting value of substation automation equipment
CN109343460B (en) Method for establishing communication with a PLC
EP2838232A1 (en) Method for configuring maximum transmission unit (mtu), terminal and usb data card
CN106021696B (en) A visualization method for generating construction documents of communication system
CN201830280U (en) Tester for simulating PROFIBUS-DP master station communication
CN103377301A (en) House construction steel formwork drawing system
CN201577105U (en) A Coal Mine Operation Procedure Management System Network
CN106685702A (en) Big data acquisition method based on industrial control system security protection equipment
CN206115245U (en) Structure based on PLC backplane bus extension modbus communication port

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Liang Ruidong

Inventor after: Liu Xiaofeng

Inventor after: Luo Zhicheng

Inventor after: Li Dening

Inventor after: Ma Yanqing

Inventor before: Chu Chenggang

Inventor before: Wen Bin

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication