Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Method to simulate the printer state to maximize its throughput

IP.com Disclosure Number: IPCOM000028713D
Original Publication Date: 2004-May-27
Included in the Prior Art Database: 2004-May-27
Document File: 2 page(s) / 19K

Publishing Venue

IBM

Abstract

In order to allow the application to control the printer effectively, the state of the printer driver must be same as that of the printer. This state synchronization can be placed at key check points to maximize the printer throughput (i.e. allow application to send data to the printer as fast as possible) while maintaining the state of the printer driver to the desired state of the printer device.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 79% of the total text.

Page 1 of 2

Method to simulate the printer state to maximize its throughput

    Since the data shipped via various communication means can be slower than the data sent to the driver, there is a built-in lag between what is being sent to the printer and what is being sent to the driver. This data lag can cause a printer state lag. In order to compensate for this side effect, especially in the error case, the driver state is synchronized to the printer only when it has to. The following example illustrates how a RecLineChars property (maximum number of characters that can be printed on the line - a property of the POS Printer defined by the Unified POS specification) change is handled:

DriverApplication Driver

Current driver RecLineChar = 40 chars/ line

Driver RecLineChar = 42 chars/line
Mark status = "changed"

   If status = "changed" then handle the "changes"

   Process the print data

   Bundle the "changes" and print data together to maximize pay load

Send payload to printer

Current printer RecLineChar = 40 chars/ line

Printer RecLineChar = 40 chars/line

   Set Printer RecLineChar = 42 chars/ line

Print the data

     As a result, depending on when a printer state is turn on and off, the above scheme can choose to "eliminate" this change without sending it to the printer.

     The printer state is cached in the driver and synchronized only when it needs to. "No operation" printer state changes are eliminated using this scheme. In addition, the application can send data to the driver as fast as possibl...