Does anyone have any idea for this?
I have a star receipt printer with a parallel interface and no linux drivers. So I am printing to it using lp and just sending raw text to the device itself. The command in question, which works just fine, is:
lp -d star temprint.txt
In the same way, I send the hex characters to make it cut the receipt and also to open the cash drawer.
I say it works fine, it has one slight issue which we can live with, that being that if the printer goes offline, all the print requests queue up and print out in a batch when it comes back. However this being an industrial strength receipt printer, its something we can live with, it hardly ever happens. Leaving that aside....
I set up the printer in CUPS with the name of star, and addressed as
parallel:/dev/lp0
Now comes the problem. Parellel interfaces having gone the way of the dodo, the new computer I'm seeking to use only has a usb port. So I got a usb to parallel converter cable. I have played with this by stopping cups, then editing the /etc/cups/printers.conf file.
I can't get it to work. Supposedly from the gentoo wiki, which is usually very helpful, you should address it as
parallel:/dev/usb/lp0
On the grounds that linux still thinks its dealing with a parallel port. Makes no sense to me, but I tried it, and no luck. The cable itself is recognised and visible if you do lsusb.
Also, I know it works fine as cable because I can connect another printer with a parallel port for which I do have drivers, and successfully print a test page on it over that cable.
I must be doing something obvious wrong, but what? How do you address the usb port directly and just send it a stream of text, as in my present setup? Is there a way?
Peter
On 24/09/11 04:19, Peter Alcibiades wrote:
Also, I know it works fine as cable because I can connect another printer with a parallel port for which I do have drivers, and successfully print a test page on it over that cable.
Using the same computer as the one you are trying to get it working on with the receipt printer ?
I must be doing something obvious wrong, but what? How do you address the usb port directly and just send it a stream of text, as in my present setup? Is there a way?
I think the kernel logs might give you a clue as to what device node the parallel port is appearing as..personally having not used one of these I would have expected it to just appear as a parallel interface and not under USB.
AFAIK these things provide a parallel interface to the host in the same way that plugging in a PCI one would do...I think you are expecting it to work like a bit of cable where you put USB commands in one end and get parallel ones out of the other, but USB doesn't work like that. In fact your computer should just think it has a parallel interface installed now and you just need to find out what device node it is on.
On Sat, Sep 24, 2011 at 04:19:54AM +0100, Peter Alcibiades wrote:
I must be doing something obvious wrong, but what? How do you address the usb port directly and just send it a stream of text, as in my present setup? Is there a way?
Have you tried "parallel:/dev/usblp0"
From :
http://blog.maestropublishing.com/usb-to-parallel-converter-trendnet-tu-p128...
Adam