CN104281419A - Transformer substation device universal printing method based on middleware - Google Patents

Transformer substation device universal printing method based on middleware Download PDF

Info

Publication number
CN104281419A
CN104281419A CN201310285471.7A CN201310285471A CN104281419A CN 104281419 A CN104281419 A CN 104281419A CN 201310285471 A CN201310285471 A CN 201310285471A CN 104281419 A CN104281419 A CN 104281419A
Authority
CN
China
Prior art keywords
middleware
printing
transforming plant
data
plant apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310285471.7A
Other languages
Chinese (zh)
Other versions
CN104281419B (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.)
NR Electric Co Ltd
Maoming Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
NR Electric Co Ltd
Maoming Power Supply Bureau of Guangdong Power Grid 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 NR Electric Co Ltd, Maoming Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201310285471.7A priority Critical patent/CN104281419B/en
Publication of CN104281419A publication Critical patent/CN104281419A/en
Application granted granted Critical
Publication of CN104281419B publication Critical patent/CN104281419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1205Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1224Client or server resources management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1293Printer information exchange with computer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a transformer substation device universal printing method based on middleware. A transformer substation device comprises an application layer, the middleware and a physical layer. The middleware comprises an abstraction layer module and a transport layer module which are in communication with the application layer and the physical layer respectively. The application layer transmits the printing specification and data to the abstraction layer module, the abstraction layer module selects data structures based on classes and according to printing requirements to form printing data blocks, and the printing data blocks are included in a printing queue of the middleware to wait to be sequentially processed by the transport layer module according to a first-in first-out principle; the transport layer module obtains the data block waiting for the longest time in the printing queue of the middleware to analyze the data block, a corresponding driving module is selected for conducting protocol processing on data content according to the interface type of a printed object, and the data content is transported to the physical layer through an I/O equipment interface. By means of the method, data output of the transformer substation device on printers of different interface types can be achieved, and the flexibility and configurability of the device are greatly improved.

Description

Based on the transforming plant apparatus universal printing method of middleware
Technical field
The present invention relates to a kind of universal printing method, the device Method of printing particularly in a kind of transformer station.
Background technology
In Industry Control and field of power system control, the printing function of device is a kind of important man-machine interaction mode.In each application stages such as debugging, operation and maintenances, all there is the demand data being obtained historical record and real-time status by printing interface in field device.
At present, the main flow printing type of transforming plant apparatus is still based on serially printing, namely every table apparatus or each screen cabinet configure a stylus printer, device with RS232 serial ports to printer transmitting data information, but serially printing exist deployment cost high, print the low problem of speed.Chinese Patent Application No. 201220119850.X proposes a kind of centralized network print system based on Ethernet, the method need be set up server at station level and install print service assembly, owing to adding transit server link between transforming plant apparatus and printer, the transfer efficiency that device prints and stability are all vulnerable to impact.Along with the popularization of intelligent substation, the print performance of the application demand that transformer station makes rapid progress to device is had higher requirement, to the requirement also more variation of printing interface.On the other hand, device in transformer station generally is embedded platform, performance and resource relatively limited, owing to cannot support to install all kinds of printer driver as desktop computer, the conventional printing model of general embedded equipment is difficult to the different printing interface type of flexible adaptation, and the lifting of print performance also runs into bottleneck.
Summary of the invention
Object of the present invention, is to provide a kind of transforming plant apparatus universal printing method based on middleware, and it can export in the data of different interface type printer by implement device, increases substantially dirigibility and the configurability of device.
In order to reach above-mentioned purpose, solution of the present invention is:
Based on a transforming plant apparatus universal printing method for middleware, described transforming plant apparatus comprises application layer, middleware and Physical layer; Described middleware comprises level of abstraction assembly and transport layer assembly, communicate with Physical layer with application layer respectively, level of abstraction assembly is used for the data block order of device print application being become consolidation form with data encapsulation, and transport layer assembly is then selected driver module by concrete print protocol translation data and transfer to Physical layer by I/O equipment interface to realize printout.
The data block that above-mentioned level of abstraction component package becomes comprises the control domain of memory command and parameter information and the data field of storaging printing data content.
When above-mentioned transforming plant apparatus connects serial ports stylus printer, print data block content is construed to serial code stream by ESC/P serial ports stylus printing agreement and prints serial ports transmission through device again by transport layer assembly.
When above-mentioned transforming plant apparatus connects USB interface printer, print data block content is packaged into usb data packets of information by USB communications protocol and sends through device USB port by transport layer assembly.
When above-mentioned transforming plant apparatus connects Ethernet printer, print data block content is carried out Information encapsulation by network printing agreement and is sent through device Ethernet interface by transport layer assembly.
After adopting such scheme, the present invention is directed to the printing demand that existing transformer station is complicated and changeable, carry out implement device by middleware to export in the data of different interface type printer, to can be applicable in transformer station in device, by the framework of middleware, meet printing demand day by day complicated in transformer station, and can select to print strategy accordingly according to the printer of distinct interface, both saved the secondary development cost of device, also ensure that transformer station's printing can reliably, efficiently complete.This method does not need additional configuration driver at the scene simultaneously, 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 transforming plant apparatus universal printing method based on middleware, described transforming plant apparatus comprises application layer, middleware and Physical layer, and described middleware is between application layer and Physical layer, reduce the coupling between application of installation layer and Physical layer, improving the versatility of device print application, general realizing interface for providing between the different print application of transforming plant apparatus and dissimilar printer.
As shown in Figure 1, of the present inventionly realize configuration diagram, described middleware is divided into level of abstraction assembly and transport layer assembly according to function, these two assemblies communicate with Physical layer with the application layer of device respectively, level of abstraction assembly is used for the data block order of device print application being become consolidation form with data encapsulation, and transport layer assembly is then selected driver module by concrete print protocol translation data and transmitted by physical interface.Overall realization flow as shown in Figure 2, will be introduced below respectively.
When application of installation layer performs concrete printing according to user's request, printing specification and data are passed to level of abstraction assembly by the printing function system of application layer, the latter selects data structure to form print data block according to printing demand by class, this data block is made up of control domain and data field two parts: control domain memory command and parameter information, comprise the print setting information such as interface type, page setup, also comprise the parameter information relevant to output format, the font of such as text printing is selected and the resolution of graphic printing is arranged; Data field storaging printing data content.For printout format and the substantially similar data-printing of device storage format, as text printing, device is stored the data field of data-moving to print data block by the suction parameter that level of abstraction assembly directly calls by print system.For the data-printing that printout format and device storage format differ greatly, as graphic printing, level of abstraction assembly writes data field after need carrying out format conversion processing by application layer demand to device storage data again.Finally, the print queue being put into middleware is waited for that transport layer assembly processes successively according to the principle of first in first out by the print data block that the process of level of abstraction assembly completes.
Transport layer assembly obtains stand-by period data block at most and resolves from the print queue of middleware.Transport layer assembly selects corresponding driver module to carry out protocol processes to data content according to the interface type of print object.When print object is serial ports stylus printer, print data block content is construed to serial code stream by ESC/P serial ports stylus printing agreement and prints serial ports transmission through device again by transport layer assembly; When print object is USB interface printer, print data block content is packaged into usb data packets of information by USB communications protocol and sends through device USB port by transport layer assembly; When print object is Ethernet printer, print data block content is carried out Information encapsulation by print command language PCL (Printer Command Language) or ipp IPP (Internet Print Protocal) by transport layer assembly, then completes print out task by the Fast Ethernet bus driver network printer.When transforming plant apparatus needs to increase the support to new interface printer, need not the print module code of modifier application layer, only need add the driver module comprising related protocol conversion process in middleware transport layer assembly and physical interface can meet the demands, and newly-increased interface has no effect to the original printing function of device.
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.

Claims (5)

1., based on a transforming plant apparatus universal printing method for middleware, described transforming plant apparatus comprises application layer and Physical layer; It is characterized in that: described transforming plant apparatus also comprises middleware, middleware comprises level of abstraction assembly and transport layer assembly, communicates respectively with application layer with Physical layer;
Printing specification and data are passed to level of abstraction assembly by described application layer, level of abstraction assembly selects data structure to form print data block according to printing demand by class, and the print queue that this print data block is put into middleware waits for that transport layer assembly processes successively according to the principle of first in first out;
Transport layer assembly obtains stand-by period data block at most and resolves from the print queue of middleware, and selects corresponding driver module to carry out protocol processes to data content according to the interface type of print object, then transfers to Physical layer by I/O equipment interface.
2. as claimed in claim 1 based on the transforming plant apparatus universal printing method of middleware, it is characterized in that: the print data block that described level of abstraction assembly is formed comprises the control domain of memory command and parameter information and the data field of storaging printing data content.
3. as claimed in claim 1 or 2 based on the transforming plant apparatus universal printing method of middleware, it is characterized in that: when described transforming plant apparatus connects serial ports stylus printer, print data block content is construed to serial code stream by ESC/P serial ports stylus printing agreement and prints serial ports transmission through device again by transport layer assembly.
4. as claimed in claim 1 or 2 based on the transforming plant apparatus universal printing method of middleware, it is characterized in that: when described transforming plant apparatus connects USB interface printer, print data block content is packaged into usb data packets of information by USB communications protocol and sends through device USB port by transport layer assembly.
5. as claimed in claim 1 or 2 based on the transforming plant apparatus universal printing method of middleware, it is characterized in that: when described transforming plant apparatus connects Ethernet printer, print data block content is carried out Information encapsulation by network printing agreement and sent through device Ethernet interface by transport layer assembly.
CN201310285471.7A 2013-07-08 2013-07-08 Transformer substation device universal printing method based on middleware Active CN104281419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310285471.7A CN104281419B (en) 2013-07-08 2013-07-08 Transformer substation device universal printing method based on middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310285471.7A CN104281419B (en) 2013-07-08 2013-07-08 Transformer substation device universal printing method based on middleware

Publications (2)

Publication Number Publication Date
CN104281419A true CN104281419A (en) 2015-01-14
CN104281419B CN104281419B (en) 2017-05-03

Family

ID=52256334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310285471.7A Active CN104281419B (en) 2013-07-08 2013-07-08 Transformer substation device universal printing method based on middleware

Country Status (1)

Country Link
CN (1) CN104281419B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066219A (en) * 2017-03-28 2017-08-18 许继电气股份有限公司 A kind of network printing method of relay protection device of intelligent substation
CN112130784A (en) * 2020-10-09 2020-12-25 深圳市智百威科技发展有限公司 Method for intelligently selecting bar code type according to data during printing of commodity bar code

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870535A (en) * 1997-05-12 1999-02-09 Lexmark International, Inc. Method and apparatus for building rasterized lines of bitmap data to be printed using a piecewise-linear direct memory access addressing mode of retrieving bitmap data line segments
CN101022496A (en) * 2006-02-13 2007-08-22 索尼株式会社 Information processing device, method, and program
CN103033715A (en) * 2012-12-25 2013-04-10 山东电力集团公司电力科学研究院 Operating status detection system for area equipment in converting station

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870535A (en) * 1997-05-12 1999-02-09 Lexmark International, Inc. Method and apparatus for building rasterized lines of bitmap data to be printed using a piecewise-linear direct memory access addressing mode of retrieving bitmap data line segments
CN101022496A (en) * 2006-02-13 2007-08-22 索尼株式会社 Information processing device, method, and program
CN103033715A (en) * 2012-12-25 2013-04-10 山东电力集团公司电力科学研究院 Operating status detection system for area equipment in converting station

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张向群等: "《智能变电站集中式网络打印的研究与应用》", 《计算机工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066219A (en) * 2017-03-28 2017-08-18 许继电气股份有限公司 A kind of network printing method of relay protection device of intelligent substation
CN112130784A (en) * 2020-10-09 2020-12-25 深圳市智百威科技发展有限公司 Method for intelligently selecting bar code type according to data during printing of commodity bar code

Also Published As

Publication number Publication date
CN104281419B (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN103902486A (en) System, device and method for implementation of remote direct memory access
CN103345410B (en) The mobile customized interface implementing method of operation business and system
CN103618724A (en) Method and system for communications between terminal and virtual machine
CN105025046A (en) Cloud platform used for 3D printing, 3D printing system and method
CN103647706A (en) Self-adaptation protocol communication gateway and communication platform
CN102566949B (en) The shared Method of printing of smart machine printer in transformer station
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN101119152A (en) Multi-service transmission and device for microwave communication
CN104281419A (en) Transformer substation device universal printing method based on middleware
CN104090733A (en) Network printer
CN105302502A (en) Method, client, printer, platform and system for implementing print sharing
CN104281417A (en) Distributed printing system and method for transformer substation device
CN101826061A (en) Shared system and management method of hardware device
CN103593149A (en) Printing method for achieving ARINC 744A-1 standard based on Ethernet and printing conversion device
CN101464844B (en) Control method and bus interface of RAM use right
CN100493018C (en) Communication method via bus interface of network and and system thereof
CN114055968B (en) Intelligent ink jet numbering machine of thing networking
CN101277244B (en) ATM synchronous Ethernet and method for transmitting/receiving data
CN104506642B (en) A kind of efficient transmitting-receiving of client message and processing method and system
CN108762697B (en) Printing method and device based on browser end
CN103399718A (en) Digital printing system and digital printing method
CN203496468U (en) Digital printing system
CN205193780U (en) Trade mark image print system
CN103077152B (en) A kind of communication acceleration method for terminal equipment of intelligent substation chip chamber
CN110519308A (en) The conversion equipment and method of a kind of MQTT Internet of Things to Profibus-DP fieldbus

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