send raw windows .prn file to cups

Anonymous anonymous at easysw.com
Mon Jan 30 12:34:18 PST 2006


yehaaa! i owned it.

i just copied the print job onto the mac and ran: <lpr open_drawer.raw> and the drawer opened!!

good n8 folks!

> hi all
>
> i'm trying to open a cash drawer that is connected to a "point of sale" printer. the documentation says that you simply have to write a control character to the printer and the printer opens the cash drawer.
>
> i achieved this under windows. to debug the process i redirected the print job into a file and opened it with a hex editor:
>
> 07 1b 1f 70 03 00 (all numbers are hex-numbers 0x07 .. )
>
> these 6 raw bytes are sent to the printer.
>
> the thing i wanna do is: transfer these 6 bytes onto mac os which uses cups as it's default printing system and print those 6 bytes by any command line utility so the printer opens its cash drawer.
>
> does anyone of you have any idea how to set this up? any tiny hint would be greatful! thanx, armin





More information about the cups mailing list