John Mann's Weblog (on sng) | |||||
String around my finger
Index
Flavours
Links
Subscribe
Click to call me FWD# 61159 |
Sun, 06 Mar 2005 There is lots of information about the ESC/P2 protocol within the GIMP-Print Developer's Manual which is also available as info files within the gimp-print distribution, e.g. as /usr/share/info/gimpprint.info-4.gz. The various status (ink level) and command (clean nozzle) ESC/P2 sequences are available using 'escputil'.# escputil -q -i --new --raw-device /dev/usb/lp0 Ink color Percent remaining Black 14 Cyan 9 Magenta 7 Yellow 20But the status command doesn't look right (compare with this [root@tower ink]# escputil -q -s -u -r /dev/usb/lp0 @BDC ST ST:04Libinklevel and Ink "Check the ink level of your printer with linux". Enabling DEBUG in inklevel.h enable verbose output [root@tower ~]# ink -p usb ink v0.3 (c) 2003 Markus HeinzNote the percentages returned as hex!!Printer reported size 78, real size is 79 0: MFG:EPSON 1: CMD:ESCPL2,BDC,D4 2: MDL:Stylus C65 3: CLS:PRINTER 4: DES:EPSON Stylus C65 ... Printer returned <<@BDC ST IQ:0E090714; >> Black: 14% Cyan: 9% Magenta: 7% Yellow: 20% ... |
||||