CN105978860B - A kind of implementation method of electric system software interface adapter - Google Patents

A kind of implementation method of electric system software interface adapter Download PDF

Info

Publication number
CN105978860B
CN105978860B CN201610264216.8A CN201610264216A CN105978860B CN 105978860 B CN105978860 B CN 105978860B CN 201610264216 A CN201610264216 A CN 201610264216A CN 105978860 B CN105978860 B CN 105978860B
Authority
CN
China
Prior art keywords
software interface
interface adapter
data
electric system
source service
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
CN201610264216.8A
Other languages
Chinese (zh)
Other versions
CN105978860A (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.)
State Grid Corp of China SGCC
Economic and Technological Research Institute of State Grid Shandong Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Economic and Technological Research Institute of State Grid Shandong Electric Power 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 State Grid Corp of China SGCC, Economic and Technological Research Institute of State Grid Shandong Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201610264216.8A priority Critical patent/CN105978860B/en
Publication of CN105978860A publication Critical patent/CN105978860A/en
Application granted granted Critical
Publication of CN105978860B publication Critical patent/CN105978860B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • 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

Abstract

The invention discloses a kind of implementation methods of software interface adapter, and to carry out the converting transmission of data between different agreements, 1) it is the following steps are included: be configured allocation list according to the conversion of data between different agreement;2) system data initializes: after source service data accesses the adapter, the adapter reads allocation list, obtains purpose information on services, and carry out preliminary treatment;3) conversion process is carried out to the data transmitted between different agreement.The present invention is for the information interconnection between different platforms, development language, agreement, the system of data format, provide a kind of flexible configuration technology, the quantity, size and complexity of application programming interfaces are not only reduced, and improves the maintainability and scalability of electric system.The software interface adapter that the present invention realizes simplifies the complexity of technology, reduces the construction and O&M cost of electric system, promotes interconnecting for electric system.

Description

A kind of implementation method of electric system software interface adapter
Technical field
The present invention relates to technical field of power system communication, specifically a kind of electric system software interface adapter Implementation method.
Background technique
The communication of electric system at present, supervisory control and data aquisition system are using a kind of distributed communication structure.Companion With new equipment, the application of new technology, in the electric system in current China, the communication, monitoring and data of terminal unit are adopted There is three major issues for collection: first is that the working efficiency of distributed system is lower;Second is that terminal kinds are various, and communication protocol is mutual It is incompatible;Third is that data acquisition front subsystem (industry control collection plate, protocol conversion plate etc.) adaptability of main website is poor, actually make It is unsatisfactory with effect.
Required for electric system, it should be such a main website data acquisition front subsystem: it should can be with first It realizes and carries out communications and data acquisition with a plurality of types of terminal units;Secondly, it should can be compatible with various communications protocols;So Afterwards, most importantly it can intelligently, be automatically completed to the acquisition of the data of terminal unit and protocol conversion task;Most Afterwards, this subsystem should also be good and cheap, has good economy.
Business information services bus is during information integration, in face of different platforms, different development languages, transmission association Negotiation data format needs to do a large amount of adaptation work, and the maintenance cost of system and complexity also can be with integrated later The increase of system quantity and increase.Therefore, the hand allotment of labor of electric system is met there is an urgent need to a kind of multi-protocol communication adapter Make.
Summary of the invention
In order to overcome the deficiencies of the above existing technologies, the present invention provides a kind of electric system software interface adapters Implementation method, for different platforms, development language, agreement, data format electric system between information interconnection, provide A kind of flexible configuration technology, can not only reduce the quantity, size and complexity of application programming interfaces, and can be improved electricity The maintainability and scalability of Force system.
The technical scheme adopted by the invention to solve the technical problem is that: a kind of reality of electric system software interface adapter Existing method, to carry out the transmission of data between different electric power, characterized in that the following steps are included:
1) software interface adapter is connected by deployment software interface adapter with power system service interface;
2) allocation list is arranged according to the deployment of software interface adapter, the allocation list includes various communications protocols, communication Data conversion rule between agreement and the mapping relations and different communication protocol of command word;
3) system data initializes, the communication chain between inspection software interface adapter and each power system service interface Road;
4) source service data is obtained, according to source service data packet is received, obtains the source service communication protocols that data packet uses;
5) purpose information on services is obtained, allocation list is read and obtains purpose information on services, and determined according to purpose information on services Purpose service communication protocols;
6) communication Protocol Conversion, according to the data conversion rule between source service communication protocols and purpose service communication protocols The protocol massages format that will be serviced for the purpose of the conversion of source service data.
In the above method, the various communications protocols include http protocol, HTTPS agreement, JMS agreement, File Transfer Protocol and Two or more agreement in WEBSERVICE agreement.
In the above method, during communication Protocol Conversion,
If purpose service communication protocols are http protocol or HTTPS agreement, sent out using http protocol or HTTPS agreement Send data;
If purpose service communication protocols are JMS agreements, the message of XML format is sent to queue server;
If purpose service communication protocols are File Transfer Protocol, upper transmitting file to ftp server;
If purpose service communication protocols are WEBSERVICE agreements, WEBSERVICE interface is called to send data.
In the above method, during the message to queue server for sending XML format, if source service data is File type is then first compressed with GZIP, then is encoded to character string with BASE64.
In the above method, during the upper transmitting file to ftp server, if source service data is character string type, Then write as text file using UTF-8 coding.
In the above method, during obtaining source service data, if source service data needs to format, use (Extensible Stylesheet Language Transformations, can expand by the data mapping of XQuery and XSLT Exhibition stylesheet language conversion) standard logarithmic according to do formatting conversion.
It is described that data packet is obtained according to reception source service data packet during obtaining source service data in the above method The detailed process of the source service communication protocols of use are as follows: received source service data packet packet header is parsed, the command word of carrying is obtained, Then resolve command word obtains the corresponding communication protocol of the command word, and the corresponding communication protocol of the command word is received data Wrap the source service agreement used.
In the above method, in system data initialization procedure, the inspection software interface adapter and each power train The detailed process of communication link between system business interface are as follows: software interface adapter sends handshake request letter to electric system It enables, and records transmission times;Electric system is fitted after receiving the handshake request signaling that software interface adapter is sent to software interface Orchestration sends response signaling of shaking hands;Software interface adapter confirms and shakes hands after receiving the response signaling of shaking hands of electric system transmission It communicates successfully;Software interface adapter and electric system carry out subsequent communications.
In the above method, if software interface adapter does not receive the response signaling of shaking hands of electric system transmission, software Interface adapter sends handshake request signaling again, still can not receive letter in reply after sending handshake request signaling number and reaching 6 times, Software interface adapter is alarmed.
The invention has the advantages that the present invention is directed to different platforms, development language, agreement, the system of data format Between information interconnection, customized setting allocation list is carried out according to the deployment scenario of software interface adapter, provides a kind of spirit Configuration technology living, not only reduces the quantity, size and complexity of application programming interfaces, and improve electric system can Maintainability and scalability.Complexity height, the feature that implementation cost is expensive and risk period is long relative to traditional integrated project, The software interface adapter that the present invention realizes simplifies the complexity of technology, reduces the construction and O&M cost of electric system, Promote interconnecting for electric system.
The present invention also provides communication chains between a kind of inspection software interface adapter and each power system service interface The method on road carries out communication link detection before carrying out starting data transmission work, effectively prevents asking for data transmission fails Topic, ensure that effective transmission of data, provide a strong guarantee for route normal operation.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the work flow diagram of software interface adapter of the present invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, a kind of implementation method of electric system software interface adapter of the invention, to carry out different electricity The transmission of data between Force system, the described method comprises the following steps:
1) software interface adapter is connected by deployment software interface adapter with power system service interface;
2) allocation list is arranged according to the deployment of software interface adapter, the allocation list includes various communications protocols, communication Data conversion rule between agreement and the mapping relations and different communication protocol of command word;
3) system data initializes, the communication chain between inspection software interface adapter and each power system service interface Road;
4) source service data is obtained, according to source service data packet is received, obtains the source service communication protocols that data packet uses;
5) purpose information on services is obtained, allocation list is read and obtains purpose information on services, and determined according to purpose information on services Purpose service communication protocols;
6) communication Protocol Conversion, according to the data conversion rule between source service communication protocols and purpose service communication protocols The protocol massages format that will be serviced for the purpose of the conversion of source service data.
In the above method, the various communications protocols include http protocol, HTTPS agreement, JMS agreement, File Transfer Protocol and Two or more agreement in WEBSERVICE agreement.
In the above method, during communication Protocol Conversion,
If purpose service communication protocols are http protocol or HTTPS agreement, sent out using http protocol or HTTPS agreement Send data;
If purpose service communication protocols are JMS agreements, the message of XML format is sent to queue server;
If purpose service communication protocols are File Transfer Protocol, upper transmitting file to ftp server;
If purpose service communication protocols are WEBSERVICE agreements, WEBSERVICE interface is called to send data.
In the above method, during the message to queue server for sending XML format, if source service data is File type is then first compressed with GZIP, then is encoded to character string with BASE64.
In the above method, during the upper transmitting file to ftp server, if source service data is character string type, Then write as text file using UTF-8 coding.
In the above method, during obtaining source service data, if source service data needs to format, use (Extensible Stylesheet Language Transformations, can expand by the data mapping of XQuery and XSLT Exhibition stylesheet language conversion) standard logarithmic according to do formatting conversion.
It is described that data packet is obtained according to reception source service data packet during obtaining source service data in the above method The detailed process of the source service communication protocols of use are as follows: received source service data packet packet header is parsed, the command word of carrying is obtained, Then resolve command word obtains the corresponding communication protocol of the command word, and the corresponding communication protocol of the command word is received data Wrap the source service agreement used.
In the above method, in system data initialization procedure, the inspection software interface adapter and each power train The detailed process of communication link between system business interface are as follows: software interface adapter sends handshake request letter to electric system It enables, and records transmission times;Electric system is fitted after receiving the handshake request signaling that software interface adapter is sent to software interface Orchestration sends response signaling of shaking hands;Software interface adapter confirms and shakes hands after receiving the response signaling of shaking hands of electric system transmission It communicates successfully;Software interface adapter and electric system carry out subsequent communications.If software interface adapter does not receive electric power The response signaling of shaking hands that system is sent, software interface adapter send handshake request signaling again, when transmission handshake request signaling Number still can not receive letter in reply after reaching 6 times, software interface adapter is alarmed.The present invention is carrying out starting data transmission work The problem of carrying out communication link detection before making, effectively preventing data transmission fails, ensure that effective transmission of data, be route Normal operation provides a strong guarantee.
The present invention can carry out customized setting according to the deployment scenario of software interface adapter, as shown in Fig. 2, by software Interface adapter is connected with power system service interface disposed after, the workflow of software interface adapter of the invention Journey is as follows:
100, start.
101, allocation list is arranged according to the deployment of software interface adapter;The allocation list includes various communications protocols, leads to Believe the data conversion rule between agreement and the mapping relations and different communication protocol of command word;The various communications protocols Including two or more agreement in http protocol, HTTPS agreement, JMS agreement, File Transfer Protocol and WEBSERVICE agreement.
102, system data initialization: the communication between inspection software interface adapter and each power system service interface Link.
103, whether source service data, which needs, formats, and is transferred to step 104 if necessary, is otherwise transferred to step 105.
104, if source service data needs to format, use the data mapping of XQuery and XSLT (Extensible Stylesheet Language Transformations, Extensible Stylesheet Language conversion) standard logarithmic Conversion is formatted according to doing.
105, according to source service data packet is received, obtain the source service communication protocols that data packet uses;
106, purpose information on services is obtained, the allocation list that read step 101 is arranged obtains purpose information on services, and according to mesh Information on services determine purpose service communication protocols;
107, if purpose service is http protocol or HTTPS agreement, 108 are entered step, step 109 is otherwise transferred to.
108, HTTP (S) request is called, sends data using http protocol or HTTPS agreement.
109, if purpose service is JMS agreement, 110 are entered step, step 111 is otherwise transferred to.
110, source service data is pushed to JMS message queue, and sends the message of XML format to queue server.If Source service data is file type, then is first compressed with GZIP, is then encoded to character string with BASE64, finally retransmits XML lattice The message of formula is to queue server.
111, if purpose service is File Transfer Protocol, 112 are entered step, step 113 is otherwise transferred to.
112, upper transmitting file to ftp server.During upper transmitting file to ftp server, if source service data is word String type is accorded with, then is uploaded to ftp server again after being write as text file using UTF-8 coding.
113, if purpose service is WEBSERVICE agreement, 114 are entered step, step 115 is otherwise transferred to.
114, call WEBSERVICE interface to send data.
115, output error log simultaneously stores.
116, terminate.
The software interface adapter that the present invention realizes is directed to the operating system (Windows/Unix/Linux) of current main-stream, With program development language (Java/C/C++/.Net) realize different agreement (HTTP (S)/JMS/FTP/WebService) it Between data converting transmission, and provide shirtsleeve operation interface, the transmission of different data among systems streams configured Customized, conversion, data type conversion, data format input and output including transport protocol can also even be done in data The conversion of appearance.
The above is the preferred embodiment of the present invention, for those skilled in the art, Without departing from the principles of the invention, several improvements and modifications can also be made, these improvements and modifications are also regarded as this hair Bright protection scope.

Claims (7)

1. a kind of implementation method of electric system software interface adapter, to carry out the biography of data between different electric power It is defeated, characterized in that the following steps are included:
1) software interface adapter is connected by deployment software interface adapter with power system service interface;
2) allocation list is arranged according to the deployment of software interface adapter, the allocation list includes various communications protocols, communication protocol Data conversion rule between the mapping relations and different communication protocol of command word;
3) system data initializes, the communication link between inspection software interface adapter and each power system service interface;
4) source service data is obtained, according to source service data packet is received, the source service communication protocols that data packet uses is obtained, is obtaining During taking source service data, if source service data needs to format, marked using the data mapping of XQuery and XSLT Standard does formatting conversion to data;
5) purpose information on services is obtained, allocation list is read and obtains purpose information on services, and purpose is determined according to purpose information on services Service communication protocols;
6) communication Protocol Conversion, according to the data conversion rule between source service communication protocols and purpose service communication protocols by source The protocol massages format serviced for the purpose of service data conversion;
The detailed process of communication link between the inspection software interface adapter and each power system service interface are as follows: soft Part interface adapter sends handshake request signaling to electric system, and records transmission times;It is suitable that electric system receives software interface Response signaling of shaking hands is sent to software interface adapter after the handshake request signaling that orchestration is sent;Software interface adapter receives Confirmation handshake communication success after the response signaling of shaking hands that electric system is sent;Software interface adapter carries out subsequent with electric system Communication.
2. a kind of implementation method of electric system software interface adapter according to claim 1, characterized in that described Various communications protocols include two kinds in http protocol, HTTPS agreement, JMS agreement, File Transfer Protocol and WEBSERVICE agreement or Two or more agreements.
3. a kind of implementation method of electric system software interface adapter according to claim 2, characterized in that communicating In protocol conversion process,
If purpose service communication protocols are http protocol or HTTPS agreement, number is sent using http protocol or HTTPS agreement According to;
If purpose service communication protocols are JMS agreements, the message of XML format is sent to queue server;
If purpose service communication protocols are File Transfer Protocol, upper transmitting file to ftp server;
If purpose service communication protocols are WEBSERVICE agreements, WEBSERVICE interface is called to send data.
4. a kind of implementation method of electric system software interface adapter according to claim 3, characterized in that the hair During the message to queue server for sending XML format, if source service data is file type, first compressed with GZIP, Character string is encoded to BASE64 again.
5. a kind of implementation method of electric system software interface adapter according to claim 3, characterized in that on described During transmitting file to ftp server, if source service data is character string type, write as text text using UTF-8 coding Part.
6. special according to claim 1 to a kind of implementation method of electric system software interface adapter described in 5 any one Sign is, described logical according to the source service that source service data packet acquisition data packet uses is received during obtaining source service data Believe the detailed process of agreement are as follows: parse received source service data packet packet header, obtain the command word of carrying, then resolve command word Obtain the corresponding communication protocol of the command word, the corresponding communication protocol of the command word is the source service that received data packet uses Agreement.
7. a kind of implementation method of electric system software interface adapter according to claim 1, characterized in that if soft Part interface adapter does not receive the response signaling of shaking hands of electric system transmission, and software interface adapter sends handshake request again Signaling still can not receive letter in reply after sending handshake request signaling number and reaching 6 times, and software interface adapter is alarmed.
CN201610264216.8A 2016-04-26 2016-04-26 A kind of implementation method of electric system software interface adapter Active CN105978860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610264216.8A CN105978860B (en) 2016-04-26 2016-04-26 A kind of implementation method of electric system software interface adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610264216.8A CN105978860B (en) 2016-04-26 2016-04-26 A kind of implementation method of electric system software interface adapter

Publications (2)

Publication Number Publication Date
CN105978860A CN105978860A (en) 2016-09-28
CN105978860B true CN105978860B (en) 2019-09-10

Family

ID=56993921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610264216.8A Active CN105978860B (en) 2016-04-26 2016-04-26 A kind of implementation method of electric system software interface adapter

Country Status (1)

Country Link
CN (1) CN105978860B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667763A (en) * 2017-03-28 2018-10-16 北京京东尚科信息技术有限公司 Method, system, electronic equipment and the storage medium that communication protocol scheduling executes
CN108737152B (en) * 2018-03-23 2021-10-08 全球能源互联网研究院有限公司 Control equipment supporting multi-protocol power service arrangement
CN109213519B (en) * 2018-09-14 2020-01-03 北京数聚鑫云信息技术有限公司 Heterogeneous API adaptation processing method and system
CN109462455B (en) * 2018-10-25 2021-06-29 广东电网有限责任公司 Cross-network short data mutual transmission method, device, equipment and readable storage medium
CN109639693B (en) * 2018-12-20 2022-02-15 南方电网科学研究院有限责任公司 Intelligent distribution and utilization electricity business arrangement method and distribution and utilization electricity communication integrated terminal
US11101690B2 (en) * 2019-05-31 2021-08-24 Abb Schweiz Ag Distributed energy resource registration
CN111478945B (en) * 2020-03-13 2022-10-14 国家电网有限公司 Pumped storage operation and inspection data processing system and method
CN111427321B (en) * 2020-04-17 2023-07-28 长春融成智能设备制造股份有限公司 Multi-protocol compatible MES data acquisition system and method thereof
CN113905103A (en) * 2021-10-08 2022-01-07 腾云悦智科技(深圳)有限责任公司 Communication adaptation method for automatically adapting to multiple protocols
CN115733894A (en) * 2022-10-21 2023-03-03 云南电网有限责任公司电力科学研究院 Multi-protocol data access management method, device and equipment for power system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2563431A1 (en) * 2004-04-09 2005-10-20 Huawei Technologies Co., Ltd. Asn.1 protocol processor and method for asn.1 protocol processing
CN104125208B (en) * 2013-10-15 2015-08-12 腾讯科技(深圳)有限公司 Data transmission method and device
CN103607406A (en) * 2013-11-27 2014-02-26 北京国电通网络技术有限公司 Protocol adaptation system and method applied to smart power grids
CN105049515A (en) * 2015-08-04 2015-11-11 国网浙江兰溪市供电公司 Power distribution monitoring system and data interaction method thereof
CN105025112A (en) * 2015-08-18 2015-11-04 上海冰点机电工程技术有限公司 Remote monitoring system for air conditioning equipment and control method thereof

Also Published As

Publication number Publication date
CN105978860A (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN105978860B (en) A kind of implementation method of electric system software interface adapter
WO2022002075A1 (en) Edge computing-based internet-of-things proxy apparatus and data decision method
CN106059848B (en) Electric power data acquisition transmission process system and method based on Big Dipper short message communication
EP3300311A1 (en) Interaction method and apparatus for smart watch and wechat platform, and smart watch
CN105763619B (en) The method and device that client and server-side are communicated
CN103179210A (en) Internet of Things cloud access method and system based on Web Service
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN109327493A (en) A kind of remote medical monitoring system based on cloud and monitoring method
CN108964264A (en) The wireless realization of debugging method of intelligent substation site device
US20230114166A1 (en) Log acquisition method and apparatus, terminal, server, and computer readable storage medium
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
CN101902457B (en) System for configuring external communication protocol and method thereof
CN111786939A (en) Method, device and system for testing management platform of Internet of things
CN107222461B (en) Communication processing method and device
CN102802170A (en) Method for acquiring Ethernet data frame, device and base station
CN114040018A (en) Data receiving and transmitting method and device based on JSON data format
CN108989157B (en) Method and device for controlling intelligent equipment
CN108898814A (en) Electric power data acquisition transmission method and its system
CN104022901B (en) Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller)
CN107911288B (en) Train communication network card and train control management system
CN113746850B (en) Multichannel data acquisition method for Internet of things
CN111862571B (en) Method for reading a flow meter
CN109586979A (en) A kind of message transmitting method and device
CN107872431B (en) Data transmitting and receiving method, device and base station
CN100499643C (en) A method for implementing data communication between door network station and service provider

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