CN109150854B - Dynamic configurable communication protocol conversion system based on XML file - Google Patents

Dynamic configurable communication protocol conversion system based on XML file Download PDF

Info

Publication number
CN109150854B
CN109150854B CN201810862482.XA CN201810862482A CN109150854B CN 109150854 B CN109150854 B CN 109150854B CN 201810862482 A CN201810862482 A CN 201810862482A CN 109150854 B CN109150854 B CN 109150854B
Authority
CN
China
Prior art keywords
data
module
protocol
xml file
communication
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
CN201810862482.XA
Other languages
Chinese (zh)
Other versions
CN109150854A (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.)
Solax Power Network Technology Zhejiang Co Ltd
Original Assignee
Solax Power Network Technology Zhejiang 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 Solax Power Network Technology Zhejiang Co Ltd filed Critical Solax Power Network Technology Zhejiang 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

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/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 invention relates to the field of communication, in particular to a dynamic configurable communication protocol conversion system based on an XML file, which comprises: the system comprises an operation configuration module, a protocol configuration module, a main control process module, a database module, a protocol analysis module, a data acquisition module and a station platform communication module. The operation configuration module, the main control process module, the database module, the protocol analysis module and the data acquisition module are sequentially connected, and the protocol configuration module and the station platform communication module are respectively connected with the protocol analysis module. By using the present invention, the following effects can be achieved: the execution logic and the rules of the main control process module form an operation configuration XML file, the execution logic and the rules of the protocol analysis module form a protocol configuration XML file, and data can be easily exchanged between incompatible systems through XML technology.

Description

Dynamic configurable communication protocol conversion system based on XML file
Technical Field
The invention relates to the field of communication, in particular to a dynamic configurable communication protocol conversion system based on an XML file.
Background
The communication protocol conversion system is mainly used for telecontrol workstations, mainly completes data centralized management and data screening of intelligent electronic systems such as microcomputer protection, automatic systems, measurement and control of the whole station, and the like, and is in communication interaction with a dispatching or centralized control center.
The existing communication protocol conversion system converts equipment data accessed in different modes into data with a unified format through protocols, and the data is sent to a station control layer through an Ethernet bus, so that a unified data interface is provided for information interaction of a main computer system of a station.
At present, although communication protocol conversion systems provided by various manufacturers have a function of converting a unified data protocol format, the system has poor lateral compatibility and is mainly embodied in several aspects: lack of a uniform configuration tool interface, inability of engineering configuration files to be universal, and non-uniform interface with the data set of the plant site host computer system platform. In addition, the field device has huge data acquisition amount and low data conversion efficiency.
Disclosure of Invention
In order to solve the above problems, the present invention provides a system for converting a dynamically configurable communication protocol based on an XML file.
A dynamic configurable communication protocol conversion system based on XML files comprises: the system comprises an operation configuration module, a specification configuration module, a main control process module, a database module, a specification analysis module, a data acquisition module and a station platform communication module, wherein the operation configuration module is used for formulating execution logic and rules of the main control process module and forming the execution logic and the rules of the main control process module into an operation configuration XML file, and the operation configuration XML file comprises definitions of the number, execution sequence and working mode of acquisition nodes in the data acquisition module and definitions of data types, coefficient parameters and the number in data sets acquired by the acquisition nodes; the protocol configuration module is used for formulating execution logic and rules of the protocol analysis module and forming the execution logic and the rules of the protocol analysis module into a protocol configuration XML file, and the protocol configuration XML file comprises definitions of different communication protocol types according to the communication protocol types of the data acquisition module; the main control process module is used for reading an operation configuration XML file of the operation configuration module to set the number, the execution sequence and the working mode of the acquisition nodes, and establishing a data table of the database module according to the definitions of the data type, the coefficient parameters and the number in the data set; the database module is used for storing the data set acquired by the field acquisition terminal in real time according to the format of a data table; the protocol analysis module is used for reading a protocol configuration XML file, performing data query, analysis and remote control instruction execution on the field access equipment according to the protocol configuration XML file, and processing station platform data sent to the station control layer; the data acquisition module is used for acquiring data of the field access equipment through the acquisition node to obtain a data set and sending the acquired data set to the protocol analysis module through the protocol analysis module; and the plant station platform communication module is used for establishing a TCP/IP connection through Ethernet communication and transmitting data required by the plant station platform to the plant station control layer network equipment.
Furthermore, the data types comprise remote signaling, remote measuring and remote pulse, the coefficient parameters comprise data corresponding to the remote signaling, the remote measuring and the remote pulse, and the number comprises the number of the data corresponding to the remote signaling, the remote measuring and the remote pulse.
Further, according to the communication protocol type of the data acquisition module, the definitions of different communication protocol types respectively include definitions of instruction function codes, register addresses, register numbers and protocol data parsing rules in different communication protocols, and the protocol data parsing rules include high and low byte order, register offset, byte offset and bit offset.
Furthermore, the operation configuration XML file further includes a definition of a communication fault-tolerant mechanism inside the collection node, where the definition of the communication fault-tolerant mechanism includes a data overtime collection definition and a data message error definition, and the data overtime collection definition includes that when data overtime collection or the data message error definition is performed, the main control process module sends a data collection instruction to the data collection module to perform data collection again on the field access device.
By using the present invention, the following effects can be achieved: the execution logic and the rules of the main control process module form an operation configuration XML file, the execution logic and the rules of the protocol analysis module form a protocol configuration XML file, and data can be easily exchanged between incompatible systems through XML technology.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is an overall module connection diagram of an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
XML refers to EXtensible Markup Language (EXtensible Markup Language), a subset of standard generalized Markup Language, and is a Markup Language used to mark electronic documents to be structured. In electronic computers, a label refers to a symbol of information that can be understood by a computer, and by this label, various information such as articles and the like can be handled between computers. It is well suited for world wide web transport, provides uniform operating logic and rules to describe and exchange structured data independent of the application or vendor, is a cross-platform, content-dependent technology in the Internet environment, and is an effective tool today for processing distributed structural information. All configuration files inside the configuration files are written in XMl format, and when data interaction is carried out across platforms, the configuration files can cross operating systems and can also cross platforms of programming languages.
The main idea of the invention is to form the execution logic and rules of the main control process module into an operation configuration XML file, and form the execution logic and rules of the protocol parsing module into a protocol configuration XML file, so that data can be exchanged easily between incompatible systems by XML technology, and meanwhile, compared with the method of forming an XML file by a data set acquired by the data acquisition module, the method has higher exchange efficiency.
With reference to fig. 1, a system for converting dynamically configurable communication protocols based on XML documents includes: the system comprises an operation configuration module, a protocol configuration module, a main control process module, a database module, a protocol analysis module, a data acquisition module and a station platform communication module. The operation configuration module, the main control process module, the database module, the protocol analysis module and the data acquisition module are sequentially connected, and the protocol configuration module and the station platform communication module are respectively connected with the protocol analysis module.
In this embodiment, the operation configuration module is configured to formulate an execution logic and a rule of the main control process module, and form the execution logic and the rule of the main control process module into an operation configuration XML file.
The operation configuration XML file comprises definitions of the number, execution sequence and working mode of the collection nodes in the data collection module. The data acquisition module is connected with the field access equipment, and the number of the acquisition nodes is set according to the number of the field access equipment. The execution sequence of the acquisition nodes comprises the starting sequence and the task scheduling sequence of the acquisition nodes. The working mode of the acquisition node is a working mode in a serial communication mode or an Ethernet communication mode. And dynamically defining the number, execution sequence and working mode of the acquisition nodes for operating and configuring the XML file to meet the actual requirement and efficiently acquire data.
In this embodiment, the run configuration XML file also includes definitions for the collected data sets. The definition of the data set includes definitions of data type, coefficient parameters and quantity. The data types refer to remote signaling, remote measuring and remote pulse, the coefficient parameters refer to data corresponding to the remote signaling, the remote measuring and the remote pulse, and the quantity refers to the number of the data. And defining the acquired data set to acquire the data set required to be acquired.
In this embodiment, the operation configuration XML file further includes a definition of a communication fault tolerance mechanism inside the collection node, where the definition of the communication fault tolerance mechanism includes a data overtime collection definition and a data message error definition, and the data overtime collection definition includes that, when data overtime collection or the data message error definition occurs, the main control process module sends a data collection instruction to the data collection module to collect data of the field access device again. If the collection is still overtime or the data message is wrong again, the collection node is detected, and the fault is repaired.
In this embodiment, the protocol configuration module is configured to formulate execution logic and rules of the protocol parsing module, and form the execution logic and rules of the protocol parsing module into a protocol configuration XML file, where the protocol configuration XML file includes definitions of different communication protocol types according to the communication protocol types of the data acquisition module. The monitoring data types of the field access equipment are various, and the communication protocols are different. For example: DLT-645-2007 communication protocol is adopted with the distribution box; the protection measurement and control device in the incoming and outgoing switch cabinet adopts an IEC103 protocol; and a ModbusRTU protocol is adopted with the variable-frequency power supply device. Instruction function codes, register addresses, register numbers and protocol data parsing rules are defined in a protocol configuration XML file, wherein the protocol data parsing rules comprise high and low byte sequences, register offsets, byte offsets and bit offsets. The protocol configuration module is quickly integrated without modifying program codes according to communication protocols provided by field access equipment manufacturers.
In this embodiment, the main control process module is configured to read an operation configuration XML file of the operation configuration module to set the number of the collection nodes, the execution sequence, and the working mode, and create a data table of the database module according to a definition of a data set of the operation configuration XML file.
The data table includes a terminal table and a forwarding table. As shown in table 1, the terminal table includes a field, a type, and a description, where the field includes a name, a type, a value, a unit, and a datatime, the corresponding types are character strings, and the corresponding descriptions are a data name, a remote signaling, a remote sensing, a remote pulse type identifier, a data value, a mutation identifier, and a data update time. As shown in table 2, the forwarding table adds id to a field on the basis of the terminal table, where the corresponding type is shaping and the corresponding description is a forwarding data label. The collection node collects data according to the definition of the data set in the operation configuration XML file, the main control process module fills the collected data according to the format requirement of the terminal table, and the forwarding table is identified on the basis of the terminal table and is used for forwarding to other platforms.
Table 1: terminal meter
Field(s) Type (B) Description of the invention
name Character string Name of data
type Character string Remote signaling, remote measuring, remote pulse type identification
value Character string Data value
unit Character string Mutation identification
datatime Character string Data update time
Table 2: forwarding table
Figure BDA0001750051620000051
Figure BDA0001750051620000061
In this embodiment, the database module is configured to store the data set acquired by the field acquisition terminal in real time according to a format of a data table.
In this embodiment, the protocol parsing module is configured to read a protocol configuration XML file, perform data query, parsing and remote control instruction execution on the field access device according to the protocol configuration XML file, and process the plant platform data sent to the station control layer.
In this embodiment, the data collection module is configured to collect data of the field access device through the collection node and send the collected data set to the protocol analysis module through the protocol analysis module. The data acquisition module mainly sends a data query frame through a hardware serial port, wherein the data query frame comprises a terminal address, a register address, a query frame calibration mode and the like, and a data response frame returned by the field access device is acquired through a serial port buffer zone correspondingly connected with the reading terminal, validity verification is carried out on the returned data frame, and if the data is valid, the acquired data set is transmitted. The validity verification is to verify the length of the returned data frame and the check code thereof.
In this embodiment, the plant station platform communication module is configured to establish a TCP/IP connection through ethernet communication to send data required by the plant station platform to the plant control layer network device.
In this embodiment, the running configuration XML file is formed by the number of the collection nodes in the data collection module, the execution sequence, the definition of the working mode, the definition of the collected data set, and the definition of the communication fault-tolerant mechanism inside the collection nodes. And respectively defining different communication protocol types according to the communication protocol types of the data acquisition module to form a protocol configuration XML file. The collection type, collection mode, communication mode and the like of the data are configured by the operation configuration XML file and the specification configuration XML file. Compared with the method that the data set acquired by the data acquisition module forms an XML file, the method and the system do not need to process all configuration data of the site, and only need to define once for each site. The data can be easily exchanged between incompatible systems by the XML technology, and meanwhile, the exchange efficiency is higher.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (4)

1. A dynamic configurable communication protocol conversion system based on XML files is characterized by comprising: an operation configuration module, a protocol configuration module, a main control process module, a database module, a protocol analysis module, a data acquisition module and a station platform communication module,
the operation configuration module is used for formulating execution logic and rules of the main control process module and forming the execution logic and the rules of the main control process module into an operation configuration XML file, wherein the operation configuration XML file comprises definitions of the number, execution sequence and working mode of acquisition nodes in the data acquisition module and further comprises definitions of data types, coefficient parameters and the number of data sets acquired by the acquisition nodes;
the protocol configuration module is used for formulating execution logic and rules of the protocol analysis module and forming the execution logic and the rules of the protocol analysis module into a protocol configuration XML file, and the protocol configuration XML file comprises definitions of different communication protocol types according to the communication protocol types of the data acquisition module; the main control process module is used for reading an operation configuration XML file of the operation configuration module to set the number, the execution sequence and the working mode of the acquisition nodes, and establishing a data table of the database module according to the definitions of the data type, the coefficient parameters and the number in the data set;
the database module is used for storing the data set acquired by the field acquisition terminal in real time according to the format of a data table;
the protocol analysis module is used for reading a protocol configuration XML file, performing data query, analysis and remote control instruction execution on the field access equipment according to the protocol configuration XML file, and processing station platform data sent to the station control layer;
the data acquisition module is used for acquiring data of the field access equipment through the acquisition node to obtain a data set and sending the acquired data set to the protocol analysis module through the protocol analysis module;
and the plant station platform communication module is used for establishing a TCP/IP connection through Ethernet communication and transmitting data required by the plant station platform to the plant station control layer network equipment.
2. The XML-file-based dynamically configurable communication protocol conversion system according to claim 1, wherein the data types include remote signaling, remote sensing, and remote pulsing, the coefficient parameters include data corresponding to the remote signaling, remote sensing, and remote pulsing, and the quantities include numbers of the data corresponding to the remote signaling, remote sensing, and remote pulsing.
3. The XML-file-based dynamically configurable communication protocol conversion system according to claim 1, wherein the definition of the different communication protocol types respectively according to the communication protocol type of the data collection module comprises: the method comprises the following steps of defining instruction function codes, register addresses, register numbers and protocol data analysis rules in different communication protocols, wherein the protocol data analysis rules comprise high and low byte sequences, register offsets, byte offsets and bit offsets.
4. The XML-file-based dynamic configurable communication protocol conversion system according to claim 1, wherein the operation configuration XML file further includes a definition of a communication fault tolerance mechanism inside the collection node, the definition of the communication fault tolerance mechanism includes a data overtime collection definition and a data message error definition, and the data overtime collection definition includes that, when data overtime collection or data message error definition occurs, the main control process module sends a data collection instruction to the data collection module to collect the data of the field access device 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 CN109150854A (en) 2019-01-04
CN109150854B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110956030B (en) * 2019-10-17 2023-11-24 贵州电网有限责任公司 Method and system for comparing configuration information of remote machine of transformer substation
CN111404902B (en) * 2020-03-08 2022-05-10 苏州浪潮智能科技有限公司 Method and device for realizing serial communication message matching based on database
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
CN115396752B (en) * 2022-07-29 2023-05-26 国电南京自动化股份有限公司 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

Also Published As

Publication number Publication date
CN109150854A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109150854B (en) Dynamic configurable communication protocol conversion system based on XML file
CN104345717B (en) Intelligent remote data acquisition system based on Internet of Things
CN108667725A (en) A kind of industrial AnyRouter and implementation method based on a variety of accesses and edge calculations
CN109768970B (en) Configurable universal protocol generation method
US20120099478A1 (en) Method and Device for Auto-Generating Goose Signal Connection Topology from Substation Level
US8805596B2 (en) Remote wind turbine reset system and method
CN109194617A (en) The automatically parsing of XML message, packaging method and device
CN107357278A (en) A kind of nuclear power plant's control system signal flow diagram generates online and service platform
CN104468274A (en) Cluster monitor and management method and system
US8321544B2 (en) Method and system for the transfer of communication network administration information
ES2643599T3 (en) Integrated interface system for a monitoring and control system of an electrical system
CN114095535B (en) Method for automatically mapping time sequence variable of physical equipment into digital model
CN106302485B (en) The bi-directional conversion system of OPC standard and power remote agreement
CN101227327A (en) Method for concentrating network managing system and uploading lower level alarm information
CN111624962B (en) Data computer lab supplies distribution equipment management and control system
US11310353B2 (en) Data transmission method for creating data structure facilitating data transmission and reception
CN107430391A (en) Management system
CN110572242A (en) Method for collecting data unified codes of injection molding machine
CN208888641U (en) A kind of industry spot automation equipment data collection analysis system based on TCP network
CN103957119A (en) Method for managing network devices through MIB file and browser
CN111212093A (en) Data processing system and control device
CN103457957B (en) A kind of network penetration test macro and method with adaptation function
CN113660560B (en) Intelligent substation process layer switch topology real-time verification method
CN107748701A (en) A kind of analysis method for reliability of electric energy measurement automation system
CN109212346B (en) Debugging method of low-voltage intelligent power distribution cabinet

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