Collaboration on open source RIP software like gutenprint
#2509
i captured the usb data, and think after reading the r3000 raster pdf, that there is a time when the printer automatically clean the head.
i suspect the head cleaning command simply configure the printer with a date in the future, so it clean the head.

ok complete fail, in the screen it set the current date.

download the latest wireshark it directly support USB capture.
You do not have the required permissions to view the files attached to this post.
Last edited by overdose on Sun Nov 06, 2016 9:51 am, edited 1 time in total.
#2520
Code: Select all
<?php

    $printerPath = "\\\\OVERDOSE\\epsonst1400";
    $cleanCode =  //init command
                  "\x00\x00\x00\x1b\x01\x40\x45\x4a\x4c\x20\x31\x32\x38\x34\x2e\x34\x0a\x40\x45\x4a\x4c\x20\x20\x20\x20\x20\x0a".
                  "\x1b\x40\x1b\x40".  //ESC @ reinit ?
                  //remote mode command set timer
                  "\x1b\x28\x52\x08\x00\x00\x52\x45\x4d\x4f\x54\x45\x31\x54\x49\x08\x00\x00\x07\xe0\x0b\x06\x11\x03\x00\x43\x48\x02\x00\x00\x00".
                  //exit remote mode
                  "\x1b\x00\x00\x00".
                  //remote command end job
                  "\x1b\x40\x1b\x40\x1b\x28\x52\x08\x00\x00\x52\x45\x4d\x4f\x54\x45\x31\x4a\x45\x01\x00\x00".
                  //exit remote mode
                  "\x1b\x00\x00\x00";
                      
    file_put_contents("toprint.txt",$cleanCode);
    echo "sending file to printer...\n";
    //print_r($buffer);
    system("copy toprint.txt ".$printerPath." /B");
?>
ok tried to send the data and it do the head cleaning on my 1400, but i need to modify it so it set the correct time. else my printer live in the past.