DIY DTG - Build your own Digital T-Shirt Printer

 
overdose
Contributor
Topic Author
Posts: 146
Joined: Wed Sep 21, 2016 10:52 am

usb data capture for esp/raster remote mode cleaning command

Sun Nov 06, 2016 9:41 am

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.
 
User avatar
Andy
Site Admin
Posts: 1429
Joined: Mon Jul 25, 2016 5:59 pm

Re: usb data capture for esp/raster remote mode cleaning command

Sun Nov 06, 2016 9:42 am

I will check this out.

I assume we could send 2 different commands to the printer and see what changes to know what parts are the actual commands.

Thanks
 
overdose
Contributor
Topic Author
Posts: 146
Joined: Wed Sep 21, 2016 10:52 am

Re: usb data capture for esp/raster remote mode cleaning command

Sun Nov 06, 2016 9:58 am

it's weird cause the date is set in big endian, when all the other command pass data in little endian.
one of those weird things like the program counter pushed in big endian on the stack during call by atmel cpu.
 
overdose
Contributor
Topic Author
Posts: 146
Joined: Wed Sep 21, 2016 10:52 am

Re: usb data capture for esp/raster remote mode cleaning command

Sun Nov 06, 2016 10:09 am

<?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.

Who is online

Users browsing this forum: No registered users and 0 guests