CN105653616A - Communication protocol conversion method for master station in power system - Google Patents

Communication protocol conversion method for master station in power system Download PDF

Info

Publication number
CN105653616A
CN105653616A CN201510991463.3A CN201510991463A CN105653616A CN 105653616 A CN105653616 A CN 105653616A CN 201510991463 A CN201510991463 A CN 201510991463A CN 105653616 A CN105653616 A CN 105653616A
Authority
CN
China
Prior art keywords
data
data segment
communication protocol
type
segment
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
CN201510991463.3A
Other languages
Chinese (zh)
Other versions
CN105653616B (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.)
CHANGSHA WASION INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHANGSHA WASION INFORMATION 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 CHANGSHA WASION INFORMATION TECHNOLOGY Co Ltd filed Critical CHANGSHA WASION INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510991463.3A priority Critical patent/CN105653616B/en
Publication of CN105653616A publication Critical patent/CN105653616A/en
Application granted granted Critical
Publication of CN105653616B publication Critical patent/CN105653616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Communication Control (AREA)

Abstract

The present invention discloses a communication protocol conversion method for a master station in a power system. The method comprises that according to a communication protocol, user data is decomposed as data segments in accordance with function types; data type definiteness is carried out on the data segment to obtain a data model; the data model is matched with the communication protocol, and an XML configuration file is formed and annotated according to the matched data model; according to a user data identification, the XML configuration file is loaded, and the data segments are traversed to obtain a matching result; and the master station loads the XML configuration file according to the user data identification of the communication protocol needing to be converted, so as to obtain the matching result of the XML file and the data segments. The method disclosed by the present invention is applicable to all types of communication protocols, especially to the occasions of complex communication data, complex communication protocols, or communication protocols needing to be frequently converted; and the method is simple and easy to operate, and can rapidly complete conversion of the communication protocol.

Description

The communication protocol conversion method of power system main website
Technical field
The invention belongs to the communications field, be specifically related to the communication protocol conversion method of a kind of power system main website.
Background technology
Along with the raising of the development of national economy technology and people's living standard, electric energy has had become as people and has produced and essential secondary energy sources of living. Electric energy meter is as the instrument of metering electric energy, and it is distributed in each end user location nearby, for the power consumption of metering user and upload data, it is simple to power system personnel carry out collecting of electricity consumption statistics of variables and electricity cost.
Present stage, remote monitoring modules has been widely used for checking meter of power system, the information of each terminal unit is delivered to main website by global semaphore by certain communication protocol by each terminal unit, main website realize the functions such as data acquisition, analysis, statistics and control.
But, present stage is due to the national conditions of China, the communication protocol version existed in China's electrical network is more, such as IEC version, electric power guild's version, State Grid Corporation of China's version, Southern Power Grid Company version, company standard version and Utilities Electric Co.'s each province version etc. So many stipulations version, very different between each stipulations version, it is difficult to unified. The existence of so many stipulations version, result in the Communication System Development difficulty of power system main website very big, eurypalynous communication protocol cannot be applicable to, and once need the stipulations of communication system support are modified, the extension in master station communication system later stage and the workload of maintenance are huge, and cost is high.
At present, the common practices that stipulations process is: carry out resolving or organizing bag by binary data stream according to frame structure combinations such as heading, address field, user data mark, user data, message trailers; But the process for wherein complicated user data is abnormal difficult, general stipulations processing method is often due to user data type is various, format differences is very big, can only for every kind of design data one data structure, it is impossible to accomplish generalization, configurableization.
Summary of the invention
It is an object of the invention to provide a kind of communication protocol conversion method can supported many stipulations and can quickly realize the power system main website of conversion mutually between multiple communication protocol.
The communication protocol conversion method of this power system main website provided by the invention, comprises the steps:
S1. according to all types of communication system of power grids stipulations regulation to user data, user data is decomposed into data segment according to function type;
S2. according to the step S1 data segment obtained, the restriction of data type is carried out for each data segment, thus drawing the data model of user data;
S3. the regulation according to each communication protocol, the data model obtained by step S2 mates with communication protocol, forms XML configuration file according to the data model after coupling, and according to the user data mark in communication protocol, XML file is labeled;
S4. identify according to the user data in communication protocol, the XML configuration file obtained in load step S3, and obtain data segment according to the XML configuration file traversal step S1 loaded, obtain the matching result of XML file and data segment described in step S1.
S5. the matching result according to step S4, to needing the communication frame resolved to carry out stipulations parsing or to needing the data sent to carry out stipulations group bag, completes the process of communication protocol.
Data segment described in step S1, including type of coding data segment, display type data segment, coded length data section, decimal digits data segment, sign bit position data section, unit data section, maximum value data section, minima data segment, independent bits structural type initiates bit bit data section, independent bits structural type bit bit length data segment, independent bits structural type whether end mark data segment, whether reversion indicates data segment, enumeration type with enumerate a corresponding relation data segment, independent bits structure type correspondence bit data section, 645 stipulations frame format Data Identification type data segment, data block length data segment, time format data segment and whether data available section.
The restriction that data segment carries out data type described in step S2, carries out data type restriction for employing table 1 to data segment:
Table 1 data segment signal table
Stipulations described in step S5 resolve, for for the communication frame needing parsing, taking out the concrete data in communication frame one by one and the matching result according to step S4 carries out data parsing.
Stipulations group bag described in step S5, for for the data needing transmission, the matching result according to step S4, forming byte stream by turn, be finally completed the stipulations group bag of data.
The present invention is by analyzing general character and the difference of existing communication stipulations, the concept proposing the extremely strong user data model of versatility and data segment of novelty, and form XML configuration file according to the requirement of each communication protocol and the matching result of user data model, data segment, when needs carry out stipulations process, as communication frame resolve, the conversion of the stipulations group bag of data or hough transformation, by transferring the XML configuration file editted, just stipulations parsing, stipulations group bag or stipulations conversion can be rapidly performed by according to configuration file. The inventive method is applicable to all types of communication protocols, and being particularly suited for communication data complexity, communication protocol complexity or communication protocol needs the occasion of frequent transitions, and the inventive method is simple, it is possible to be rapidly completed the process of communication protocol.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the present invention.
Detailed description of the invention
It is illustrated in figure 1 the method flow diagram of the present invention: the communication protocol conversion method of this power system main website provided by the invention, comprises the steps:
S1. according to all types of communication system of power grids stipulations regulation to user data, user data is decomposed into data segment according to function type;
Described data segment, including type of coding data segment, display type data segment, coded length data section, decimal digits data segment, sign bit position data section, unit data section, maximum value data section, minima data segment, independent bits structural type initiates bit bit data section, independent bits structural type bit bit length data segment, independent bits structural type whether end mark data segment, whether reversion indicates data segment, enumeration type with enumerate a corresponding relation data segment, independent bits structure type correspondence bit data section, 645 stipulations frame format Data Identification type data segment, data block length data segment, time format data segment and whether data available section.
S2. according to the step S1 data segment obtained, the restriction of data type is carried out for each data segment, thus drawing the data model of user data;
The described restriction that data segment carries out data type, carries out data type restriction for employing table 1 to data segment:
Table 1 data segment signal table
S3. the regulation according to each communication protocol, the data model obtained by step S2 mates with communication protocol, forms XML configuration file according to the data model after coupling, and according to the user data mark in communication protocol, XML file is labeled;
S4. the user data mark in the communication protocol that main website changes as required loads respective XML configuration file, and obtains data segment according to the XML configuration file traversal step S1 loaded, and obtains the matching result of XML file and data segment described in step S1;
S5. the matching result according to step S4, resolves, to needing the communication frame resolved to carry out stipulations, the data obtaining needs transmission, and the data obtained is carried out stipulations group bag, complete the process of communication protocol.
Described stipulations resolve, for for the communication frame needing parsing, taking out the concrete data in communication frame one by one and the matching result according to step S4 carries out data parsing.
Described stipulations group bag, for for the data needing transmission, the matching result according to step S4, forming byte stream by turn, be finally completed the stipulations group bag of data.

Claims (5)

1. a communication protocol conversion method for power system main website, comprises the steps:
S1. according to all types of communication protocols regulation to user data, user data is decomposed into data segment according to function type;
S2. according to the step S1 data segment obtained, the restriction of data type is carried out for each data segment, thus drawing the data model of user data;
S3. the regulation according to each communication protocol, the data model obtained by step S2 mates with communication protocol, forms XML configuration file according to the data model after coupling, and according to the user data mark in communication protocol, XML file is labeled;
S4. the user data mark in the communication protocol that main website changes as required loads respective XML configuration file, and obtains data segment according to the XML configuration file traversal step S1 loaded, and obtains the matching result of XML file and data segment described in step S1;
S5. the matching result according to step S4, resolves, to needing the communication frame resolved to carry out stipulations, the data obtaining needs transmission, and the data obtained is carried out stipulations group bag, complete the process of communication protocol.
2. the communication protocol conversion method of power system main website according to claim 1, it is characterized in that the data segment described in step S1, including type of coding data segment, display type data segment, coded length data section, decimal digits data segment, sign bit position data section, unit data section, maximum value data section, minima data segment, independent bits structural type initiates bit bit data section, independent bits structural type bit bit length data segment, independent bits structural type whether end mark data segment, whether reversion indicates data segment, enumeration type with enumerate a corresponding relation data segment, independent bits structure type correspondence bit data section, 645 stipulations frame format Data Identification type data segment, data block length data segment, time format data segment and whether data available section.
3. the communication protocol conversion method of power system main website according to claim 1 and 2, it is characterised in that the restriction that data segment carries out data type described in step S2, carries out data type restriction for employing table 1 to data segment:
Table 1 data segment signal table
4. the communication protocol conversion method of power system main website according to claim 1 and 2, it is characterized in that the stipulations described in step S5 resolve, for for the communication frame needing parsing, taking out the concrete data in communication frame one by one and the matching result according to step S4 carry out data parsing.
5. the communication protocol conversion method of power system main website according to claim 1 and 2, it is characterized in that the stipulations group bag described in step S5, for for the data needing transmission, the matching result according to step S4, form byte stream by turn, be finally completed the stipulations group bag of data.
CN201510991463.3A 2015-12-25 2015-12-25 Communication protocol conversion method of power system master station Active CN105653616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510991463.3A CN105653616B (en) 2015-12-25 2015-12-25 Communication protocol conversion method of power system master station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510991463.3A CN105653616B (en) 2015-12-25 2015-12-25 Communication protocol conversion method of power system master station

Publications (2)

Publication Number Publication Date
CN105653616A true CN105653616A (en) 2016-06-08
CN105653616B CN105653616B (en) 2020-06-09

Family

ID=56477891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510991463.3A Active CN105653616B (en) 2015-12-25 2015-12-25 Communication protocol conversion method of power system master station

Country Status (1)

Country Link
CN (1) CN105653616B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959305A (en) * 2016-07-01 2016-09-21 国网山东省电力公司博兴县供电公司 Substation communication protocol conversion system
CN107888595A (en) * 2017-11-15 2018-04-06 许昌智能继电器股份有限公司 A kind of embedded equipment CAN stipulations analytic methods based on XML technology
CN110290127A (en) * 2019-06-20 2019-09-27 云南电网有限责任公司电力科学研究院 A kind of message forwarding method and message converting system
CN111597411A (en) * 2020-05-13 2020-08-28 国家电网有限公司 Method and system for distinguishing and identifying power protocol data frames
CN112333231A (en) * 2020-09-18 2021-02-05 许继集团有限公司 Method and system for realizing configured universal protocol based on mqtt Internet of things
CN114615344A (en) * 2022-02-08 2022-06-10 广东智有盈能源技术有限公司 Intelligent protocol conversion method and device for electric power instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532749A (en) * 2013-10-09 2014-01-22 广州供电局有限公司 Main station information management system
CN104468508A (en) * 2014-10-29 2015-03-25 云南电网公司电力科学研究院 Automatic-adapting protocol converter
CN104735172A (en) * 2013-12-18 2015-06-24 易讯科技股份有限公司 Protocol conversion method of intelligent electricity using information collecting terminal
CN105162252A (en) * 2015-08-28 2015-12-16 珠海许继电气有限公司 CID file-based method for achieving automatic mapping of plug-and-play power distribution terminal information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532749A (en) * 2013-10-09 2014-01-22 广州供电局有限公司 Main station information management system
CN104735172A (en) * 2013-12-18 2015-06-24 易讯科技股份有限公司 Protocol conversion method of intelligent electricity using information collecting terminal
CN104468508A (en) * 2014-10-29 2015-03-25 云南电网公司电力科学研究院 Automatic-adapting protocol converter
CN105162252A (en) * 2015-08-28 2015-12-16 珠海许继电气有限公司 CID file-based method for achieving automatic mapping of plug-and-play power distribution terminal information

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959305A (en) * 2016-07-01 2016-09-21 国网山东省电力公司博兴县供电公司 Substation communication protocol conversion system
CN105959305B (en) * 2016-07-01 2019-04-19 国网山东省电力公司博兴县供电公司 A kind of substation's communication protocol converting system
CN107888595A (en) * 2017-11-15 2018-04-06 许昌智能继电器股份有限公司 A kind of embedded equipment CAN stipulations analytic methods based on XML technology
CN110290127A (en) * 2019-06-20 2019-09-27 云南电网有限责任公司电力科学研究院 A kind of message forwarding method and message converting system
CN111597411A (en) * 2020-05-13 2020-08-28 国家电网有限公司 Method and system for distinguishing and identifying power protocol data frames
CN111597411B (en) * 2020-05-13 2024-03-19 国家电网有限公司 Method and system for distinguishing and identifying power specification data frames
CN112333231A (en) * 2020-09-18 2021-02-05 许继集团有限公司 Method and system for realizing configured universal protocol based on mqtt Internet of things
CN114615344A (en) * 2022-02-08 2022-06-10 广东智有盈能源技术有限公司 Intelligent protocol conversion method and device for electric power instrument
CN114615344B (en) * 2022-02-08 2023-07-28 广东智有盈能源技术有限公司 Intelligent protocol conversion method and device for electric power instrument

Also Published As

Publication number Publication date
CN105653616B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN105653616A (en) Communication protocol conversion method for master station in power system
CN102663094A (en) IEC61970CIM model checking method
CN111625964B (en) Method, system and equipment for constructing transformer substation graph model based on logical relationship
CN104298592A (en) Object-oriented relay protection test case template instantiation method
WO2018184166A1 (en) Distributed real-time data server
CN105184011A (en) Automatic transformer substation WEB primary connection diagram forming method and device
CN107864223A (en) For the data communication system and method between internet of things equipment terminal and server
CN103914501A (en) Power industry real-time reporting method based on massive real-time database
US10210177B2 (en) Distribution management system
CN103825870A (en) Communication method of universal communication protocol generator
CN102780592A (en) Methods and systems for detecting compatibility issues within an electrical grid control system
CN103700024A (en) Automatic importing method of provincial and prefectural integrated telecontrol information based on D5000 system
CN105447645A (en) Meta-model tree based universal loading method for power dispatching heterogeneous business system model
CN102621978A (en) Off-line detection system for electronic control systems of pure electric vehicles
CN104112183A (en) Plug-and-play intelligent scheduling model management system and management method of intelligent substation
CN202133711U (en) Voltage fluctuation recording apparatus based on DLMS/COSEM
CN204390295U (en) A kind of panel box information management system
CN202904867U (en) Long-distance concentrated metering multi-protocol data collection device
CN113067794B (en) Method and device for processing high-speed train data general protocol
Hu [Retracted] The Impact of Smart Sensor Networks on Improving the International Competitiveness of China’s Digital Economy Industry in the Context of the Smart Era
CN112165165A (en) Multi-source information fusion method for detection data of distribution automation equipment
CN203180635U (en) High-sampling-rate versatile merging unit
CN104333540B (en) A kind of substation automation system communication protocol dynamic implementation method
CN201846363U (en) Communication protocol conversion device and data processing system of oil-well stratum monitoring equipment
CN208796067U (en) A kind of analog input card

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