The content of the invention
It is an object of the invention to provide a kind of coal unit parameter processing system and method, can be effectively improved data and adopt
The stability of collecting system, reliability, compatibility, autgmentability, make field conduct and regular maintenance easier, reduce main website end number
Pressure is accessed according to storehouse, it is ensured that electricity power enterprise's data normal transmission.
For achieving the above object, the present invention provides a kind of coal unit parameter processing system, and the system includes front end number
According to acquisition zone, data transfer area and end data memory block, connect between the front end data acquisition area and the data transfer area
Positive isolating device is connected to, the front end data acquisition area is used for encapsulating the data call mode of each data source types, and right
The parameter of the coal unit carries out Real-time Collection and history collection;Press for the data of collection are passed through in the data transfer area
Deposit in after contracting in the predetermined directory file of data client;Wherein, the data client is taken by the data with main website
Business end is communicated, to upload the data through compression to the data, services end of the main website;Use the end data memory block
According to the preassigned file specification form in the front end data acquisition area by the data at data, services end write main website
Data base.
Further, the front end data acquisition area is realized by front end data acquisition application, and the front end data acquisition should
It is used for integrating polytype communications protocol with polytype communications protocol, the front end data acquisition application is supported
For unified channel interface and protocol interface;The coal unit is gathered by the unified channel interface and protocol interface
Supplemental characteristic, and the supplemental characteristic of collection is converted to into document form according to default rule schemata.
Further, the front end data acquisition application includes host program module and plugin library, wherein:Host's journey
Sequence module manages the plug-in unit in the plugin library for by card i/f specification, and by the data for collecting according to default rule
About form carries out packing encapsulation, and the data after packing encapsulation are write in the file directory that the positive isolating device is specified;
The plugin library is used for storing the corresponding plug-in unit of various type of database.
Further, the data transfer area is realized by data transmission applications, and the data transmission applications include data
Client and data service end, wherein:The data client is ciphered compressed file for the data processing that will be gathered, and will
The ciphered compressed file is deposited in transmission CACHE DIRECTORY folder;Using network communication protocol, Jing Electric Power Dispatching Data Networks with
The data, services end erects data transmission channel, and the ciphered compressed file sent during CACHE DIRECTORY is pressed from both sides is sent to
To the data, services end;The data, services end is used for receiving the ciphered compressed file, and by the ciphered compressed file
It is stored in file storage center.
Further, the end data memory block is realized by end data storage application, and the end data storage should
With for the data at the data, services end are decrypted and are decompressed, and by the data write main website after decryption and decompression
In data base.
For achieving the above object, on the other hand the application also provides a kind of coal unit parameter processing method, methods described
Including:The data call mode of each data source types is encapsulated in advance, and the parameter to the coal unit carries out Real-time Collection
Gather with history;In the predetermined directory file that the data of collection are deposited in data client after compression;Wherein, it is described
Data client is communicated by the data, services end with main website, to upload through compression to the data, services end of the main website
Data;The data at the data, services end are write into main website data base according to preassigned file specification form.
Further, the data call mode of each data source types, and the parameter to the coal unit is encapsulated in advance
Carry out Real-time Collection and history collection is specifically included:Polytype communications protocol is integrated into into unified channel interface and agreement
Interface, and gather the supplemental characteristic of the coal unit by the unified channel interface and protocol interface, and by collection
Supplemental characteristic is converted to document form according to default rule schemata.
Further, the supplemental characteristic of collection is converted to document form according to default rule schemata to specifically include:To adopt
The data for collecting carry out packing encapsulation according to default rule schemata, and the positive isolating device of data write after packing encapsulation is referred to
In fixed file directory.
Further, in the predetermined directory file that the data by collection deposit in data client after compression
After step, methods described also includes:Using network communication protocol, Jing Electric Power Dispatching Data Networks are erected with data, services end
Data transmission channel, and the file processed through ciphered compressed is sent to the data, services end;The data, services end
The file through ciphered compressed process is received, and the file through ciphered compressed process is stored in file storage
The heart.
Further, the data at the data, services end are write into main website data according to preassigned file specification form
Storehouse specifically includes:The data at the data, services end are decrypted and are decompressed according to preassigned file specification form,
And by the data write main website data base after decryption and decompression.
There is following beneficial effect in the application above-mentioned technical proposal:
1st, Real-time Collection and the history collection of more big data quantity can be realized.
2nd, possesses preferable extensibility.
When source of new data is produced, the system in the application only needs to understand the data acquiring mode of source of new data, so as to
Program language can be converted into be encapsulated in existing front end data acquisition application, you can realize data acquisition, autgmentability
Good, the construction cycle is short.
3rd, field conduct and regular maintenance are simple.
When scene needs newly-increased measuring point, traditional acquisition mode is needed in acquisition server 1 and acquisition server 2
Program is all reconfigured, and virtually increased time and the workload of field conduct.And according to the fortune of system in the application
Row mode, newly-increased measuring point only need to carry out related measuring point arrangement to the front end data acquisition application in acquisition server 1, adopt
Collection server 2 should not carry out any operation.When system data breaks down, due to traditional acquisition mode data acquisition sum
All configure at the scene according to write, this is accomplished by putting into substantial amounts of time coordination power plant attendant and carries out the investigation of problem, and this
System in application is due to being sent directly to main website end by data file, therefore can be directly viewable data file whether normal transmission
Can determine whether that collection in worksite and ferry-boat, with the presence or absence of failure, are safeguarded simple and convenient.
4th, safety and reliability is more preferable.
There is very big access pressure due to being directly to be attached with main website client database in traditional data acquisition modes
And security risk, data transmission failure may be caused.And data storage is realized unifying by the operational mode of the system in the application
Change, between the client at scene and main website data base, do not produce any network connection, disadvantages mentioned above can be effectively improved, lift main website
The safety of data base, improves the reliability of data transfer.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the application reality
The accompanying drawing in mode is applied, the technical scheme in the application embodiment is clearly and completely described, it is clear that described
Embodiment is only a part of embodiment of the application, rather than the embodiment of whole.Based on the embodiment party in the application
Formula, all other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made, all answers
When the scope for belonging to the application protection.
Fig. 2 is referred to, the application embodiment provides a kind of coal unit parameter processing system.The system includes front end
Data collection zone, data transfer area and end data memory block, between the front end data acquisition area and the data transfer area
It is connected with positive isolating device.
Specifically, the front end data acquisition area is used for encapsulating the data call mode of each data source types, and to institute
The parameter for stating coal unit carries out Real-time Collection and history collection.
The predetermined directory of data client is deposited in for the data by collection after compression in the data transfer area
In file;Wherein, the data client is communicated by the data, services end with main website, is taken with the data to the main website
Business end uploads the data through compression.
The end data memory block is for according to the preassigned file specification form general in the front end data acquisition area
The data write main website data base at the data, services end.
In the present embodiment, the front end data acquisition area is realized by front end data acquisition application, the front end data
Acquisition applications support that polytype communications protocol, the front end data acquisition application are used for polytype communication association
View is integrated into unified channel interface and protocol interface;The fire coal is gathered by the unified channel interface and protocol interface
The supplemental characteristic of unit, and the supplemental characteristic of collection is converted to into document form according to default rule schemata.
In the present embodiment, the front end data acquisition application includes host program module and plugin library, wherein:It is described
Host program module manages the plug-in unit in the plugin library for by card i/f specification, and by the data for collecting according to
Default rule schemata carries out packing encapsulation, and the data after packing encapsulation are write the file mesh that the positive isolating device is specified
In record.The plugin library is used for storing the corresponding plug-in unit of various type of database.
In the present embodiment, the data transfer area is realized by data transmission applications, is wrapped in the data transmission applications
Data client and data service end is included, wherein:The data client is for literary for ciphered compressed by the data processing of collection
Part, and the ciphered compressed file is deposited in transmission CACHE DIRECTORY folder;Using network communication protocol, Jing information in power dispatching center
Network erects data transmission channel, and the ciphered compressed file during the transmission CACHE DIRECTORY is pressed from both sides with the data, services end
It is sent to the data, services end;The data, services end is used for receiving the ciphered compressed file, and the encryption is pressed
Contracting file is stored in file storage center.
In the present embodiment, the end data memory block is realized by end data storage application, the end data
Storage application is for being decrypted the data at the data, services end and decompressing, and the data after decryption and decompression are write
Enter in main website data base.
Fig. 2 to Fig. 4 is referred to, in specific application scenarios, front end data acquisition area main task is to unit
Operational factor carries out gathering with history in real time, using software package technology, encapsulates all data source types data call sides inside the province
Formula, the method for operation and form of uniform data acquisition applications.Data transfer area main task is by collection file and main website end reality
Existing real-time, interactive, data transfer area have abandoned the mode that data in original acquisition system directly store warehouse-in at the scene, but will
Data file is deposited in specific catalogue file after high accuracy is compressed, and on-site transfer client-side program is taken with master station transmission
Business end program is communicated, and the real-time upload and history for realizing compressed file is mended and passed.End data memory block main task is right
The all unit operation parameters of the whole province carry out in-stockroom operation, according to the file specification form of front-end collection, develop unified data and enter
Storehouse is applied, and realizes the real-time storage of data.
Invention defines front end data acquisition application be UniCollect, in view of field monitoring Data Source exist it is various
The characteristic of change, contains DCS system, SIS systems, mis system etc., and it is complicated to be related to type of database, including PI, Edna,
OpenPlant, Agilor, GE iH, SQL Server, Vestore, Rython etc., acquisition applications support polymorphic type in design
Communications protocol, realizes unified channel interface and protocol interface using software package technical approach, is transported in Computer Service mode
OK, it is ensured that the stability and reliability of operation.According to specific rule schemata after acquisition applications acquisition data, file is converted to
Form is kept in.The acquisition applications possess more preferable autgmentability, for newly-increased data source types, it is only necessary to acquisition applications
Subprogram modify i.e. be capable of achieving data Real-time Collection and history collection.In Unicollect acquisition applications, can
With including capture program master controller and parameter Loading Control device.When Unicollect acquisition applications are run, can pass through many
Thread carries out the processes such as channel control, database access, acquisition tasks control and Data Transmission Controlling.Additionally,
Unicollect acquisition applications can also be entered to channel bank and protocol library respectively by channel bank controller and protocol library controller
Row management.Channel that can be different including TCP/IP, GPRS, CDMA etc. in channel bank, in protocol library can including OPC,
The common protocols such as Modbus, IEC61850.
Using compression stage cipher mode, the present invention realizes that data are uploaded, define client-side program for Uniclient, definition
Serve end program is Uniserver.The data file that front end data acquisition area generates is by the isolating device ferry-boat in system to number
According to transmission range, ciphered compressed file is formed by Uniclient process, compression encryption file is stored in transmission CACHE DIRECTORY folder,
Wait transmission processe.Client-side program utilizes network communication protocol, Jing Electric Power Dispatching Data Networks to erect data with service end
The compressed file of encryption is sent to main website end data file storage center by transmission channel.Data center supports console mode
Transmitting control commands manipulate data transmission module, realize the controllable of file transmission.As shown in figure 4, can include in client
Data staging directory, the data in data staging directory can be read in data catalogue to be compressed, and pass through data encryption pressure
Contracting module is encrypted compression process.File after process can be stored in data catalogue to be sent, and have sent encryption
After compressed file, the ciphered compressed file for having sent write can be sent in file storage module.At service end, can be with
The ciphered compressed file that client is sent is received by receiver module, the ciphered compressed file is sent to into file storage center then,
Such that it is able to write in the data base of main website.
In order to adapt to the data file interactive mode in data transfer area, end data memory block part is realized by the present invention
It is uniformly processed, defines unified storage application program Uniwrite.According to format and the encryption of previously described agreement
Compressed file is realized real-time decompression operations by compressed format, Uniwrite first, is then carried out the data file after decompression
Process, real time data and historical data are carried out into write into Databasce operation.The service end physics of Uniwrite and data transmission range
Upper independent operating, reduces also reducing security risk while data base's pressure.Uniwrite can realize all unit fortune inside the province
The unified storage warehouse-in of line parameter.
Specifically, Unicollect realizes data acquisition application using plug-in unit mode, and the data acquisition application includes place
Main program module and plugin library.Host program is capture program main body, mainly responsible plug-in unit library management, task scheduling, multithreading
Control, configuration management, data compression, network transmission and log recording.Host program is managed slotting by card i/f specification
Part, realizes data acquisition, and the data for collecting is installed specific file format packing encapsulation, be ultimately written positive isolation dress
Put the file directory specified.
Wherein, plug-in management refers to the loading of responsible plug-in unit and calls control, supports different manufacturers, the data of different brands
Storehouse, device talk agreement.
Task scheduling refers to according to data collecting rule, forms acquisition tasks order, and carried out according to card i/f specification
Correlation is called.
Multi-thread control refers to that various threads drive capture program operation, primary thread to have:Plug-in management scene, data pressure
Diminishing line journey, network transmission thread, daily record thread, task scheduling thread.
Configuration management refers to the various configuration informations for recording and managing capture program.
Data compression refers to that the data to collecting are compressed to form independent compressed data package informatin, and passes to net
Network transport module.
Network transmission is referred to be responsible for the data is activation after compression to data server, takes into account network and shakes hands order control.
Log system refers to the various running conditions information of record capture program main body, forms the daily record text of native format
Part.
Data transfer area adopts automatic transmission means, while supporting the artificial transmitting order to lower levels mode transmission data of service end.Number
Include a series of order and the file manipulation command of shaking hands according to host-host protocol:
Heartbeat commands:Control is kept for the network connection between UniClient and UniServer.
Log on command:The authority used in UniServer for determining UniClient, while guarantee many
UniClient can be with non-interfering work.
File transmits working directory setting command:For determining the root corresponding to files passe.
Catalogue folder sets up order:For setting up catalogue folder in UniServer, for storing upper transmitting file.
Catalogue file list:For to the file name list display in the subdirectory under root.
Upload file command:UniClient is uploaded in the catalogue that ciphered compressed file is specified in UniServer.
Download file command:Download the file under the catalogue that UniClient is specified from UniServer locally, and be responsible for
Resolution file content.
File deletion commands:UniClient sends file deletion commands to UniServer, is mainly used in assignment file
Update control.
In the present embodiment, unified storage application program Uniwrite software architectures can adopt distributed way,
Hold the storage warehouse-in that gathered data is realized in multi-process, multithreading.Uniwrite not only supports to store data into PI data
Storehouse, and support to store data in big data platform.
Fig. 5 is referred to, the application also provides a kind of coal unit parameter processing method, the method comprising the steps of.
S1:The data call mode of each data source types is encapsulated in advance, and the parameter to the coal unit carries out reality
When collection and history gather;
S2:In the predetermined directory file that the data of collection are deposited in data client after compression;Wherein, it is described
Data client is communicated by the data, services end with main website, to upload through compression to the data, services end of the main website
Data;
S3:The data at the data, services end are write into main website data base according to preassigned file specification form.
In one embodiment of the application, the data call mode of each data source types is encapsulated in advance, and to described
The parameter of coal unit carries out Real-time Collection and history collection is specifically included:
Polytype communications protocol is integrated into into unified channel interface and protocol interface, and by the unified letter
Pipeline joint and protocol interface gather the supplemental characteristic of the coal unit, and by the supplemental characteristic of collection according to default rule schemata
Be converted to document form.
In one embodiment of the application, the supplemental characteristic of collection is converted to into document form according to default rule schemata
Specifically include:
The data for collecting are carried out into packing encapsulation according to default rule schemata, and the data after packing encapsulation are just write
In the file directory specified to isolating device.
In one embodiment of the application, the pre- of data client is deposited in the data by collection after compression
If after the step in catalogue file, methods described also includes:
Using network communication protocol, Jing Electric Power Dispatching Data Networks erect data transmission channel with data, services end, and
The file processed through ciphered compressed is sent to the data, services end;
The data, services end receives the file through ciphered compressed process, and by described through ciphered compressed process
File be stored in file storage center.
In one embodiment of the application, according to preassigned file specification form by the number at the data, services end
According to write, main website data base specifically includes:
The data at the data, services end are decrypted and are decompressed according to preassigned file specification form, and will
In data write main website data base after decryption and decompression.
It should be noted that the specific implementation of above-mentioned each method and step and the description one in system embodiment
Cause, just repeat no more here.
There is following beneficial effect in the application above-mentioned technical proposal:
1st, Real-time Collection and the history collection of more big data quantity can be realized.
2nd, possesses preferable extensibility.
When source of new data is produced, the system in the application only needs to understand the data acquiring mode of source of new data, so as to
Program language can be converted into be encapsulated in existing front end data acquisition application, you can realize data acquisition, autgmentability
Good, the construction cycle is short.
3rd, field conduct and regular maintenance are simple.
When scene needs newly-increased measuring point, traditional acquisition mode is needed in acquisition server 1 and acquisition server 2
Program is all reconfigured, and virtually increased time and the workload of field conduct.And according to the fortune of system in the application
Row mode, newly-increased measuring point only need to carry out related measuring point arrangement to the front end data acquisition application in acquisition server 1, adopt
Collection server 2 should not carry out any operation.When system data breaks down, due to traditional acquisition mode data acquisition sum
All configure at the scene according to write, this is accomplished by putting into substantial amounts of time coordination power plant attendant and carries out the investigation of problem, and this
System in application is due to being sent directly to main website end by data file, therefore can be directly viewable data file whether normal transmission
Can determine whether that collection in worksite and ferry-boat, with the presence or absence of failure, are safeguarded simple and convenient.
4th, safety and reliability is more preferable.
There is very big access pressure due to being directly to be attached with main website client database in traditional data acquisition modes
And security risk, data transmission failure may be caused.And data storage is realized unifying by the operational mode of the system in the application
Change, between the client at scene and main website data base, do not produce any network connection, disadvantages mentioned above can be effectively improved, lift main website
The safety of data base, improves the reliability of data transfer.
Description to the various embodiments of the application is supplied to those skilled in the art with the purpose for describing above.Which is not
Be intended to exhaustion or be not intended to limit the invention to single disclosed embodiment.As described above, the application's is various
Substitute and change is will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, although specifically beg for
The embodiment of some alternatives is discussed, but other embodiment will be apparent, or those skilled in the art are relative
Easily draw.The application is intended to be included in all replacements, modification and the change of this present invention for having discussed, and falls
Other embodiment in the spirit and scope of above-mentioned application.
Each embodiment in this specification is described by the way of progressive, identical similar between each embodiment
Part mutually referring to what each embodiment was stressed is the difference with other embodiment.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application has many deformations
With change without deviating from spirit herein, it is desirable to which appended claim includes these deformations and changes without deviating from the application
Spirit.