[lug] talking directly to a printer

Hugh Brown hugh at math.byu.edu
Thu Jan 9 09:08:08 MST 2003


On Thu, 2003-01-09 at 03:12, D. Stimits wrote:
> Hugh Brown wrote:
> 
> > On Wed, 2003-01-08 at 19:34, Peter Hutnick wrote:
> >
> > >Hugh Brown said:
> > >
> > >>I have a printer that whose manual claims that if you send it a hex
> > >>number it will respond with a status byte.  Is there a way to do this
> > >>under linux and get the output (I can use cat to write to the device
> > >>file, or I can use cat to read from the device file but not both at the
> > >>same time) without hacking on the kernel?
> > >
> USB produces, via the HID kernel "stuff" (that's a technical term, it 
> inherits from "module" and "coffee" and "fuzzy brain" and "jeez, it is 
> after 1 AM, why the *#$% am I awake?"), /dev/input/, and within 
> /dev/input/, are various USB devices. If it were a mouse, you'd know it 
> is /dev/input/mouse0 or similar, ditto for keyboard and joystick. I have 
> to wonder what the device would be named for a USB printer? 

/dev/usb/lp0  according to cups






More information about the LUG mailing list