lion-simba / reink

An utility to reset Epson printer ink counters
GNU General Public License v3.0
118 stars 32 forks source link

Epson Stylus DX3800 #6

Open miqmago opened 7 years ago

miqmago commented 7 years ago
ReInk v0.6 test report.
sysname: Linux
release: 4.9.35-v7+
varsion: #1014 SMP Fri Jun 30 14:47:43 BST 2017
arch: armv7l

=== printer_connect ===
Opening raw device... OK
Entering IEEE 1284.4 mode... --- EnterD4Mode    ---
Send: 
*****@EJL 1284.4
@EJL
@EJL

   0:   00 00 00 1b  01 40 45 4a  4c 20 31 32  38 34 2e 34
                         @  E  J   L     1  2   8  4  .  4
  16:   0a 40 45 4a  4c 0a 40 45  4a 4c 0a
            @  E  J   L     @  E   J  L   
SafeWrite: 
*****@EJL 1284.4
@EJL
@EJL

   0:   00 00 00 1b  01 40 45 4a  4c 20 31 32  38 34 2e 34
                         @  E  J   L     1  2   8  4  .  4
  16:   0a 40 45 4a  4c 0a 40 45  4a 4c 0a
            @  E  J   L     @  E   J  L   
length: 8
read: 0 8 total: 8
Recv: 
   0:   00 00 00 08  01 00 c5 00
OK
Perfoming IEEE 1284.4 Init transaction... --- Init           ---
Send: 
   0:   00 00 00 08  01 00 00 10
SafeWrite: 
   0:   00 00 00 08  01 00 00 10
length: 9
read: 0 9 total: 9
Recv: 
   0:   00 00 00 09  01 00 80 00  10
OK
^^^ printer_connect ^^^
=== open_channel ===
Obtaining IEEE 1284.4 socket for "EPSON-CTRL" service... --- GetSocketID    ---
Send: 
******  EPSON-CTRL
   0:   00 00 00 11  01 00 09 45  50 53 4f 4e  2d 43 54 52
                               E   P  S  O  N   -  C  T  R
  16:   4c
         L
SafeWrite: 
******  EPSON-CTRL
   0:   00 00 00 11  01 00 09 45  50 53 4f 4e  2d 43 54 52
                               E   P  S  O  N   -  C  T  R
  16:   4c
         L
length: 19
read: 0 19 total: 19
Recv: 
*********EPSON-CTRL
   0:   00 00 00 13  01 00 89 00  02 45 50 53  4f 4e 2d 43
                                      E  P  S   O  N  -  C
  16:   54 52 4c
         T  R  L
OK, socket=2.
Opening IEEE 1284.4 channel 2-2... --- OpenChannel    ---
Send: 
   0:   00 00 00 11  01 00 01 02  02 02 00 02  00 00 00 00
  16:   00
SafeWrite: 
   0:   00 00 00 11  01 00 01 02  02 02 00 02  00 00 00 00
  16:   00
length: 16
read: 0 16 total: 16
Recv: 
   0:   00 00 00 10  01 00 81 00  02 02 00 40  02 00 00 00
OK
^^^ open_channel ^^^
=== open_channel ===
Obtaining IEEE 1284.4 socket for "EPSON-DATA" service... --- GetSocketID    ---
Send: 
******  EPSON-DATA
   0:   00 00 00 11  01 00 09 45  50 53 4f 4e  2d 44 41 54
                               E   P  S  O  N   -  D  A  T
  16:   41
         A
SafeWrite: 
******  EPSON-DATA
   0:   00 00 00 11  01 00 09 45  50 53 4f 4e  2d 44 41 54
                               E   P  S  O  N   -  D  A  T
  16:   41
         A
length: 19
read: 0 19 total: 19
Recv: 
********@EPSON-DATA
   0:   00 00 00 13  01 00 89 00  40 45 50 53  4f 4e 2d 44
                                   @  E  P  S   O  N  -  D
  16:   41 54 41
         A  T  A
OK, socket=64.
Opening IEEE 1284.4 channel 64-64... --- OpenChannel    ---
Send: 
   0:   00 00 00 11  01 00 01 40  40 02 00 02  00 00 00 00
  16:   00
SafeWrite: 
   0:   00 00 00 11  01 00 01 40  40 02 00 02  00 00 00 00
  16:   00
length: 16
read: 0 16 total: 16
Recv: 
   0:   00 00 00 10  01 00 81 04  40 40 02 00  02 00 00 00
No sufficient resources available now.
IEEE 1284.4: "OpenChannel" transaction failed.
=== printer_transact ===
Requesting some IEEE 1284.4 credits on channel 2-2... --- CreditRequest  ---
Send: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
SafeWrite: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
length: 12
read: 0 12 total: 12
Recv: 
   0:   00 00 00 0c  01 00 84 00  02 02 00 01
OK, got 1 credits.
Writing data to printer... --- Send Data      ---
SafeWrite: 
   0:   02 02 00 0b  00 00 64 69  01 00 01
OK
Get the answer... --- Credit         ---
Send: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
SafeWrite: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
length: 10
read: 0 10 total: 10
Recv: 
   0:   00 00 00 0a  01 00 83 00  02 02
Recv: 
   0:   02 02 00 68  00 01
toGet: 98
Recv: 
@EJL ID
MFG:EPSON;
CMD:ESCPL2,BDC,D4,ESCPR1;
MDL:Stylus DX3800;
CLS:PRINTER;
DES:EPSON Stylus DX3800;
   0:   40 45 4a 4c  20 49 44 0d  0a 4d 46 47  3a 45 50 53
         @  E  J  L      I  D         M  F  G   :  E  P  S
  16:   4f 4e 3b 43  4d 44 3a 45  53 43 50 4c  32 2c 42 44
         O  N  ;  C   M  D  :  E   S  C  P  L   2  ,  B  D
  32:   43 2c 44 34  2c 45 53 43  50 52 31 3b  4d 44 4c 3a
         C  ,  D  4   ,  E  S  C   P  R  1  ;   M  D  L  :
  48:   53 74 79 6c  75 73 20 44  58 33 38 30  30 3b 43 4c
         S  t  y  l   u  s     D   X  3  8  0   0  ;  C  L
  64:   53 3a 50 52  49 4e 54 45  52 3b 44 45  53 3a 45 50
         S  :  P  R   I  N  T  E   R  ;  D  E   S  :  E  P
  80:   53 4f 4e 20  53 74 79 6c  75 73 20 44  58 33 38 30
         S  O  N      S  t  y  l   u  s     D   X  3  8  0
  96:   30 3b
         0  ;
OK
^^^ printer_transact ^^^
=== printer_transact ===
Requesting some IEEE 1284.4 credits on channel 2-2... --- CreditRequest  ---
Send: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
SafeWrite: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
length: 12
read: 0 12 total: 12
Recv: 
   0:   00 00 00 0c  01 00 84 00  02 02 00 01
OK, got 1 credits.
Writing data to printer... --- Send Data      ---
SafeWrite: 
   0:   02 02 00 0b  00 00 73 74  01 00 01
OK
Get the answer... --- Credit         ---
Send: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
SafeWrite: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
length: 10
read: 0 10 total: 10
Recv: 
   0:   00 00 00 0a  01 00 83 00  02 02
Recv: 
   0:   02 02 00 46  00 01
toGet: 64
Recv: 
@BDC ST2
***!**!**!*******N****
                      *****unknown******$**
   0:   40 42 44 43  20 53 54 32  0d 0a 34 00  01 01 00 02
         @  B  D  C      S  T  2         4                
  16:   01 05 0f 0d  03 03 01 21  05 03 21 04  02 21 01 00
                               !         !         !      
  32:   00 10 03 01  08 4e 13 01  01 19 0c 00  00 00 00 00
                         N                                
  48:   75 6e 6b 6e  6f 77 6e 1b  01 00 1d 01  00 24 01 08
         u  n  k  n   o  w  n                      $      
OK
^^^ printer_transact ^^^
Searching printer secret model code with brute force.
=== read_eeprom_address ===
Reading eeprom address 0... === printer_transact ===
Requesting some IEEE 1284.4 credits on channel 2-2... --- CreditRequest  ---
Send: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
SafeWrite: 
   0:   00 00 00 0d  01 00 04 02  02 00 80 ff  ff
length: 12
read: 0 12 total: 12
Recv: 
   0:   00 00 00 0c  01 00 84 00  02 02 00 01
OK, got 1 credits.
Writing data to printer... --- Send Data      ---
SafeWrite: 
   0:   02 02 00 11  00 00 7c 7c  07 00 00 00  41 be a0 00
  16:   00
OK
Get the answer... --- Credit         ---
Send: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
SafeWrite: 
   0:   00 00 00 0b  01 00 03 02  02 00 01
length: 10
read: 0 10 total: 10
Recv: 
   0:   00 00 00 0a  01 00 83 00  02 02
Recv: 
   0:   02 02 00 06  00 01
toGet: 0
Recv: 
OK
^^^ printer_transact ^^^
=== get_tag ===
Searching for "EE:" substring... FOUND, pos=0.
Searching for ";" character... FOUND, pos_end=3.
Tag value:"".
^^^ get_tag ^^^
OK
ReplyData length != 6
miqmago commented 7 years ago

Many thanks for your great job with this repo! Any additional thing I can do to contribute just ask me please :)