lp_server 1.1.8 This program allows you to 'export' a printer on your local host to be used by an LPRng spooler. It is basically simulating an HP JetDirect interface, which opens a connection on port 9100 and simply dumps input to the PostScript Engine.
You can use lp_server for point of sale receipt printer and for customer pole display. If you are using it for point of sale and having problems printing. Try -w option for lp_server and for your printer command use the -oraw option.
lp_server [-n port] [-t stty_options] [-d device]
-n port - listen (bind) to this port for incoming connections
-d device - the device to open
-t stty_options - a list of stty options, similar (i.e.- identical)
to those used by other filters supplied with LPRng.
Epson TM-T88III and TM-T88IV Printers Been using LTSP (3.x) for point of sales system. Need to do some testing for Epson TM-T88III and TM-T88IV for barcodes, fonts, etc. Modified the lp_server to dump the buffer to std output. The buffer dump will print dec, oct, hex and the character. Updated the source code to compile cleanly with gcc 4.x and old gcc 3.x.
Made a very simple bash script to test the Epson TM-T88's. It's not so much the script, but the codes to turn the features on and off that was the hardest to find! You will need to modify the printer command in bash script to work with your printer or you can run the script and then cat the test file to the printer. Tested source code on Suse 9.3 with gcc 3.3.5 and PCLinuxOS 2007 with gcc 4.1.1. I hope this will help you use Epson TM-T88 printer with Linux and LTSP.
Download FILE: lp_server.tar.gz (93.8 KB)
Changes Version 1.1.8 4/22/2007
Updated source code for gcc 4.x. Code will still work with older gcc. Tested code on Suse 9.3 with gcc 3.3.5 and PCLinuxOS 2007 with gcc 4.1.1
New buffer dump to help (me) debug point of sales printer. Buffer dump will print to std output the dec, oct, hex, and character. For buffer dump use "-D 2" option. (without quotes)
Add some more debug output.
Updated source code to include GNU license notice.
New bash script to test Epson TM-T88 receipt printers. (Codes for printing barcode, fonts, etc.)
Version 1.1.6 Mon Sep 17 16:52:46 PDT 2001
fixed up nonblocking open, changed to blocking read/write after open.
fixed up the SO_REUSE
fixed make files for Gmake and FreeBSD Make
Version 1.1.3 Sun Mar 29 16:55:23 PST 1998
Makefile modified for BSD compatibility
Bug Fixes: Minor fumbling with IO, using select() (Patches by: Chris O'Regan")
NOTE This code is based on lp_server 1.1.6 source code by Patrick Powell.