[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2002055307A2 - Command protocol for two color thermal printing - Google Patents

Command protocol for two color thermal printing Download PDF

Info

Publication number
WO2002055307A2
WO2002055307A2 PCT/US2002/001047 US0201047W WO02055307A2 WO 2002055307 A2 WO2002055307 A2 WO 2002055307A2 US 0201047 W US0201047 W US 0201047W WO 02055307 A2 WO02055307 A2 WO 02055307A2
Authority
WO
WIPO (PCT)
Prior art keywords
color
command
steps
printing
text
Prior art date
Application number
PCT/US2002/001047
Other languages
French (fr)
Other versions
WO2002055307A3 (en
Inventor
Andrew M. Kobziar
Steven Spano
Original Assignee
Axiohm Transaction Solutions, Inc.
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 Axiohm Transaction Solutions, Inc. filed Critical Axiohm Transaction Solutions, Inc.
Priority to EP02705787A priority Critical patent/EP1559023A2/en
Priority to CA002400044A priority patent/CA2400044A1/en
Priority to AU2002239915A priority patent/AU2002239915A1/en
Publication of WO2002055307A2 publication Critical patent/WO2002055307A2/en
Publication of WO2002055307A3 publication Critical patent/WO2002055307A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/028Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers by thermal printers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1848Generation of the printable image
    • G06K15/1852Generation of the printable image involving combining data of different types

Definitions

  • the present invention relates to thermal printing of sales receipts and, more particularly, to methods of safeguarding and enhancing the appearance of sales receipts by printing in two colors and in real time.
  • the methods of this invention are unique to Point-Of -Sale printers; they provide sales receipts with watermarks, strike-throughs, and circles-about-an-item. These added functions can be accomplished in real time. Some of them can be printed in differentiating colors.
  • a strike-through function is obtained by selectively adding a dot row to the center of the font cell. The strike-through has application in the voiding of purchased items and in emphasizing the old price in a discounted item.
  • the watermark function embeds a predefined shaded logo or graphic into the receipt paper, in order to discourage fraud and counterfeiting.
  • the watermark process can print the watermark in red, which cannot be copied on black print only copiers.
  • the graphic is filtered to provide a faded background image .
  • the method of adding a surround graphic-about-an-item can be selected to highlight specific text.
  • the ellipse form of the surround graphic can be partially broken or completely closed.
  • the method uses a set of four command parameters in accordance with a command protocol developed specifically for POS printing.
  • FIGURE 1 illustrates a plan view of a typical font cell being modified to provide a strike-through function
  • FIGURE 2 depicts a plan view of a strike-through being used to emphasize the new sale price of a sales item
  • FIGURE 3 shows a flow chart diagram for the method of providing a strike-through for a sales receipt
  • FIGURE 4 illustrates a flow chart diagram for the process of generating a watermark on a sales receipt
  • FIGURE 5 depicts a plan view of printed sales receipt items featuring the standard and "free-hand" ellipse-about-an-item function, in accordance with this invention
  • FIGURE 6 shows a flow chart diagram of the method of providing the ellipse-about-an-item function as shown in FIGURE
  • the invention features command protocols for enhanced thermal printing of sales receipts.
  • the command protocols of this invention provide sales receipts with watermarks, strike-throughs, and surround graphic-about-an-item.
  • FIGURE 1 a typical font cell 10 for standard ASCII text is shown.
  • the font cell 10 was obtained with a 203 dpi thermal printer.
  • the font cell 10 is thirteen dots wide by twenty- four dots high in the preferred embodiment, but the technique applies to any rectangular shaped cell.
  • a command is given by the user through a communication link (not shown) that selectively marks a dot row 12 m the center of the font cell 10.
  • the marked dot-row 12 comprises the same or alternate color as its destination character or characters.
  • the strike- through function is illustrated in FIGURE 2. It is often used to void purchased items, sales prices, etc., and to highlight discount pricing
  • a flow chart 100 depicts the method used to obtain the strike-through shown in FIGURE 2.
  • Font data is extracted from font memory 101 and read, step 102.
  • the data is then stored in temporary memory 104, step 103. If the data has been completely extracted, step 105, then color information is added, step 106. If the data has not been completely extracted, step 105, continued attempts are made to extract and read font data, step 102, via feedback loop 107. Having properly appended the color information, step 106, this is stored in temporary memory 104, as per feed line 108. After the color information has been appended, the dots used for the strike-through function are inserted, step 109. This information is also sent to temporary memory 104 via line 110. The temporary information is then copied into the text frame buffer 114, step 112. This is achieved via line 111. The program sequence then returns to the command parser.
  • the so-called watermark function is a real-time operation that is intended to embed a logo or design into the sales receipt, in order to prevent fraud by fabricating a counterfeit or erroneous receipt.
  • the watermark function combines arbitrary text on receipts, with a predefined logo or graphic. This graphic is a shaded version of a standard logo in order to achieve a faded effect.
  • the watermark is then merged, in real time, with the text stream.
  • the result is a receipt with a faded image in the background.
  • the graphic is printed in its predefined color. A red watermark discourages counterfeiting, because the graphic is difficult to photocopy.
  • a flow chart 200 shows the method of achieving a watermark when printing a sales receipt.
  • a print engine interrupt signal allows the enablement of the watermark, step 201, via decision block 202.
  • a raster is read, step 203, from logo memory 204.
  • the graphic is then merged with text, which is secured from the frame buffer 207.
  • the text can be sent to the print head either directly, step 210, or from the merged graphic, step 211.
  • the program sequence then returns to the command parser.
  • the ellipse-about-an-item command is designed to allow the user to circle a number of lines of ASCII text at any location on the receipt.
  • ellipse is used herein to indicate an enclosing or partially enclosing shape, including other curved shapes, both regular and irregular polygons, and even straight lines and bars.
  • the ellipse is intended to provide an additional method for highlighting or emphasizing some section of the receipt.
  • the command can be selected to create a closed or partially broken ellipse, as shown in FIGURE 5.
  • the command uses a set of four command parameters with two parameters used to initiate the sequence. The user, therefore, must transmit six bytes of data.
  • a typical sequence is illustrated below, in hexadecimal form: lB h XX h Fieldlh Field 2 h Field 3 h Field 4 h
  • the command is composed of six bytes, of which the first byte lB h is an industry standard character (ESC) .
  • ESC industry standard character
  • This character designates a command sequence.
  • the second byte XX h refers to a newly defined command code. This code is used to signify the real-time surround graphic sequence.
  • the last four parameters (Fieldl h through Field4 h ) are used as coordinate and image selection controls. Table 1, shown below, illustrates the use of these fields:
  • Field 3 Y axis dimension This is limited from a range of 1 through 4.
  • the field specifies the number of lines that the circle will encompass.
  • FIGURE 6 a flow chart 300 is shown for providing an ellipse about a number of lines of text in a sales receipt .
  • a print engine interrupt signal allows the enablement of the ellipse, step 301, via decision block 302.
  • loci are placed in temporary memory 304, step 303.
  • a decision is made as to whether the ellipse is to be closed or broken, step 305. If a broken ellipse is to be formed, step 306, it is merged with text, step 308 which is secured from the frame buffer 307.
  • step 309 it is merged with text, step 308, which is likewise secured from the frame buffer 307.
  • the text can be sent to the print head either directly, step 310, or from the merged text and ellipse image, step 311.
  • the program sequence then returns to the command parser.
  • the two-color, thermal command protocol is described hereinbelow.
  • This command sets the current printing mode based on monochrome or color.
  • the m n parameters select paper category and formulation version, respectively.
  • nl to n72/n80 corresponds to one dot row data for a thermal receipt printer. Each bit defines whether a dot of the current default color will be printed. This command is used for printing a singe raster monochrome graphic in real-time.
  • nl to n!44 / nl60 corresponds to one dot row data.
  • the value of the current logo is the logo index to be used to store the downloaded graphic.
  • w identifies whether the image is monochrome (which requires one parameter bit row description) or 2-color, which requires a pairing of bit descriptions for each row.
  • nl * n2 define a rectangular image nl bytes wide and n2 bytes long.
  • nl *8 specifies the number of dot columns, and n2*8 the number of dot rows. This command is used for storing a logo of nl by n2 size indexed by the current logo value.
  • Command Name Reverse Color Text Mode Command : ID 85 m n
  • This command sets a mode for reverse printing effects on text.
  • the background color is specified by m, and the color for text characters by n .
  • Parameter This applies a selected shade density to all monochrome objects such as text and monochrome logos.
  • the parameter m specifies the shading effect and has an initial value of 0 which signifies no effect.
  • Color Shade Mode Command ID 87 m
  • m specifies the shading effect and has an initial value of 0 which signifies no effect.
  • m 0 is the initial value and turns this mode off.
  • This command will merge into any subsequent print two solid bars on the far opposite sides of the paper printable area.
  • nL is the low order byte
  • nH is the high order byte of a 16 bit word specifying the width.
  • This command will print logo n .
  • This command will place into a background graphics buffer (which will be merged when output printing occurs) sidebars one or both sides.
  • a sidebar is defined as being of thickness h, consisting of color c and side selection s - as in the parameters nLm s of the Merge Sidebars Mode command.
  • Command Name Apply Shading To Logo Command : ID 8B n m o
  • This command will apply shading effect m to logo n and store it at index o, also extending width to full horizontal size if logo n is not at full paper width.
  • This command will insert the logo m as a repeated background image, similar to printing a visible watermark, into the print stream.
  • the space between repetitions of this usually shaded logo will be every n*8 dot rows.
  • This command will merge into any text character cell n rows of dots of full cell width, vertically centered in the cell. For a cell with an even number of rows, the first one below the middle is used, then the one above, then the one below that pair, etc.
  • the parameter m specifies the color of the merged dot rows, and the strike through overrides all previous dot content .
  • This command will store in Flash memory a paper type description identified by the structure in dl . . dn, adding the uniquely (by type category and version) identified structure for subsequent use by the Set Paper Type Command.
  • nL+ nH *256 define the number of bytes x that follow. These bytes contain the proprietary structure and CRC to operate the thermal print head .
  • the last two bytes will be a CRC value and the first 24 bytes will be as follows :
  • This command will save all the raster data that is in the working Graphics buffer (where surround graphics are formed) as a logo with index value n . This logo can then be used repeatedly for inserting different text. See the Background Logo Print command.
  • This command will place into the Graphics buffer the logo designated by n. As soon as there is a print action command (such as text output) the graphics buffer will be merged (logical OR process) with print output.
  • Command Name POS UStatus Modes Command : ID 96 m n
  • This command enables or turns off the unsolicited sending of printer state values back to the host whenever there is a change m any of the printer's configured states.
  • the modes settings can enable unsolicited responses which return a state change notification that can optionally have appended a command count and status of the last command executed.
  • a persistent version of this command is also available; it would setup the unsolicited modes to be retained by the printer across power loss instances. Both timed and unsolicited modes can be on simultaneously via issuing the command again with a different parameter setting.
  • the state values returned are from the state enumeration table described m the Printer Extended Command Status command.
  • T ⁇ 3 return the CRC of a logo indexed by n
  • n selects a return of either the largest free block or total free size, since contiguous allocation cannot be assumed as this area is completely under user control through address parameters.
  • n is the item index when more than one object of type m is possible
  • the firmware standard list is incrementally extended each time a new single or double byte set is downloaded.
  • each downloaded double byte character band is reported individually as OxCO, OxCl, 0xC2 .... for as many bands as have been defined.
  • This command returns the state of occupancy of available Flash storage and user RAM.
  • the printer response for each item is a 4 byte header, OxlD 0x97 nL nH (no. of bytes that follow in the response) and for each item a 4 byte structure: 1st ⁇ n(type) byte, 2nd n index byte followed by a 2 byte CRC in Lo Hi order of the data string in that storage space.
  • RAM storage space is not content typed, while available Flash is statically divided into logo, character set, and user data types. Change of the divisions is possible via Flash erasure and Flash allocation commands. Since other modifications and changes varied to fit particular operating requirements and environments will be apparent to those skilled in the art, the invention is not considered limited to the example chosen for purposes of disclosure, and covers all changes and modifications which do not constitute departures from the true spirit and scope of this invention .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Record Information Processing For Printing (AREA)
  • Heat Sensitive Colour Forming Recording (AREA)
  • Electronic Switches (AREA)

Abstract

Command protocol for enhancing the appearance of two-color thermal printing. The methods provides sales receipts (10) with watermarks, strike-throughs, and graphic surrounding an item. These added functions can be accomplished in real time. Some of them can be printed in distinguishing colors.

Description

FOR: COMMAND PROTOCOL FOR TWO COLOR THERMAL PRINTING APPLICATION OF: Steven Spano and' Andrew M. Kobziar
Cross Reference To Related Application: The present invention claims priority to U.S. Provisional Application, Serial Number 60/261,365, filed January 12, 2001.
Technical Field The present invention relates to thermal printing of sales receipts and, more particularly, to methods of safeguarding and enhancing the appearance of sales receipts by printing in two colors and in real time.
BACKGROUND ART Printing sales receipts in two colors is well known in the art. The two colors, such as red and black, draw attention to and emphasize certain important items on the receipt, such as sales tax, discounts, and non-taxable items. Two color printing of receipts has the capability of providing further benefits to both consumers and vendors, such as improving security by reducing forgeries, erasures, and receipt duplication. However, the current state of the art has not advanced to provide for these functions.
It is a principal object of this invention to provide a command protocol for enhancing thermal printing of sales receipts . It is a further object and advantage of the present invention to improve the appearance of sales receipts by adding a strike-through function, a watermark, and a graphic surrounding an item.
It is an additional object and advantage to improve the security of the receipt against erasures, forgeries, and receipt duplications.
Other objects and advantages of the present invention will in part be obvious, and in part appear hereinafter. SUMMARY OF THE INVENTION
In accordance with the present invention, there are provided methods of safeguarding and of enhancing the appearance of sales receipts. The methods of this invention are unique to Point-Of -Sale printers; they provide sales receipts with watermarks, strike-throughs, and circles-about-an-item. These added functions can be accomplished in real time. Some of them can be printed in differentiating colors. A strike-through function is obtained by selectively adding a dot row to the center of the font cell. The strike-through has application in the voiding of purchased items and in emphasizing the old price in a discounted item. The watermark function embeds a predefined shaded logo or graphic into the receipt paper, in order to discourage fraud and counterfeiting. The watermark process can print the watermark in red, which cannot be copied on black print only copiers. The graphic is filtered to provide a faded background image . The method of adding a surround graphic-about-an-item can be selected to highlight specific text. The ellipse form of the surround graphic can be partially broken or completely closed. The method uses a set of four command parameters in accordance with a command protocol developed specifically for POS printing.
BRIEF DESCRIPTION OF THE DRAWINGS A complete understanding of the present invention may be obtained by reference to the accompanying drawings, when considered in conjunction with the subsequent detailed description, m which:
FIGURE 1 illustrates a plan view of a typical font cell being modified to provide a strike-through function;
FIGURE 2 depicts a plan view of a strike-through being used to emphasize the new sale price of a sales item;
FIGURE 3 shows a flow chart diagram for the method of providing a strike-through for a sales receipt; FIGURE 4 illustrates a flow chart diagram for the process of generating a watermark on a sales receipt;
FIGURE 5 depicts a plan view of printed sales receipt items featuring the standard and "free-hand" ellipse-about-an-item function, in accordance with this invention; and FIGURE 6 shows a flow chart diagram of the method of providing the ellipse-about-an-item function as shown in FIGURE
5.
DESCRIPTION OF THE PREFERRED EMBODIMENT
Generally speaking, the invention features command protocols for enhanced thermal printing of sales receipts. The command protocols of this invention provide sales receipts with watermarks, strike-throughs, and surround graphic-about-an-item.
These added functions can be accomplished in real time. Some of them can be printed in distinguishing colors.
Now referring to FIGURE 1, a typical font cell 10 for standard ASCII text is shown. The font cell 10 was obtained with a 203 dpi thermal printer. The font cell 10 is thirteen dots wide by twenty- four dots high in the preferred embodiment, but the technique applies to any rectangular shaped cell.
In order to achieve a strike-through, a command is given by the user through a communication link (not shown) that selectively marks a dot row 12 m the center of the font cell 10. The marked dot-row 12 comprises the same or alternate color as its destination character or characters. The strike- through function is illustrated in FIGURE 2. It is often used to void purchased items, sales prices, etc., and to highlight discount pricing
Referring to FIGURE 3, a flow chart 100 depicts the method used to obtain the strike-through shown in FIGURE 2. Font data is extracted from font memory 101 and read, step 102. The data is then stored in temporary memory 104, step 103. If the data has been completely extracted, step 105, then color information is added, step 106. If the data has not been completely extracted, step 105, continued attempts are made to extract and read font data, step 102, via feedback loop 107. Having properly appended the color information, step 106, this is stored in temporary memory 104, as per feed line 108. After the color information has been appended, the dots used for the strike-through function are inserted, step 109. This information is also sent to temporary memory 104 via line 110. The temporary information is then copied into the text frame buffer 114, step 112. This is achieved via line 111. The program sequence then returns to the command parser.
The so-called watermark function is a real-time operation that is intended to embed a logo or design into the sales receipt, in order to prevent fraud by fabricating a counterfeit or erroneous receipt. The watermark function combines arbitrary text on receipts, with a predefined logo or graphic. This graphic is a shaded version of a standard logo in order to achieve a faded effect. The watermark is then merged, in real time, with the text stream. The result is a receipt with a faded image in the background. The graphic is printed in its predefined color. A red watermark discourages counterfeiting, because the graphic is difficult to photocopy.
Referring to FIGURE 4, a flow chart 200 shows the method of achieving a watermark when printing a sales receipt. A print engine interrupt signal allows the enablement of the watermark, step 201, via decision block 202. When the watermark is enabled, a raster is read, step 203, from logo memory 204. The graphic is then merged with text, which is secured from the frame buffer 207. The text can be sent to the print head either directly, step 210, or from the merged graphic, step 211. The program sequence then returns to the command parser. The ellipse-about-an-item command is designed to allow the user to circle a number of lines of ASCII text at any location on the receipt. The term "ellipse" is used herein to indicate an enclosing or partially enclosing shape, including other curved shapes, both regular and irregular polygons, and even straight lines and bars. The ellipse is intended to provide an additional method for highlighting or emphasizing some section of the receipt. The command can be selected to create a closed or partially broken ellipse, as shown in FIGURE 5. The command uses a set of four command parameters with two parameters used to initiate the sequence. The user, therefore, must transmit six bytes of data. A typical sequence is illustrated below, in hexadecimal form: lBh XXh Fieldlh Field 2h Field 3h Field 4h As aforementioned, the command is composed of six bytes, of which the first byte lBh is an industry standard character (ESC) .
This character designates a command sequence. The second byte XXh refers to a newly defined command code. This code is used to signify the real-time surround graphic sequence. The last four parameters (Fieldlh through Field4h) are used as coordinate and image selection controls. Table 1, shown below, illustrates the use of these fields:
Table I
Field 1 Left Hand Center/Loci. Number is based on the maximum allowable characters per line.
Field 2 Right Hand Center/Loci. Number is based on the maximum allowable characters per line.
Field 3 Y axis dimension. This is limited from a range of 1 through 4. The field specifies the number of lines that the circle will encompass.
Field 4 - Equation/Image selection (Closed ellipse, "freehand" ellipse etc.) Referring to FIGURE 6, a flow chart 300 is shown for providing an ellipse about a number of lines of text in a sales receipt . A print engine interrupt signal allows the enablement of the ellipse, step 301, via decision block 302. When the ellipse is enabled, loci are placed in temporary memory 304, step 303. Next, a decision is made as to whether the ellipse is to be closed or broken, step 305. If a broken ellipse is to be formed, step 306, it is merged with text, step 308 which is secured from the frame buffer 307. If a closed ellipse is to be formed, step 309, it is merged with text, step 308, which is likewise secured from the frame buffer 307. The text can be sent to the print head either directly, step 310, or from the merged text and ellipse image, step 311. The program sequence then returns to the command parser.
The two-color, thermal command protocol is described hereinbelow.
2 -Color Thermal Commands Command Name: Set Paper Type Command : ID 81 m n
Parameter: This command sets the current printing mode based on monochrome or color. The m n parameters select paper category and formulation version, respectively.
Command Name: Print Raster Monochrome Graphics
Command : ID 82 nl n!2 (576 dots) for 80mm paper, or n80
(640 dots) for 82.5m paper
Parameter: nl to n72/n80 corresponds to one dot row data for a thermal receipt printer. Each bit defines whether a dot of the current default color will be printed. This command is used for printing a singe raster monochrome graphic in real-time.
Command Name : Print Raster Color Graphics Command : ID 83 nl nl44 (576 dots 80 mm paper) / nl60 (640 dots, 82.5 mm paper)
Parameter: nl to n!44 / nl60 corresponds to one dot row data. For each printed dot row starting at the top left, a two- part bit string is used to define in the first half, all dots that are of either color (i.e., not white), and the second half string defines only the dots where the color = black. This command is used for printing a single raster of color graphics in real-time.
Command Name : Download Logo Image
Command : ID 84 m nl n2 dl dx , x = (nl * n2*8 ) * m m = 1 if monochrome, m = 2 if 2-color Max nl = 576/8 for 80 mm paper or 640/8 for 82.5 mm paper
Parameter: The value of the current logo is the logo index to be used to store the downloaded graphic. w identifies whether the image is monochrome (which requires one parameter bit row description) or 2-color, which requires a pairing of bit descriptions for each row. nl * n2 define a rectangular image nl bytes wide and n2 bytes long. nl *8 specifies the number of dot columns, and n2*8 the number of dot rows. This command is used for storing a logo of nl by n2 size indexed by the current logo value. Command Name : Reverse Color Text Mode Command : ID 85 m n
Parameter: This command sets a mode for reverse printing effects on text. The background color is specified by m, and the color for text characters by n . As in the case of the white/black reverse mode, the parameter m = 0 turns off the mode irrespective of n and is the initial value. m, n = 0 : white m, n = 1 : black m, n - 2 : paper-color
Command Name : Monochrome Shade Mode Command : ID 86 in
Parameter: This applies a selected shade density to all monochrome objects such as text and monochrome logos. The parameter m specifies the shading effect and has an initial value of 0 which signifies no effect.
m specifies the percentage of shading, 0 <= m <= 100. If > 0 then Color Shade Mode is turned off as well. m - 0 is the initial value and turns this mode off.
Command Name : Color Shade Mode Command : ID 87 m Parameter: This applies a mixing of color into any monochrome objects such as text and monochrome logos. Rather than fading away, this mode transitions a character or logo from the Current Color in which it would normally be printed to the other color. The parameter m specifies the shading effect and has an initial value of 0 which signifies no effect. m specifies the percentage of shading, 0 <= m <= 100. specifies the percentage of shading, 0 <= m <= 100. If > 0 then Monochrome Shade Mode is turned off as well. m = 0 is the initial value and turns this mode off.
Command Name : Merge Side Bars Mode Command : ID 88 nL nH m s
Parameter: This command will merge into any subsequent print two solid bars on the far opposite sides of the paper printable area. The bars are defined by: width n in dots and by color m. n <= 576/2, or <= 640/2 with 82.5 mm paper if s = 0 or twice those values otherwise.
nL is the low order byte, and nH is the high order byte of a 16 bit word specifying the width. nL, nH = 0 is the initial value and turns this mode off. m selects the color m = 0 (monochrome) is the initial value; m = 1 (2-color paper "primary color", usually black); m = 2 (second color available from 2-color paper) . s = 0 bars on both left and right side, s = 1 left side only side bar, s = 2 right side only side bar.
Command Name: Logo Print with Color Plane Swap Command : ID 89 n m
Parameter: This command will print logo n . The command is ignored if a logo with index n has not been defined. If m = 0 the color (s) as defined in the logo are used; if m = 1 and if the logo is a color one, then the two color planes (black and paper-color) in the logo are swapped.
2-Color Image Processing
Command Name: Merge Barcode Sidebars Mode Command : ID 8A h c s w m n dl... dn
Parameter: This command will place into a background graphics buffer (which will be merged when output printing occurs) sidebars one or both sides. A sidebar is defined as being of thickness h, consisting of color c and side selection s - as in the parameters nLm s of the Merge Sidebars Mode command. h = nL, c = m, and s = s of the parameter descriptions in that command. Command Name : Apply Shading To Logo Command : ID 8B n m o
Parameter. This command will apply shading effect m to logo n and store it at index o, also extending width to full horizontal size if logo n is not at full paper width.
n must be the index value of an existing logo 0 <= m <= 100, possibly resulting m a logo suitable for background watermark mode use o can be any value, and the logo will be placed according to the current setting of user storage into RAM or Flash memory.
Command Name : Merge Watermark Mode Command : ID 8C n m
Parameter: This command will insert the logo m as a repeated background image, similar to printing a visible watermark, into the print stream. The space between repetitions of this usually shaded logo will be every n*8 dot rows.
n = 0 is the initial value and turns this mode off. n >0 = number of dot rows x8 to skip before repeating the merge action. m specifies the index value of the logo. If no logo has been defined with this index then the command is ignored. Command Name: Text Strike Through Mode Command : ID 8D n m
Parameter: This command will merge into any text character cell n rows of dots of full cell width, vertically centered in the cell. For a cell with an even number of rows, the first one below the middle is used, then the one above, then the one below that pair, etc. The parameter m specifies the color of the merged dot rows, and the strike through overrides all previous dot content .
m = 0 retain same color as the character itself
/n = l (black) 771 = 2 (paper-color) n = 0 is the default; n <= standard cell height. If the strike through is as wide as is the cell height, then this will produce a cell that will be printed as a solid box current color .
Command Name : Download Paper Type Description Command : ID 8E nL nH dl... dn
Parameter: This command will store in Flash memory a paper type description identified by the structure in dl . . dn, adding the uniquely (by type category and version) identified structure for subsequent use by the Set Paper Type Command. nL+ nH *256 define the number of bytes x that follow. These bytes contain the proprietary structure and CRC to operate the thermal print head .
Command Name: Return Paper Type Description Command : ID 8F m
Parameter: This command will return from Flash memory a paper type description indexed by m, (0<=m<=15) sending back the data sequence used in the Download Paper Type Description command, i.e. the return is ID 8F m nL nH (dl...dn) which was stored in slot TΠ; or a value of n = 0 if slot m does not have a description stored. For all valid descriptions, the last two bytes will be a CRC value and the first 24 bytes will be as follows :
Figure imgf000017_0001
A value of m=FF will return the currently selected paper type
Command Name : Form and Merge Real Time Surround Graphic Command : ID 90 rn x y o p q Parameter: This command will print a real-time graphic style designated by m . w = 0 rectangle, m =1 oval, 771 =2 ellipse (if printed in a square area the ellipse becomes a circle) , ττι = 3 is a 5 point star, m = 4 is a free hand underline, 771 = 5 is a free hand ellipse and other values of m reserved for future styles. This graphic is formed into a RAM based Graphics buffer, and the buffer state is set to "graphic merge pending" .
Command Name: Save Graphics Buffer as Logo Command : ID 91 n
Parameter: This command will save all the raster data that is in the working Graphics buffer (where surround graphics are formed) as a logo with index value n . This logo can then be used repeatedly for inserting different text. See the Background Logo Print command.
Command Name : Background Logo Print Mode Command : ID 92 n
Parameter: This command will place into the Graphics buffer the logo designated by n. As soon as there is a print action command (such as text output) the graphics buffer will be merged (logical OR process) with print output. Command Name : POS UStatus Modes Command : ID 96 m n
Parameter: This command enables or turns off the unsolicited sending of printer state values back to the host whenever there is a change m any of the printer's configured states. An option is provided to return printer state on a timed basis (i.e., a pseudo state change = timer running out) . The modes settings can enable unsolicited responses which return a state change notification that can optionally have appended a command count and status of the last command executed. A persistent version of this command is also available; it would setup the unsolicited modes to be retained by the printer across power loss instances. Both timed and unsolicited modes can be on simultaneously via issuing the command again with a different parameter setting. The state values returned are from the state enumeration table described m the Printer Extended Command Status command.
Interpretation of command parameters:
Figure imgf000019_0001
Figure imgf000020_0001
Command Name : User Storage Status
ASCII: GS 0x97 m n
Hexadecimal : I D 97 TTI n
Decimal: 29 151 ττι n
Parameter: m specifies the type of stored object to be reported: m = 0 return the kilobytes (1024) of free User RAM, n = 0 gets largest free block size n = 1 gets the total size free
71 = 1 return the kilobytes of free Character & Logo Flash memory, n = 0 ! = 2 return the kilobytes of free User Data Flash memory, n = 0
TΠ = 3 return the CRC of a logo indexed by n
71 = 4 return the CRC of a downloaded character set, selected by n
71 = 5 return the CRC of a macro that has been stored, n = 0
For 77i = 0 the value n selects a return of either the largest free block or total free size, since contiguous allocation cannot be assumed as this area is completely under user control through address parameters.
1 = 0 if only one instance of an object type is allowed (macro, User Data, User Defined Characters) .
n is the item index when more than one object of type m is possible
n < = FE, see the comments about logo and character set indexes n = FF : return a list describing all the existing items of type TTI
When a specific item request is made, a returned CRC value of 0 0 indicates that no item is stored at that index. There is a practically negligible possibility that a valid object will have a 0 0 CRC; if this is of concern, applications should check the object downloaded byte sequence to verify that this is not the case (as well as store the CRC as an "ID" for the object if needed later for return value comparisons) .
User Defined characters' CRC is requested as m, n = 4, 0.
Downloaded Character sets are identified by integer extending the existing Code Page selection as enumerated in the Select International Character Set (= Select Character Code Table) command. The firmware standard list is incrementally extended each time a new single or double byte set is downloaded.
Single byte downloaded fonts are selected by m = 3 and 0x40 < = n < 0x80.
Since only three double-byte character sets are supported, the value 0x80 / OxAO / OxCO selects the first, second, third downloaded double byte font respectively. In return, each downloaded double byte character band is reported individually as OxCO, OxCl, 0xC2 .... for as many bands as have been defined.
This command returns the state of occupancy of available Flash storage and user RAM. The printer response for each item is a 4 byte header, OxlD 0x97 nL nH (no. of bytes that follow in the response) and for each item a 4 byte structure: 1st τn(type) byte, 2nd n index byte followed by a 2 byte CRC in Lo Hi order of the data string in that storage space.
The return for m =0-2 is the header and one 4 byte item giving remaining storage space in the CRC position in Lo Hi order. ID 97 4 0 m 0 fL fH, where f is the Kbytes of storage remaining. Note that RAM storage space is not content typed, while available Flash is statically divided into logo, character set, and user data types. Change of the divisions is possible via Flash erasure and Flash allocation commands. Since other modifications and changes varied to fit particular operating requirements and environments will be apparent to those skilled in the art, the invention is not considered limited to the example chosen for purposes of disclosure, and covers all changes and modifications which do not constitute departures from the true spirit and scope of this invention .
Having thus described the invention, what is desired to be protected by Letters Patent is presented in the subsequently appended claims.

Claims

What is claimed is: 1. A command protocol for printing an image, comprising the steps of : a) placing information representative of graphics in memory; and b) dynamically merging said graphics information with text during a printing step.
2. The command protocol in accordance with claim 1, wherein said information is hierarchically organized.
3. The command protocol in accordance with claim 1, further comprising the steps of: i) creating surround graphics; and ii) storing said surround graphics in a buffer.
4. The command protocol in accordance with claim 3, wherein said surround graphics are selected from the group of free form underline, ellipse, rectangle, oval, star and free hand ellipse.
5. The command protocol in accordance with claim 3, wherein said surround graphics is sized to be at least as large as said text to be surrounded.
6. A command protocol for printing in multi-color reverse of a POS printer, comprising the steps of: a) setting a first color for print text; b) setting a second color for background; c) in response to a reverse color text command, redefining the color for said background; and d) printing the reversed text and background in real time.
7. The command protocol in accordance with claim 6, wherein said reverse color text command in step (c) is 1D85.
8. A method for printing sidebars on multi-color paper, the steps comprising: a) setting the width of said at least one sidebar (s); b) determining the side or sides on which said at least one sidebar is to be printed; c) setting the color of said at least one sidebar; and d) d) whenever a dot-row is printed, merging in said at least one sidebar therewith.
9. The method for printing in sidebars in accordance with claim 8, the steps further comprising: a) replacing said at least one sidebar with a value representative of a one-dimensional barcode; and b) holding said barcode within solid sidebars and repeatedly merging said barcode and sidebars as dot- rows are printed.
10. A method for printing a watermark on multi-color paper, the steps comprising: a) selecting a graphic to serve as a watermark and downloading it to a printer as a logo; b) applying shading to said logo to fade out the graphic image; and c) whenever a dot-row is printed, merging said watermark therewith.
11. A method for printing strike-through on multi-color paper, the steps comprising: a) selecting a thickness of a strike-through line; b) selecting a color of said strike-through line; c) turning on a strike-through mode; d) whenever a character is printed, replacing the middle portion thereof with strike-through dots; and e) printing said modified character.
12. A method for identifying, handling, downloading and saving a paper type description, the steps comprising: a) assigning a value for an index, said value comprising at least one byte; b) assigning a value that defines the version of parameter structure; c) identifying a body of parameters; d) receiving validity check bytes; and e) saving parameters in non-volatile memory.
13. A method for setting paper type, the steps comprising: a) matching an index value to an index of a saved body of parameters ; and b) moving said parameters into a hardware assist chip.
14. A method for returning a paper type description, the steps comprising: a) matching an index value to a saved index; b) retrieving said saved parameter data structure; c) retrieving data validity check bytes; and sending said retrieved data to a host processor.
15. A method for returning the status of storage area reserved for users in a printing system, the steps comprising: a) obtaining a designation representative of storage type on which status is to be reported; b) obtaining identification of a predetermined item of interest; c) retrieving requested status information; and d) sending said retrieved status information to the host computer.
16. The method for returning the status of storage area reserved for users in accordance with claim 15, the steps further comprising: repeating said retrieving step (c) for multiple predetermined items.
17. The method for returning the status of storage area reserved for users in accordance with claim 15, the steps further comprising: calculating a CRC value dependent upon the presence and identification of said requested status information.
PCT/US2002/001047 2001-01-12 2002-01-11 Command protocol for two color thermal printing WO2002055307A2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP02705787A EP1559023A2 (en) 2001-01-12 2002-01-11 Command protocol for two color thermal printing
CA002400044A CA2400044A1 (en) 2001-01-12 2002-01-11 Command protocol for two color thermal printing
AU2002239915A AU2002239915A1 (en) 2001-01-12 2002-01-11 Command protocol for two color thermal printing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US26136501P 2001-01-12 2001-01-12
US60/261,365 2001-01-12

Publications (2)

Publication Number Publication Date
WO2002055307A2 true WO2002055307A2 (en) 2002-07-18
WO2002055307A3 WO2002055307A3 (en) 2005-06-09

Family

ID=22992982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2002/001047 WO2002055307A2 (en) 2001-01-12 2002-01-11 Command protocol for two color thermal printing

Country Status (4)

Country Link
EP (1) EP1559023A2 (en)
AU (1) AU2002239915A1 (en)
CA (1) CA2400044A1 (en)
WO (1) WO2002055307A2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1408465A2 (en) * 2002-10-11 2004-04-14 Seiko Epson Corporation Method of controlling printing apparatus in POS systems
WO2004074387A2 (en) * 2003-02-20 2004-09-02 Axiohm Transaction Solutions, Inc. Method and system for suppressing printing of graphics in a pos printer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5239622A (en) * 1991-11-28 1993-08-24 Monarch Marking Systems, Inc. Barcode identification system format editor
US5366791A (en) * 1990-07-06 1994-11-22 Paramount Packaging Corporation Thermoformable laminate material with registered print and method of making the same
US5894546A (en) * 1992-07-09 1999-04-13 Canon Kabushiki Kaisha Image processing apparatus for converting multivalued image into binary image and outputting binary image
US6297873B1 (en) * 1998-06-08 2001-10-02 Fuji Photo Film Co., Ltd. Image recording apparatus for recording an image according to characteristics of the image recording medium
US6501556B1 (en) * 1997-12-25 2002-12-31 Sharp Kabushiki Kaisha Image forming apparatus having a trial print mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5366791A (en) * 1990-07-06 1994-11-22 Paramount Packaging Corporation Thermoformable laminate material with registered print and method of making the same
US5239622A (en) * 1991-11-28 1993-08-24 Monarch Marking Systems, Inc. Barcode identification system format editor
US5894546A (en) * 1992-07-09 1999-04-13 Canon Kabushiki Kaisha Image processing apparatus for converting multivalued image into binary image and outputting binary image
US6501556B1 (en) * 1997-12-25 2002-12-31 Sharp Kabushiki Kaisha Image forming apparatus having a trial print mode
US6297873B1 (en) * 1998-06-08 2001-10-02 Fuji Photo Film Co., Ltd. Image recording apparatus for recording an image according to characteristics of the image recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1408465A2 (en) * 2002-10-11 2004-04-14 Seiko Epson Corporation Method of controlling printing apparatus in POS systems
EP1408465A3 (en) * 2002-10-11 2005-01-12 Seiko Epson Corporation Method of controlling printing apparatus in POS systems
WO2004074387A2 (en) * 2003-02-20 2004-09-02 Axiohm Transaction Solutions, Inc. Method and system for suppressing printing of graphics in a pos printer
WO2004074387A3 (en) * 2003-02-20 2004-12-09 Axiohm Transaction Solutions Method and system for suppressing printing of graphics in a pos printer

Also Published As

Publication number Publication date
AU2002239915A1 (en) 2002-07-24
WO2002055307A3 (en) 2005-06-09
AU2002239915A8 (en) 2005-11-17
CA2400044A1 (en) 2002-07-18
EP1559023A2 (en) 2005-08-03

Similar Documents

Publication Publication Date Title
US9218555B2 (en) Printing apparatus and printing control method for determining whether and where to print a watermark relative to print data
US7460252B2 (en) Graphical printing system and method using text triggers
EP1850273B1 (en) Super resolution encoded microprinting through postscript
US6789482B2 (en) Printing method, recording medium containing a program for applying the printing method, printer, printer driver, POS terminal, and POS system
EP2429165A1 (en) Method and device for controlling watermark printing
US6739773B2 (en) Thermal printing a two-color sales receipt
US12056546B2 (en) Methods and systems for operating a printing apparatus
EP1017226B1 (en) Printer on which picture recognition processor for forgery prevention is mounted, computer for providing print source to printer, and print system including printer and computer
US7355737B2 (en) Apparatus and method for two-color printing based on single color data
EP0820004B1 (en) Print system, print method, printer driver and printer
US20030011799A1 (en) Command protocol for two color thermal printing
CN100370419C (en) Information processor, printing controlling method, computer program and printing system
US4979131A (en) Printer apparatus
EP1906340B1 (en) Rasterizing device
EP1559023A2 (en) Command protocol for two color thermal printing
US7070100B2 (en) Desktop card printer with embedded PCL, Telnet, and USB hub and method for using same
US11138484B2 (en) Colored region barcode printing
US20060069992A1 (en) Method of managing the printing of characters and a printing device employing method
US20040085579A1 (en) Predefined field command structure for point of sale printer
JP3827998B2 (en) Printing apparatus and printing method
KR100223650B1 (en) Data processing method for printer
JP2006301739A (en) Business form print system
CN110837348A (en) Printing method capable of reducing cost
US10839562B2 (en) Methods and systems for enabling object attribute driven super resolution encoding
WO2004090745A1 (en) System for printing variable data

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 10182496

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2400044

Country of ref document: CA

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2002705787

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWP Wipo information: published in national office

Ref document number: 2002705787

Country of ref document: EP

NENP Non-entry into the national phase in:

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP

WWW Wipo information: withdrawn in national office

Ref document number: 2002705787

Country of ref document: EP

DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)