John Mann's Weblog (on sng)
 

String around my finger
A 'blog to remember things I found.
Tie a string around your finger
My Home Page
I work for NIS ITS Monash University Australia.

Index

Flavours

  • index
  • circa 1993
  • RSS
  • Links
    These are a few of my favourite links.

  • Home Page
  • Live weblog
  • Static weblog
  • raelity bytes ;-)
  • Slashdot
  • Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.


    blosxom

    GeoURL

    IP Geotargeting
    Visit eBay

    Click to call me FWD# 61159

       
    Sun, 06 Mar 2005

    Epson C65 ESC/P2 protocol

    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     20
    
    But the status command doesn't look right (compare with this
    [root@tower ink]# escputil -q -s -u -r /dev/usb/lp0
    @BDC ST
    ST:04
    
    Libinklevel 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 Heinz
    
    
    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% ...
    Note the percentages returned as hex!!

    [ /hardware | # ]