A kind of substation equipment Method of printing of printing terminal Network Based and system
Technical field
The invention belongs to transformer substation system equipment technical field, particularly relate to equipment Method of printing and the system of the transformer substation system of communication network in a kind of application station.
Background technology
Apply a large amount of secondary device such as protective device, measure and control device in the automated system in power industry field to control for completion system and the automation function of information acquisition.The printing function of these equipment is a kind of important man-machine interaction mode.Equipment operation maintenance personnel in debugging, run and the different operating stage such as maintenance, the multi-class facility information such as model version, parameter configuration, measuring state, message accounting, triggering record ripple that can obtain equipment by printing interface is at any time used for realizing the different operating targets such as status monitoring, crash analysis, archives data.
At present, the main flow printing type of substation equipment is still based on serially printing, and namely every platform equipment or each screen cabinet configure a stylus printer, and working equipment completes printout function by its RS-232 serial ports to stylus printer transmission data.On the one hand, when the number of devices of electric substation automation system is more, need paying more expense, to be used for purchasing printer supporting to complete function; On the other hand, owing to printing the functional limitation of serial ports, the printout of bulk data is often consuming time comparatively of a specified duration, particularly relates to the print application that graphic printing etc. is data-intensive.
Chinese Patent Application No. 201220119850.X proposes a kind of centralized network print system based on Ethernet, and the method need be set up server at station level and install print service assembly.The data content of its printout derives from the parsing module of transformer station's standard traffic stipulations, but because the stipulations communication interface of equipment and printing interface are the diverse interface modes of two class character, the organizational form of data message differs greatly, and thus the more difficult realization of printing server and the on all four format content of equipment local printing interface export.
Chinese Patent Application No. 201210001375.0 proposes the shared Method of printing of smart machine printer in a kind of transformer station, and the method proposes to set up print control unit and connects multiple stage substation equipment to realize sharing the cost-saving target of printing by RCS485 bus.But its networking model is based on the lower equipment of serial of communication speed, thus cannot solves data-printing in enormous quantities and export slower time consuming procedures found.
Along with the popularization of power industry intelligent substation, electric substation automation system application ethernet communication is used for high-speed transfer Various types of data information becomes main flow mode of operation.The system equipment of transformer station generally all possesses ethernet interface, but has been mainly used in the interface function of standard traffic stipulations at present.Simultaneously, substation equipment generally based on embedded platform exploitation, performance and resource relatively limited, cannot the driving of the convenient installation network printer as conventional computer, thus local printing interface substantially still adopts the serial ports pattern of low speed, cannot realize more excellent print performance.
Summary of the invention
Object of the present invention, be substation equipment Method of printing and system that a kind of printing terminal Network Based is provided, it can realize substation equipment and export in the data of different interface type printer, and the local serially printing of format content and equipment exports completely the same.
In order to reach above-mentioned purpose, solution of the present invention is:
A substation equipment Method of printing for printing terminal Network Based, is characterized in that: described substation equipment realizes remote printing function by interconnection network printing terminal; Substation equipment will need the data message of printout to map to network communication protocol and be sent to network printing terminal by device network interface, and reduction apparatus data message after network printing terminal receives also realizes printout.
In such scheme: described data message comprises print data, format information and control command, described substation equipment is packaged into data block by needing the above-mentioned data message of printout.
In such scheme: described mapping refers to: send to described network printing terminal after network communication protocol control information is added to described data block; Correspondingly, described reduction refers to: described network printing terminal peels off the type information data block of network communication protocol control information reduction apparatus.
In such scheme: the printout object of substation equipment is the physical printer of each interface type, or be virtual printing terminal, described virtual printing terminal includes but not limited to: man-machine display terminal, computer documents.
In such scheme: described single substation equipment connects single or multiple network printing terminal, described single network printing terminal accesses single or multiple substation equipment.
In such scheme: described network printing terminal both exists as stand alone software, or as the assembly of the arbitrary system software of transformer station.
The substation equipment Method of printing of described printing terminal Network Based, is characterized in that: described transformer station communication network includes but not limited to ether communication network.
The present invention also provides a kind of substation equipment print system of printing terminal Network Based, it is characterized in that: described print system is made up of substation equipment subsystem and network printing terminal subsystem, and both all access transformer station's communication network; Described substation equipment subsystem is print data provider, and network printing terminal subsystem is print data output side, and transformer station's communication network is print data transmission medium; Described substation equipment subsystem configures print management module, local printing output module and home network proxy module; Described network printing terminal subsystem need configure distant place network agent module, distant place printout module and distant place printing control model;
The Print Control order in the local or distant place of described print management resume module, to integrate and the print data of encapsulation format, and with local printing output module or home network proxy module interactive command and data message;
Described local printing output module receives the local printing function of the data out message finishing equipment of print management module;
Described home network proxy module and the realization of distant place network agent module print data to the mapping of network communication protocol and transmit data by communication network in station;
After described distant place printout module receives print command and data content from distant place network agent module, realize format print after performing data processing or conversion operations again and export;
Described distant place printing control model passes through the long-range setting of transformer station's communication network and the printing function of opertaing device.
After adopting such scheme, the present invention is directed to the printing demand that existing transformer station is complicated and changeable, realize substation equipment by network agent to export in the data of different interface type printer or virtual medium, and can select to print strategy accordingly by the printer of configuration network printing terminal for distinct interface, both the secondary development cost of equipment printing function had been saved, also ensure that electric substation automation system printing can reliably, efficiently complete, realize the consistance of equipment local printing and distant place print format content simultaneously.In addition, when the print media of transformer substation system application new interface type, this method does not need to change functions of the equipments, only needs the interface configuration adjusting network printing terminal, also reduces the cost of labor of substation operation and maintenance.
Accompanying drawing explanation
Fig. 1 is structured flowchart of the present invention.
Fig. 2 is process flow diagram of the present invention.
Embodiment
Below with reference to accompanying drawing, technical scheme of the present invention is described in detail.
The invention provides a kind of substation equipment Method of printing and system of printing terminal Network Based, described substation equipment and network printing terminal access transformer station's communication network simultaneously, are realized the flexible printout of substation equipment by the data interaction between network agent module.Print system provided by the present invention is made up of substation equipment subsystem and network printing terminal subsystem, and both all access transformer station's communication network; Described substation equipment subsystem is print data provider, and network printing terminal subsystem is print data output side, and transformer station's communication network is print data transmission medium; Described substation equipment subsystem configures print management module, local printing output module and home network proxy module; Described network printing terminal subsystem need configure distant place network agent module, distant place printout module and distant place printing control model;
The Print Control order in the local or distant place of described print management resume module, to integrate and the print data of encapsulation format, and with local printing output module or home network proxy module interactive command and data message;
Described local printing output module receives the local printing function of the data out message finishing equipment of print management module;
Described home network proxy module and the realization of distant place network agent module print data to the mapping of network communication protocol and transmit data by communication network in station;
After described distant place printout module receives print command and data content from distant place network agent module, realize format print after performing data processing or conversion operations again and export;
Described distant place printing control model passes through the long-range setting of transformer station's communication network and the printing function of opertaing device.
As shown in Figure 1, of the present inventionly realize configuration diagram, substation equipment is divided into print management module, local printing output module, home network proxy module according to function, print management module realizes print command process, print data integrates the functions such as encapsulation, information interaction can be carried out with home network proxy module and realize distant place printout, also directly can realize local printing function by local printing output module simultaneously.Network printing terminal comprises distant place network agent module, distant place printout module and distant place printing control model, distant place network agent module receives from the data of substation equipment network agent module and command information and is passed to printout module, printout module in a distant place again according to terminal configuration and control command process print data, and realizes print data and exports in the information of different medium interface.And distant place printing control model can pass through the long-range setting of communication network in station and the printing function of opertaing device.
The realization flow of overall printing function as shown in Figure 2, will be introduced below respectively.
When transformer station adopts ethernet communication, first substation equipment and the network agent module of network printing terminal need to set up TCP by ether communication network and link transport vehicle as print data and order.After equipment receives the concrete print command in this locality or a distant place, its print management module in charge is resolved print parameters and is compiled relevant print data information, then print data, format information and control command are packaged into data block and pass to home network proxy module, the latter sends to the distant place network agent module of network printing terminal after adding Ethernet TCP Communication Control information.Distant place network agent module peels off Ethernet TCP Communication Control information and the type information data block of reduction apparatus pass to printout resume module.Printout module is resolved and print data of recombinating according to the format information of data block, and selects output interface according to terminal configuration and control command and perform printout operation.When other similar communication networks of application in substations, the communications protocol realizing similar ethernet communication process by network agent module maps or reduction work.
The mode of operation that two kinds different can be selected in the substation equipment Method of printing practice of printing terminal Network Based.The first mode of operation is centered by substation equipment, and network printing terminal plays the part of subordinate role.Substation equipment initiatively sets up the communication contact with network printing terminal according to demand, and the debugging utilizing the latter to realize type information exports or expands the printer supporting new interface type.The second mode of operation is centered by network printing terminal, and substation equipment plays the part of subordinate role.Network printing terminal sets up communication contact from different substation equipments respectively by user's request, the printing of distant place starting outfit, realizes the concentrated print management demand of substation equipment information.Because substation equipment and network printing terminal are communication node in station, therefore both are not limited only to set up single annexation to list, can need the annexation setting up one-to-many, many-one, even multi-to-multi according to practical application.Multi-linkly only need the Portable Batch System considering multiple print job compared with single connection, the processing procedure of each print out task and single connection are applied does not have difference.
Network printing terminal in this method can be independently software entity, may also be the assembly of the arbitrary system software of transformer station.Terminal can set different printout patterns according to the actual requirements flexibly, both can select the virtual output forms such as man-machine terminal display, computer documents, also can realize the physical mediums such as pin type serial printer, the network printer and export demand.When substation equipment needs to increase the support to new interface printer, the program function of equipment need not be revised, only can need meet the demands at the driver module of network printing terminal increase new interface, and newly-increased interface have no effect to the original printing function of equipment.
Above embodiment is only and technological thought of the present invention is described, can not limit protection scope of the present invention with this, and every technological thought proposed according to the present invention, any change that technical scheme basis is done, all falls within scope.