From: [mailto:] On Behalf Of Ed K
Sent: Friday, November 02, 2007
11:45 AM
To:
Subject: [ts-7000] Re: Support for
USB Printer - Is it really that complicated?
I'm using a Belkin F5U002
USB to parallel adapter cable and a
Panasonic KX-P1150 dot-matrix printer. With the printer.o module
installed (thanks to Kevin) I can simply plug the cable in (as Yan
suggested) and the printer (or more accurately the CABLE) magically
appears as /dev/usb/lp0. That's the interesting part: whether or not
the printer is plugged in or on-line, the system thinks there's a
printer at /dev/usb/lp0 as long as the cable is plugged in.
If anyone knows how I could get a signal back from this system call
(or some other system call that would work better) I'd very much
appreciate your input. I'm just SO close to getting this thing done.
My guess is that the USB driver recognizes
the interface chip buried in the cable so knows to create the
/dev entry. I expect that when you send
data it eventually fills the buffers in the chip so the transmit flow-controls
and
stops. If you have a manual for the
printer you might check to see if there’s a status command you can send
that will
elicit some positive response. Maybe you
could send it and timeout?
Bob
Bond