I'm not sure I can help as I have been having the same problems. However, I have some investigations to go on. First, following the directions here I was able to get my printer to print something. You may wish to follow these directions to make sure that your printer and USB->serial cable works.
However, getting it to work with CUPS has been a little more frustrating and fruitless at the moment.
Going to the System|Administration|Printing app, it does not list the USB->serial port as a valid port to use, it only lists the serial ports on the motherboard, ttyS0 and ttyS1. I think this is primarily because somehow the permissions are not correct and can't be read by CUPS for some reason. One suggestion I read, said to set the URI manually, so I selected Other and put in:
Code:
serial:/dev/ttyUSB0?baud=115200+bits=8+parity=none+flow=hard
Unfortunately, when I attempt to print I get
Code:
Unable to open device file "/dev/ttyUSB0": Permission denied
I set the permissions of /dev/ttyUSB0 to the most liberal possible, but it still gives that error. Here's the permissions of /dev/ttyUSB0:
Code:
crw-rw-rw- 1 lp lp 188, 0 2010-05-08 17:10 /dev/ttyUSB0
Curiously, if I run the backend manually, I can get it to work fine, but I'm running as root:
Code:
root@myhost:/usr/lib/cups/backend# export DEVICE_URI=serial:/dev/ttyUSB0?baud=115200+bits=8+parity=3Dnone+flow=hard
root@myhost:/usr/lib/cups/backend# ./serial "5" "anonymous" "Test Page" "1" "job-originating-host-name=localhost" "/tmp/test.bin"
STATE: +connecting-to-device
STATE: -connecting-to-device
PAGE: 1 1
DEBUG: Wrote 1152 bytes...
DEBUG: Wrote 1152 bytes...
DEBUG: Wrote 1152 bytes...
...
DEBUG: Wrote 1152 bytes...
DEBUG: Wrote 1152 bytes...
DEBUG: Wrote 764 bytes...
Any other suggestions to take?
James
Bookmarks