Problem with serial printer
antony at antgel.co.uk
Fri Apr 15 08:45:22 PDT 2005
I'm having a problem with a receipt printer that we're using in a POS
system. It's got a serial connection and the manufacturer has provided
filter and model files for CUPS. They also provided a serial backend
binary. When I use their serial backend, I get:
D [15/Apr/2005:16:27:05 +0100]
start_process("/usr/lib/cups/backend/serial", 0xbfff0fb0, 0xbfff0320,
11, 12, 10)
I [15/Apr/2005:16:27:05 +0100] Started backend
/usr/lib/cups/backend/serial (PID 26269) for job 11.
D [15/Apr/2005:16:27:05 +0100] ProcessIPPRequest: 7 status_code=0
E [15/Apr/2005:16:27:05 +0100] PID 26268 stopped with status 22!
E [15/Apr/2005:16:27:05 +0100] PID 26269 stopped with status 22!
D [15/Apr/2005:16:29:01 +0100]
With the standard serial backend, it's no better.
start_process("/usr/lib/cups/backend/serial", 0xbfff0fe0, 0xbfff0350,
11, 12, 10)
I [15/Apr/2005:16:29:01 +0100] Started backend
/usr/lib/cups/backend/serial (PID 26428) for job 11.
D [15/Apr/2005:16:29:01 +0100] ProcessIPPRequest: 7 status_code=0
E [15/Apr/2005:16:29:01 +0100] PID 26427 stopped with status 22!
The only difference is that with their backend, the printer gets stopped
and the job is held on the queue.
Nothing prints out either way. I have configure CUPS to the correct
specs of 9600, 8-N-1, and tried both types of HW flow control. I can
cat a file to /dev/ttyS0, and it appears on the printer.
stty -a -F /dev/ttyS0 doesn't change, whatever the baud rate and other
setting in cups are, but it's 9600 anyway. The printer _does_ print
from CUPS using the raw driver.
Can somebody help me please? Is this definitely a problem with the
manufacturer's driver (rastertoby2002s)?
More information about the cups