Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is the structural representation of interface application system of the present invention, and this interface application system 100 mainly comprises a plurality of application systems 1 and an interface management center 2.
The data of this application system 1 each business department of management power supply administration, and the standard interface of support WEB SERVICE.This interface management center 2 is used to provide the unified interface service, should a plurality of application systems 1 combine, thereby can make a plurality of application system 1 shared data.
Fig. 2 is the functional module structure figure of application system 1 shown in Figure 1, and this application system 1 comprises an acquisition module 10, a transport module 11, a pre-processing module 12 and a communication module 13.
This acquisition module 10 comprises an Automatic meter reading system and/or a manual metering system; Be used to obtain the line loss data such as electric flux indication, circuit summary table data, platform district summary table data, circuit electricity sales amount data, platform district electricity sales amount data, electricity consumption of resident, large user's power consumption of stoichiometric point, and the line loss data that just get access to send to pre-processing module 12 through this transport module 11.
This pre-processing module 12 adopts hash algorithm that the line loss data that get access to are made a summary; And the line loss data message that has successfully sent these line loss data that get access to and last time compared; Extract the line loss data message that has changed; And give this communication module 13 with this line loss data message, these communication module 13 inner 131 pairs of these line loss data messages that changed of a compression module carry out processed compressed, generate a series of line loss packets.This pre-processing module 12 is for the line loss data that do not have to change, and perhaps the less line loss data of variation range change within the scope that is provided with in advance like it, does not then need to send, and only needs one and does sign.This communication module 13 is organized data according to the Standards Code of electric system, sends to this interface management center 2 after the line loss packing data with the above-mentioned variation of having compressed.
After this interface management center 2 receives complete line loss packet,, the link layer and the application layer of data unpacked processing, extract application data according to the Standards Code of electric system.This unpacks and adopts hash algorithm that the line loss data are handled in the processing procedure; Generate informative abstract; According to predefined processing rule, decode real on-the-spot line loss data message then, wherein the line loss data message comprises hi-line damage information, low-voltage line damage information and comprehensive line loss information.This wherein the rule of data statistics preserve portion respectively in this pre-service mould 12 and these interface management center 2 inside.If behind the rules modification of this pre-service mould 12, can be through Network Synchronization to this interface management center 2.
In embodiments of the present invention; Data through needs are shared encapsulate, and pack according to http protocol and XML form, issue through network mode; In this way; The complicacy that greatly reduces system all makes all software systems adopt uniform way shared data, the workload that has reduced the interface software exploitation and safeguarded.
Fig. 3 uses WEB SERVICE to realize the method flow diagram of data-interface for interface application system 100 of the present invention, and this method comprises the steps:
Step S101, data set provider is issued sharable data;
The data transmission that this application system 1 is obtained data is given this interface management center 2, and this interface management center 2 is examined its data, and the data of having only audit to pass through just can be issued, but this effective means is leaked confidential data.
Step S102, the data consumer obtains data;
An other application system 1 is carried out pre-service with the shared data that http protocol and XML form get access to, and whether the inspection data are through encrypting; As find that data have passed through encryption, then decipher, and the data importing after will deciphering is in this application system 1 according to the key that obtains in advance; This application system 1 also can be carried out the compression/decompression processing to data, to improve the speed of data transmission, increases network utilization.
Step S103, the upper management system obtains shared data;
This interface management center 2 through the transmission of WEB SERVICE data bus, according to the related standards stipulations, is packaged into the XML form with shared data, sends to the upper management center.
Fig. 4 is the realization flow of interface application system 100 of the present invention based on the disposal route of the data-interface system of WEB SERVICE, and this method comprises the steps:
Step S201, interface management center receives the Various types of data of application system;
After this interface management center 2 receives the complete XML packet that other application systems send over, according to the related standards of electric system, to data unpack processing according to http protocol and XML form, extract application data.The data-interface 100 employing J2EE+WEBSERVICE+JBOSS of system of the present invention constitute, and can bear the concurrent data transmission of 10 ~ 50 cover application systems, can satisfy the data transmission requirement of location level power supply administration.
Step S202 resolves described shared data.
This interface management center 2 adopts hash algorithm that data are handled, and generates informative abstract, then according to predefined processing rule, decodes real field data information.Wherein pretreated rule is preserved portion in this interface management center 2 respectively with this a plurality of application systems 1 inside.If behind the rules modification, can be synchronized to this a plurality of application systems 1 through communication network.
As one embodiment of the present invention, this application system 1 transmission data mode has administrative center's calling formula data transfer mode and active data transmission mode.When adopting calling formula data transfer mode; This interface management center 2 by predetermined condition to giving an order with the corresponding data transmission module of application system of needs monitoring; After this acquisition is received by application corresponding system 1, just carry out this above-mentioned steps S101 and S102; When adopting back active data transmission mode; Need the application system 1 corresponding data transmission module of monitoring initiatively to send power management data to this interface management center 2 by predetermined condition; When satisfying this predetermined condition, data transmission module is initiatively carried out this step S101 and S102; Wherein above-mentioned this predetermined condition can be preset time at interval, and its size can be 1 minute to 1 month.
Application system of the present invention is utilized advanced mechanics of communication, computing machine and network technology; For electric power enterprise solve the stoichiometric point data automatic collection, manual entry, data transmission, line loss analyzing, subregion examination, divide personnel checking-up, component voltage analysis, divide the circuit analysis, problem such as divide platform to distinguish to analyse; Resist the various possible incompatible problems of various information system with higher informationization technology and ladder of management, avoid the duplicate construction of system.
The employing of interface application system 100 of the present invention is laid VPN (Virtual Private Network from the regional branch office of China Mobile or the regional branch office of CHINAUNICOM; Virtual private networks) mode of special line couples together the power private network of Utilities Electric Co. and GPRS net or WCDMA net.Utilize Internet broadband public network as auxiliary alternate channel simultaneously.
Interface application system 100 of the present invention has certain perspective on system architecture (adopt J2EE data service technology) and network organization mode (adopting wireless GPRS, CDMA2000 1x or WCDMA); Take technology on the means of communication, with the advance of assurance system and the validity of investment.The not only compatible present GPRS of the system design system of interface application system 100 of the present invention, and compatible later 3G communication.
This interface application system 100 of the present invention adopts the TCP/IP communications protocol in whole process of data communication, the various middle layers of maskable agreement, and 2 communication can be regarded as the transmission of data wide area network from application system 1 to interface management center.Owing to adopt data W EB method of service based on the J2EE framework; Can avoid directly utilizing the Socket communication of bottom; The relevant international standard that meets HTTP1.1 and DATAService; The data of transmission can be effectively through the various safety equipment in the wide area network, and data are through digital signature simultaneously, and itself security and integrality also are guaranteed.
The concurrent transmission solution of data: the concurrent transmission of data is big bottlenecks of a plurality of systems shared data in the power supply administration; Because there is the application system of huge amount in big power supply administration in practical application, guarantee that high prerequisite of adopting passband is that the communication that solves concurrent transmission is blocked.Interface application system 100 platforms of the present invention adopt the J2EE+Web service to constitute; Be the data acquisition and the data, services releasing software framework based on J2EE framework basis of enterprise-level; This system can support concurrent transmission of high-intensity data and data, services; The inquiry of support mass data has high practicality, and wherein this interface application system 100 includes four big core technologies:
1, J2EE linked system: the J2EE linked system provides the standard card cage of the EIS system integration that exists in J2EE application and the enterprise.
2, JMS (Java information service): the Java information service is a standard program interface of supporting communication system for enterprise, and purpose is to provide the common interface of the dissimilar communication systems of leap.After java application utilized the communication system of JMS API and enterprise to be connected, the function that application program just can utilize communication system to provide was created and is sent message, reaches the purpose with other application system asynchronous communication.
3, JDBC API: it is the standard interface integrated with system R.Application program obtains other database function of database connection, data query and execution with this interface.
4, Web Services: allow EIS that some service access points are provided, new application can be obtained data through these points, also can submit data to.
Before adopting the transmission data, interface application system 100 of the present invention carries out the data pre-service; From basic unit's application system, read after the data, utilized hash algorithm (Hash function) that the data that needs send are handled earlier, generated corresponding informative abstract; Because hash algorithm has the characteristic of unidirectional irreversible operation; Promptly only can extrapolate informative abstract, and can't oppositely extrapolate the content of transaction data, so the content of transaction data and informative abstract has relevance by informative abstract by transaction data; And different transaction data contents can not calculate identical informative abstract, and we can be regarded as informative abstract the transaction data characteristic of scaled-down version.
Utilize unique private key (abbreviation private key) of distributing to this data transmission module or being produced by this data transmission module then, the informative abstract that generates is carried out the mess code computing, it is any to generate corresponding electronics.The mess code computing is a suitable complex calculations process; Because it is very high that it cracks difficulty; Need more than tens thousand of years with present computer speed, as long as private key is not leaked, other people just can't forge the Electronic Signature corresponding with transaction data; Therefore, the Electronic Signature that is generated can reach the customer identification function of traditional seal.
From the above, 100 Network Based, the optical fiber of interface application system of the present invention, GPRS, CDMA2000 1x or WCDMA communication modes come Data transmission; And based on the data, services of WEB SERVICE and J2EE framework; Solve concurrent data transmission bottleneck problem; The data, services and the data verification of the enterprise-level of powerful Web Data Service based on J2EE are provided, and the concurrent data that can bear the dozens of application system transmit.The operation cost of this interface application system 100 reduces greatly, makes it really have practicality, improves the management automation level of Utilities Electric Co.s at different levels, promotes the orderly development of power supply, distribution, electricity consumption each side.
To sum up should, the invention solves existing should the overall monitor electric power enterprise inner various information system in the prior art, solve the incompatible contradictory problems of various information system again, solve the problem that is prone to cause network congestion when data more for a long time simultaneously.To each application system, before sending data, earlier data are carried out logic analysis through network, optical fiber, GPRS or CDMA; Data message is reorganized; Filter out redundant data message, thereby make full use of limited Internet resources, avoid network congestion; Reduce communication fee simultaneously, practice thrift cost.Wherein, main station system adopts the method for J2EE+Web Service, uses the JBOSS middleware system, can monitor the dozens of application system simultaneously, adapts to domestic all nets, province, districts and cities and Utilities Electric Co. at county level.
More than this is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.