CN109150854A - Dynamic and configurable communication protocol converting system based on XML file - Google Patents

Dynamic and configurable communication protocol converting system based on XML file Download PDF

Info

Publication number
CN109150854A
CN109150854A CN201810862482.XA CN201810862482A CN109150854A CN 109150854 A CN109150854 A CN 109150854A CN 201810862482 A CN201810862482 A CN 201810862482A CN 109150854 A CN109150854 A CN 109150854A
Authority
CN
China
Prior art keywords
module
data
xml file
definition
acquisition
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
CN201810862482.XA
Other languages
Chinese (zh)
Other versions
CN109150854B (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.)
Zhejiang Elong Network Energy Technology Co Ltd
Original Assignee
Zhejiang Elong Network Energy 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 Zhejiang Elong Network Energy Technology Co Ltd filed Critical Zhejiang Elong Network Energy Technology Co Ltd
Priority to CN201810862482.XA priority Critical patent/CN109150854B/en
Publication of CN109150854A publication Critical patent/CN109150854A/en
Application granted granted Critical
Publication of CN109150854B publication Critical patent/CN109150854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to the communications fields, more particularly to a kind of dynamic and configurable communication protocol converting system based on XML file, comprising: running configuration module, specification configuration module, main control scheduler module, database module, specification parsing module, data acquisition module and plant stand platform communication module.Wherein, running configuration module, main control scheduler module, database module, specification parsing module, data acquisition module are sequentially connected, and specification configuration module, plant stand platform communication module are connect with specification parsing module respectively.By using the present invention, following effect may be implemented: the execution logic of main control scheduler module and rule are formed into running configuration XML file, the execution logic of specification parsing module and rule are formed into specification and configure XML file, is realized by XML technology and easily exchanges data between incompatible system.

Description

Dynamic and configurable communication protocol converting system based on XML file
Technical field
The present invention relates to the communications fields more particularly to a kind of dynamic and configurable communication protocol based on XML file to convert system System.
Background technique
Communication protocol converting system is chiefly used in remote station, the main Microcomputer Protection for completing whole station, automatic system, observing and controlling The data centralized management of equal smart electronics system and data screening, with scheduling or centralized control center's communication interaction.
Existing communication protocol converting system converts the device data that different modes access through specification, forms unified format Data, station level is sent to by industry ethernet, thus for plant stand mainframe computer system information exchange provide it is unified Data-interface.
The communication protocol converting system that each producer provides at present, although all having the function that data unify rule schemata conversion Can, but transverse compatibility is poor, is mainly reflected in several aspects: lack unified configuration tool interface, engineering configuration file It cannot data set interface disunity general, with plant stand mainframe computer system platform.In addition, the data collection capacity of field device is huge Greatly, low to the transfer efficiency of data.
Summary of the invention
To solve the above problems, the present invention proposes a kind of dynamic and configurable communication protocol converting system based on XML file.
Dynamic and configurable communication protocol converting system based on XML file, comprising: running configuration module, specification configure mould Block, main control scheduler module, database module, specification parsing module, data acquisition module and plant stand platform communication module, institute Running configuration module is stated for formulating the execution logic and rule of main control scheduler module, and by the execution of main control scheduler module Logic and rule form running configuration XML file, and the running configuration XML file includes to acquisition node in data acquisition module Quantity, execute sequence, operating mode definition, further include to data type, coefficient in acquisition node data set collected The definition of parameter and quantity;The specification configuration module is used to formulate the execution logic and rule of specification parsing module, and will rule About the execution logic of parsing module and rule form specification and configure XML file, and the specification configuration XML file includes according to data The communication protocol type of acquisition module, respectively to the definition of different communication protocol type;The main control scheduler module is for reading The running configuration XML file of running configuration module is taken to set with the quantity to acquisition node, execution sequence, operating mode, And according to the tables of data of the definition creation database module of data type, coefficient parameter and quantity in data set;The database Module is used to the collected data set of collection in worksite terminal carrying out real-time storage according to data tableau format;The specification parsing Module configures XML file according to specification and carries out data query, solution to live access device for reading specification configuration XML file Analysis and remote control commands are executed, and to sending the plant stand platform data to station level to handle;The data acquisition module is used In being acquired to obtain data set by data of the acquisition node to live access device, and will be acquired by specification parsing module To data set be sent to specification parsing module;The plant stand platform communication module is used to establish TCP/IP by ethernet communication Data needed for plant stand platform are sent to the station level network equipment by connection.
Further, the data type includes remote signalling, telemetering and remote pulse, the coefficient parameter include remote signalling, telemetering and Data corresponding to remote pulse, the quantity include the number of remote signalling, data corresponding to telemetering and remote pulse.
Further, the communication protocol type according to data acquisition module, respectively to different communication protocol type Definition includes to command function code, register address, register number and the conventions data parsing rule in different communication specification Definition then, the conventions data resolution rules include height byte order, register offset, byte offset and position offset.
Further, the running configuration XML file further includes the definition to the communication fault-tolerance mechanism inside acquisition node, The definition of the communication fault-tolerance mechanism includes data time-out acquisition definition and data message error definition, the data time-out acquisition When definition is included in the acquisition of data time-out or data message error definition, main control scheduler module sends number to data acquisition module It is acquired again according to acquisition instructions with the data to live access device.
By using the present invention, following effect may be implemented: the execution logic of main control scheduler module and rule are formed The execution logic of specification parsing module and rule are formed specification and configure XML file, pass through XML technology by running configuration XML file Realization easily exchanges data between incompatible system.
Detailed description of the invention
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is the integral module connection figure of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, technical scheme of the present invention will be further described, but the present invention is not limited to these realities Apply example.
XML refers to extensible markup language (EXtensible Markup Language), the son of standard generalized markup language Collection, is a kind of for marking electronic document to make it have structural markup language.In electronic computer, label refers to computer Information symbol to understand is can handle between computer by such label comprising various information such as article etc..It It is very suitable to WWW transmission, provides unified operation logic and rule to describe and exchange independently of application program or supplier Structural data, be technology cross-platform, dependent on content in Internet environment, and handle distributed frame now The effective tool of information.All configuration files are write with the format of XMl inside configuration file, it is cross-platform into When row data interaction, it can be with cross operating system, can also be across the platform of programming language.
Main idea is that the execution logic of main control scheduler module and rule are formed running configuration XML text The execution logic of specification parsing module and rule are formed specification and configure XML file, realized by XML technology incompatible by part System between easily exchange data, while forming XML file tool compared to the data set for arriving data collecting module collected There is higher exchange efficiency.
In conjunction with attached drawing 1, a kind of dynamic and configurable communication protocol converting system based on XML file, comprising: running configuration mould Block, specification configuration module, main control scheduler module, database module, specification parsing module, data acquisition module and plant stand are flat Platform communication module.Wherein, running configuration module, main control scheduler module, database module, specification parsing module, data acquisition Module is sequentially connected, and specification configuration module, plant stand platform communication module are connect with specification parsing module respectively.
In the present embodiment, running configuration module is used to formulate the execution logic and rule of main control scheduler module, and will The execution logic and rule of main control scheduler module form running configuration XML file.
Wherein, running configuration XML file includes to the quantity of acquisition node, execution sequence, work in data acquisition module The definition of mode.Data acquisition module is connect with live access device, and acquisition section is set according to the quantity of live access device The quantity of point.The execution sequence of acquisition node includes the boot sequence and task schedule sequence of acquisition node.The work of acquisition node Operation mode is the operating mode under serial port or under ethernet communication mode.Running configuration XML file is to meet reality The acquisition of the data of border demand and higher efficiency carries out dynamic definition to the quantity, execution sequence, operating mode of acquisition node.
In the present embodiment, running configuration XML file further includes the definition to data set collected.The definition of data set Definition including data type, coefficient parameter and quantity.Wherein, data type refers to remote signalling, telemetering and remote pulse, coefficient parameter Refer to that data corresponding to remote signalling, telemetering and remote pulse, quantity refer to the number of the data.By to collected data set Definition, for obtain required for acquire data set.
In the present embodiment, running configuration XML file further includes the definition to the communication fault-tolerance mechanism inside acquisition node, The definition of communication fault-tolerance mechanism includes data time-out acquisition definition and data message error definition, and the acquisition definition of data time-out includes In the acquisition of data time-out or data message error definition, main control scheduler module sends data acquisition to data acquisition module and refers to Order is acquired again with the data to live access device.It is right if acquiring still time-out or data message error again The acquisition node is detected, and is repaired to its failure.
In the present embodiment, specification configuration module is used to formulate the execution logic and rule of specification parsing module, and will rule About the execution logic of parsing module and rule form specification and configure XML file, and the specification configuration XML file includes according to data The communication protocol type of acquisition module, respectively to the definition of different communication protocol type.The monitoring data class of live access device Type multiplicity, communication protocol are also different.Such as: DLT-645-2007 communication protocol is used with distribution box;With disengaging wiretap Protection supervisory equipment in cabinet uses IEC103 specification;ModbusRTU specification is used with frequency changing power device.It is configured in specification Command function code, register address, register number and conventions data resolution rules, the rule can be defined in XML file About data resolution rules include height byte order, register offset, byte offset and position offset.Specification configuration module is according to existing The communication protocol that field access device producer provides, fast integration is without modifying program code.
In the present embodiment, main control scheduler module is used to read the running configuration XML file of running configuration module with right The quantity of acquisition node, execution sequence, operating mode are set, and the definition of the data set according to running configuration XML file Create the tables of data of database module.
Tables of data includes terminal table and forwarding table.As shown in table 1, terminal table includes field, type and explanation, and field includes Name, type, value, unit and datatime, corresponding type are respectively character string, and corresponding explanation is respectively Data name, remote signalling, telemetering, remote pulse type identification, data value, mutation mark and data renewal time.As shown in table 2, it forwards Table increases id on the basis of terminal table in field, and corresponding type is shaping, and corresponding explanation is forwarding data Label.Acquisition node will be adopted according to data, main control scheduler module is acquired in running configuration XML file to the definition of data set The data collected are filled according to terminal tableau format requirement, and forwarding table is identified on the basis of terminal table, and is used for It is forwarded to other platforms.
Table 1: terminal table
Field Type Explanation
name Character string Data name
type Character string Remote signalling, telemetering, remote pulse type identification
value Character string Data value
unit Character string Mutation mark
datatime Character string Data renewal time
Table 2: forwarding table
In the present embodiment, database module is used for the collected data set of collection in worksite terminal according to the lattice of tables of data Formula carries out real-time storage.
In the present embodiment, specification parsing module configures XML file according to specification for reading specification configuration XML file Data query, parsing are carried out to live access device and execute remote control commands, and to sending to the plant stand platform number of station level According to being handled.
In the present embodiment, data acquisition module by data of the acquisition node to live access device for being acquired And specification parsing module is sent for collected data set by specification parsing module.Data acquisition module mainly passes through hardware Serial ports sends data query frame, including terminal address, register address, inquiry frame check mode etc., and live access device returns Data answering frame, data answering frame obtained by the corresponding serial ports buffer area connected of reading terminals, and to returned data frame Carry out validation verification, if data effectively if collected data set is transmitted.Validation verification is to returned data frame Length and its check code verified.
In the present embodiment, plant stand platform communication module equals plant stand for establishing TCP/IP connection by ethernet communication Data needed for platform are sent to the station level network equipment.
In the present embodiment, respectively to the quantity of acquisition node in data acquisition module, execute sequence, operating mode is determined Justice, the definition of data set of acquisition and the definition of the communication fault-tolerance mechanism inside acquisition node form running configuration XML file. According to the communication protocol type of data acquisition module, respectively to the definition of different communication protocol type, specification configuration XML text is formed Part.Come the grab type, acquisition mode, communication mode of configuration data with running configuration XML file and specification configuration XML file Deng.XML file is formed compared to the data set for arriving data collecting module collected, the present invention does not need all configurations to scene Data are handled, and only need definition primary for each scene.It is realized between incompatible system by XML technology Data are easily exchanged, while there is higher exchange efficiency.
Those skilled in the art can make various modifications to described specific embodiment Or supplement or be substituted in a similar manner, however, it does not deviate from the spirit of the invention or surmounts the appended claims determines The range of justice.

Claims (4)

1. the dynamic and configurable communication protocol converting system based on XML file characterized by comprising running configuration module, rule About configuration module, main control scheduler module, database module, specification parsing module, data acquisition module and plant stand platform are logical Believe module,
The running configuration module is used to formulate the execution logic and rule of main control scheduler module, and by main control scheduler module Execution logic and rule formed running configuration XML file, the running configuration XML file includes adopting in data acquisition module Collect the quantity of node, execute the definition of sequence, operating mode, further includes to data class in acquisition node data set collected The definition of type, coefficient parameter and quantity;
The specification configuration module is used to formulate the execution logic and rule of specification parsing module, and holding specification parsing module Row logic and rule form specification and configure XML file, and the specification configuration XML file includes the communication according to data acquisition module Protocol type, respectively to the definition of different communication protocol type;The main control scheduler module is for reading running configuration module Running configuration XML file with to acquisition node quantity, execute sequence, operating mode and set, and according in data set The tables of data of the definition creation database module of data type, coefficient parameter and quantity;
The database module for being deposited the collected data set of collection in worksite terminal according to data tableau format in real time Storage;
The specification parsing module configures XML file to live access device for reading specification configuration XML file, according to specification It carries out data query, parsing and executes remote control commands, and to sending the plant stand platform data to station level to handle;
The data acquisition module is used to be acquired to obtain data set by data of the acquisition node to live access device, and Specification parsing module is sent by collected data set by specification parsing module;
The plant stand platform communication module is used to establish TCP/IP connection for data needed for plant stand platform by ethernet communication It is sent to the station level network equipment.
2. the dynamic and configurable communication protocol converting system according to claim 1 based on XML file, which is characterized in that The data type includes remote signalling, telemetering and remote pulse, and the coefficient parameter includes remote signalling, data corresponding to telemetering and remote pulse, The quantity includes the number of remote signalling, data corresponding to telemetering and remote pulse.
3. the dynamic and configurable communication protocol converting system according to claim 1 based on XML file, which is characterized in that The communication protocol type according to data acquisition module includes: respectively logical to difference to the definition of different communication protocol type Believe the definition of the command function code, register address, register number and conventions data resolution rules in specification, the specification Data resolution rules include height byte order, register offset, byte offset and position offset.
4. the dynamic and configurable communication protocol converting system according to claim 1 based on XML file, which is characterized in that The running configuration XML file further includes the definition to the communication fault-tolerance mechanism inside acquisition node, the communication fault-tolerance mechanism Definition include data time-out acquisition definition and data message error definition, it is super that data time-out acquisition definition is included in data When acquisition or when data message error definition, main control scheduler module sends data acquisition instructions to existing to data acquisition module The data of field access device are acquired again.
CN201810862482.XA 2018-08-01 2018-08-01 Dynamic configurable communication protocol conversion system based on XML file Active CN109150854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810862482.XA CN109150854B (en) 2018-08-01 2018-08-01 Dynamic configurable communication protocol conversion system based on XML file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810862482.XA CN109150854B (en) 2018-08-01 2018-08-01 Dynamic configurable communication protocol conversion system based on XML file

Publications (2)

Publication Number Publication Date
CN109150854A true CN109150854A (en) 2019-01-04
CN109150854B CN109150854B (en) 2021-03-19

Family

ID=64798526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810862482.XA Active CN109150854B (en) 2018-08-01 2018-08-01 Dynamic configurable communication protocol conversion system based on XML file

Country Status (1)

Country Link
CN (1) CN109150854B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956030A (en) * 2019-10-17 2020-04-03 贵州电网有限责任公司 Method and system for comparing configuration information of remote machine of transformer substation
CN111404902A (en) * 2020-03-08 2020-07-10 苏州浪潮智能科技有限公司 Method and device for realizing serial communication message matching based on database
CN112333231A (en) * 2020-09-18 2021-02-05 许继集团有限公司 Method and system for realizing configured universal protocol based on mqtt Internet of things
CN113381970A (en) * 2020-03-10 2021-09-10 南京南瑞继保电气有限公司 Main station end broadband measurement preposed data acquisition and processing system
CN115396752A (en) * 2022-07-29 2022-11-25 国电南京自动化股份有限公司 Redis-based biplane data acquisition method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158346A (en) * 2010-11-23 2011-08-17 北京神州泰岳软件股份有限公司 Information acquisition system and method based on cloud computing
CN102685134A (en) * 2012-05-15 2012-09-19 深圳市中电电力技术股份有限公司 Communication managing machine capable of being comprehensively realized based on extensible markup language and dynamic library
CN105183572A (en) * 2015-09-28 2015-12-23 云瑞科技(天津)有限公司 Method and device for configuration of electric power communication protocols

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158346A (en) * 2010-11-23 2011-08-17 北京神州泰岳软件股份有限公司 Information acquisition system and method based on cloud computing
CN102685134A (en) * 2012-05-15 2012-09-19 深圳市中电电力技术股份有限公司 Communication managing machine capable of being comprehensively realized based on extensible markup language and dynamic library
CN105183572A (en) * 2015-09-28 2015-12-23 云瑞科技(天津)有限公司 Method and device for configuration of electric power communication protocols

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111404902A (en) * 2020-03-08 2020-07-10 苏州浪潮智能科技有限公司 Method and device for realizing serial communication message matching based on database
CN111404902B (en) * 2020-03-08 2022-05-10 苏州浪潮智能科技有限公司 Method and device for realizing serial communication message matching based on database
CN113381970A (en) * 2020-03-10 2021-09-10 南京南瑞继保电气有限公司 Main station end broadband measurement preposed data acquisition and processing system
CN113381970B (en) * 2020-03-10 2023-09-08 南京南瑞继保电气有限公司 Front-end data acquisition and processing system for broadband measurement of main station end
CN112333231A (en) * 2020-09-18 2021-02-05 许继集团有限公司 Method and system for realizing configured universal protocol based on mqtt Internet of things
CN115396752A (en) * 2022-07-29 2022-11-25 国电南京自动化股份有限公司 Redis-based biplane data acquisition method and system

Also Published As

Publication number Publication date
CN109150854B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN109150854A (en) Dynamic and configurable communication protocol converting system based on XML file
CN103281197B (en) A kind of ForCES collocation method based on NETCONF
CN108667725A (en) A kind of industrial AnyRouter and implementation method based on a variety of accesses and edge calculations
CN109150640A (en) A kind of method for discovering network topology and system based on double layer network agreement
CN103248512B (en) The generation method and system of application layer topological structure in communication network
CN102932431B (en) Message-routing-based state monitoring data interface configuration method
CN103516541A (en) Configuration information automatic management method based on intelligent transformer substation
KR101743904B1 (en) Gateway and tranforming method between iec61850 protocol and dnp3.0 protocol
CN104134163A (en) Power distribution network graph and model management system and power distribution network graph and model management method based on CIM/E and CIM/G
CN104468274A (en) Cluster monitor and management method and system
WO2013008476A1 (en) Dynamic infrastructure administration system
CN107291060A (en) Large-scale industry management information system and its control method based on oracle database
CN105760498A (en) Achievement method of XML data and relational database matching
KR101397380B1 (en) System for integrating meta-modeling
CN101632076A (en) Realtime unification management information data conversion and monitoring apparatus and method for thereof
CN112328323B (en) Relay protection device capability description file generation system
KR102382564B1 (en) Data Parsing and Configuration method for Building OPC UA Environment based on AutomationML
CN208401886U (en) Internet of things equipment data management system
CN102571436A (en) Comprehensive monitoring device for SNMP (Simple Network Management Protocol) and management method thereof
CN106302485B (en) The bi-directional conversion system of OPC standard and power remote agreement
CN101227327B (en) Method for concentrating network managing system and uploading lower level alarm information
CN102904967A (en) Intelligent Internet of things data exchange platform scheme based on hardware electromechanical field
CN109274688A (en) A kind of design and implementation methods of substation's specification conversion function
KR102457759B1 (en) Method for collecting data using the Asset Administration Shell(AAS) in a smart manufacturing system
JP6970788B2 (en) Data transmission method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 311500 No. 288 Shizhu Road, Tonglu Economic Development Zone, Hangzhou City, Zhejiang Province

Applicant after: Zhejiang arrow network energy technology Co.,Ltd.

Address before: 311500 No. 288 Shizhu Road, Tonglu Economic Development Zone, Hangzhou City, Zhejiang Province

Applicant before: ZHEJIANG SOLAX NETWORK ENERGY TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant