logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

usb_printerid - prints the ID of the printer on a USB port

Author

Description

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

Examples

       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 /var/lib/foo2zjs/firmware/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;

Files

/usr/bin/usb_printerid,/var/lib/foo2zjs/firmware/*

Name

       usb_printerid - prints the ID of the printer on a USB port

See Also

arm2hpdl(1)

Synopsis

usb_printerid [options] /dev/usb/lpNNN

See Also