Linux Commands Examples

A great documentation place for Linux commands

usb_printerid

prints the ID of the printer on a USB port


see also : arm2hpdl

Synopsis

usb_printerid [options] /dev/usb/lpNNN


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

Print the USB info before and after downloading the firmware.

# usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;\
DES:HP LaserJet 1020;
# cp /lib/firmware/hp/sihp1020.dl /dev/usb/lp0
# usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;\
DES:HP LaserJet 1020;FWVER:20050309;

0
source
            
log "usb_printerid on the usb device and send the output to:"
log "rick.richardson@comcast.net"
fi

description

usb_printerid prints the identification of the printer on a USB port using the ioctl control LPIOC_GET_DEVICE_ID.

files

/usr/bin/usb_printerid, /lib/firmware/hp/*


see also

arm2hpdl


author

Rick Richardson <rick.richardson[:at:]comcast[:dot:]net>
http://foo2zjs.rkkda.com/

How can this site be more helpful to YOU ?


give  feedback