CN106547499B - A method of control printer modes return - Google Patents
A method of control printer modes return Download PDFInfo
- Publication number
- CN106547499B CN106547499B CN201610963411.XA CN201610963411A CN106547499B CN 106547499 B CN106547499 B CN 106547499B CN 201610963411 A CN201610963411 A CN 201610963411A CN 106547499 B CN106547499 B CN 106547499B
- Authority
- CN
- China
- Prior art keywords
- printer
- command
- manager
- data
- querying command
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1284—Local printer device
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)
- Record Information Processing For Printing (AREA)
Abstract
A method of control printer modes return, A) whether host computer first to judge current printer manager idle, if not idle direct return " printer busy " information;B it after) printer querying command is received by printer, first deposits in the input-buffer of Plotter Manager, caching maximum can achieve 64K byte;C) for Plotter Manager after every processing has printed data line, Plotter Manager carries out prescan processing to the remaining data in input-buffer;If current line there is no a querying command has been processed, scans all remaining datas until finding next bar state querying command, handles the status inquiry command and remove the status inquiry command data in caching, exit;Prescan processing status querying command does not handle and prints other data;D prescan processing mode) is used, printer accordingly set the time of the querying command of any position within 0-1.5 seconds.
Description
Technical field:
The present invention relates to a kind of methods that control method suitable for printer, especially state return.
Background technique:
When host computer connects printer printing, it is often necessary to obtain printer working condition, usually inquire the life of state
It enables and print data is mixed in together issues printer.And it is limited to printer input-buffer size, querying command often gets lodged in electricity
In the print manager at brain end, or the data trailer of input-buffer is got lodged in, and cannot handled in time.Usual stylus printer
The data in input-buffer are handled with behavior unit, previous row data do not print data line after terminating to handle, institute
The time random length for obtaining returning status information with computer, often has more than 20 seconds or more or loss of state, loses acquisition shape
The practical significance of state.
Summary of the invention:
Object of the present invention is to propose a kind of method that control printer modes return, host computer connects and controls printing
Machine printing, has done optimization processing to traditional querying method, has optimized algorithm in computer end and printer side respectively, reached sound
Short effect, improves the efficiency of printer between seasonable.
The technical scheme is that the spy that a kind of method that control printer modes return, i.e. printer modes return
Different directions or tendencies method, host computer connect and control printer printing, Plotter Manager control printing, it is characterised in that:
Whether A host computer first judges current printer manager idle, if not idle direct return " printer busy "
Information;If Plotter Manager is idle, printer modes querying command is retransmited;
It after B printer querying command is received by printer, first deposits in the input-buffer of Plotter Manager, caching is most
It can achieve 64K byte greatly;
C Plotter Manager is after every processing has printed data line, and Plotter Manager is to the residue in input-buffer
Data carry out prescan processing;The difference that prescan is handled with normal data is, if current line, which exists, has processed one
Status inquiry command then directly exits;If current line scans all remainders there is no a querying command has been processed
According to until finding next bar state querying command, handling the status inquiry command and removing the status inquiry command number in caching
According to exiting;Prescan processing status querying command does not handle and prints other data;
D uses prescan processing mode, and printer accordingly set the time of the querying command of any position at 0-1.5 seconds
Within.
The utility model has the advantages that the present invention has done optimization processing to traditional querying method, (beaten in computer end and printer side respectively
Print the simple and effective control method of generator terminal mouth 1) algorithm is optimized, reach actual effect of the response time less than 1.5 seconds.Contracting
The short status inquiry time, improve query success rate;PC sends data and order to printer, can directly pass through the end USB
Point 1 programs simple and clear without accessing USB endpoint 0 by WINDOWS bottom.
Detailed description of the invention:
Fig. 1 is printer processes flow diagram.
Specific embodiment:
1, computer application program is first checked in print manager and is not yet tied with the presence or absence of print out task when sending out querying command
Beam, if so, directly returning to application program " printer busy " state;If not provided, querying command can be sent.
2, the querying command sent, which is mingled with other print datas and is received by printer, is placed in input-buffer.Printer
It handles as follows: if the querying command in input-buffer, in the first row of current data, printer, which is normally handled and returned, works as
Preceding state.If the querying command in input-buffer is after the first row of current data, and current line does not have data, then every time
After having printed Current Datarow, a prescan processing is done to the remaining data in input-buffer.If scanning is looked into first
Order is ask, then return to current printer state and removes the querying command in input-buffer, present scan terminates;If without if
It is normal to return.Prescan processing does not do any dissection process to normal data and other orders, only does to specific querying command
Relevant treatment.Every printing data line at most only handles a status inquiry command.
It as shown in the figure, is prescan process flow in dotted line frame, the not no process of normal print machine program
Its function be only inquire and processing whether there is or not status inquiry command, other Independent Commands and data not to do any place
Reason.
Using: it has actually used, has worked well in 2016 Nian Nong head office DPK220 bid, success rate up to 100%, order by inquiry
Enable the corresponding time between 0.0S-1.5S.
Claims (1)
1. the specific process that a kind of method that control printer modes return, i.e. printer modes return, host computer connect simultaneously
Printer printing is controlled, Plotter Manager controls printer, it is characterised in that:
A) whether idle host computer first judges current printer manager, if not idle direct return " printer busy " letter
Breath;If Plotter Manager is idle, status inquiry command is retransmited;
B it after) status inquiry command is received by printer, first deposits in the input-buffer of Plotter Manager, caches maximum energy
Enough reach 64K byte;
C) Plotter Manager is after every processing has printed data line, and Plotter Manager is to the remaining data in input-buffer
Carry out prescan processing;Prescan processing step is, straight if current line exists and processed a bar state querying command
It connects and exits;If current line there is no a bar state querying command has been processed, scans all remaining datas until finding down
One bar state querying command handles the status inquiry command and removes the status inquiry command data in caching, exits;Prescan
Processing status querying command does not handle and prints other data;
D prescan processing mode) is used, printer accordingly sets the time of the status inquiry command of any position 0-1.5
Within second.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610963411.XA CN106547499B (en) | 2016-11-04 | 2016-11-04 | A method of control printer modes return |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610963411.XA CN106547499B (en) | 2016-11-04 | 2016-11-04 | A method of control printer modes return |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106547499A CN106547499A (en) | 2017-03-29 |
CN106547499B true CN106547499B (en) | 2019-05-28 |
Family
ID=58394151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610963411.XA Active CN106547499B (en) | 2016-11-04 | 2016-11-04 | A method of control printer modes return |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106547499B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1001333A2 (en) * | 1998-11-13 | 2000-05-17 | Hewlett-Packard Company | Network printing |
JP2007179371A (en) * | 2005-12-28 | 2007-07-12 | Funai Electric Co Ltd | Printing system |
CN101364167A (en) * | 2007-08-06 | 2009-02-11 | 山东新北洋信息技术股份有限公司 | Printing control method and device |
CN103927138A (en) * | 2013-01-10 | 2014-07-16 | 山东新北洋信息技术股份有限公司 | Print system, print method thereof and printer |
CN105224264A (en) * | 2014-06-10 | 2016-01-06 | 山东新北洋信息技术股份有限公司 | Network printing control method and system and printer and the webserver |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8610921B2 (en) * | 2009-06-30 | 2013-12-17 | Konica Minolta Laboratory U.S.A., Inc. | Systems and methods for message based determination of printer capabilities |
US20100328706A1 (en) * | 2009-06-30 | 2010-12-30 | Konica Minolta Systems Laboratory, Inc. | Systems and methods for message based determination of printer capabilities |
-
2016
- 2016-11-04 CN CN201610963411.XA patent/CN106547499B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1001333A2 (en) * | 1998-11-13 | 2000-05-17 | Hewlett-Packard Company | Network printing |
JP2007179371A (en) * | 2005-12-28 | 2007-07-12 | Funai Electric Co Ltd | Printing system |
CN101364167A (en) * | 2007-08-06 | 2009-02-11 | 山东新北洋信息技术股份有限公司 | Printing control method and device |
CN103927138A (en) * | 2013-01-10 | 2014-07-16 | 山东新北洋信息技术股份有限公司 | Print system, print method thereof and printer |
CN105224264A (en) * | 2014-06-10 | 2016-01-06 | 山东新北洋信息技术股份有限公司 | Network printing control method and system and printer and the webserver |
Also Published As
Publication number | Publication date |
---|---|
CN106547499A (en) | 2017-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107346580B (en) | Billing information recognition methods and device | |
EP1531378A3 (en) | Print apparatus, print system, job processing method, storage medium, and program | |
CN206185293U (en) | Scanning welder system of robot | |
EP1548569A3 (en) | Information processing apparatus, print job management method, information processing program, and recording medium | |
CN106547499B (en) | A method of control printer modes return | |
CN103963483B (en) | Unique code is screened and is printed industrial anti-misoperation device and Method of printing thereof | |
CN110899252A (en) | Intelligent control system and method for laser cleaning | |
CN106863008A (en) | A kind of tool monitoring method and system based on graphical analysis | |
CN112078246A (en) | Printing system and printing method of ink-jet printer | |
CN101169708A (en) | Information processing device, printing system and information processing method | |
CN115562180A (en) | Processing control method, system and medium of laser engraving machine | |
CN102024250B (en) | Image processing apparatus and control method | |
CN1490719A (en) | Information processor, printing controlling method, computer program and printing system | |
CN108255430A (en) | NCQ command handling methods, storage device and computer readable storage medium | |
CN1241110C (en) | Printing controller and storage medium | |
CN105510883B (en) | Secondary radar digitizes interrogation coding implementation method | |
EP1035469A3 (en) | Information processing apparatus, information processing method, and computer-readable storage medium storing program for controlling the same | |
EP1217511A3 (en) | Print system, information processing apparatus and method, and computer-readable memory medium | |
CN102541483A (en) | Method and system for digital printing of book | |
US20090128596A1 (en) | Increasing Inkjet Printer Page Yield | |
CN104331383B (en) | Water heater one master and multiple slaves operation equipment mailing address distribution method | |
CN204667405U (en) | Fingerprint recognition logs in and regularly replaces the device of operating system password | |
CN114193938A (en) | Laser printer imaging control system based on laser unit self-adaptive adjustment | |
CN110517419A (en) | Interception serial ports cash register print data and the method and system for pursuing and attacking additional information | |
JP2007219813A (en) | Printing system and printing process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |