[sane-devel] Epson Perfection 2480 Photo: firmware loading

Oliver Schwartz Oliver.Schwartz at gmx.de
Mon Aug 15 17:39:23 UTC 2005


Hi all,

> That not withstanding, the snapscan backend sources show that a
> fair bit of the structure of the INQUIRY command's reply is already
> known. This is the command I would expect to show different replies
> for both models.

They do, but up to now I only have the data of three different 
scanners. The 2480/2580 can send more inquiry data than normally 
requested by the snapscan backend. The backend ususally requests 120 
bytes, the epson windows driver requests 138 bytes. I suspect that 
the value to look at is at offset 137. I've attached a few dumps of 
inquiry data from a 2480 and a 2580.

I'll add some code to request the additional inquiry data to the 
snapscan backend. If some people volunteer for tests we can get a 
more solid base for the distinction.

> The backend checks (via that evil binary-only library :-() with the
> hardware if a download is necessary and only downloads if
> necessary. If you power-cycle your scanner, you'll find that it
> will take some time even with the epkowa backend before you can use
> the scanner.

The snapscan backend does the same thing. However, the delay Julien is 
referring to results from the test_unit_ready/request_sense command 
after the firmware upload. Some Epson scanners report DEVICE_BUSY 
with some unusual large timeouts. I guess that the epkowa backend 
limits or ignores this value.

/Oliver
-------------- next part --------------
 2580 before firmwar upload
 00: 06 00 02 02 49 00 00 00 45 50 53 4F 4E 20 20 20   ....I...EPSON
 10: 45 50 53 4F 4E 20 53 63 61 6E 6E 65 72 20 20 20   EPSON Scanner
 20: 30 31 31 30 20 00 00 00 02 21 00 00 00 00 00 00   0110 ....!......
 30: 04 B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00   .260..............
 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 60: 54 75 65 20 46 65 62 20 32 35 20 32 30 30 33 20   Tue Feb 25 2003
 70: 30 39 3A 35 38 00 00 00 00 00 00 00               09:58.......

 2580 after firmware upload:
 00: 06 00 02 02 49 00 00 00 45 50 53 4F 4E 20 20 20   ....I...EPSON
 10: 45 50 53 4F 4E 20 53 63 61 6E 6E 65 72 31 20 20   EPSON Scanner1
 20: 31 2E 31 34 20 BD 40 48 00 00 29 B8 29 B8 00 00   1.14 275 at H..)270)270..
 30: 09 60 00 01 15 17 00 00 00 00 00 00 00 00 00 00   .`..............
 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 60: 46 72 69 20 41 70 72 20 20 32 20 32 30 30 34 20   Fri Apr  2 2004
 70: 31 35 3A 34 37 00 00 00 00 00 00 80 FA 80 8F 93   15:47......?372?217?
 80: 97 00 00 00 00 00 00 00 00 2F 01                  ?......../.
 
 same 2580, after shading / image data
 00: 06 00 02 02 49 00 00 00 45 50 53 4F 4E 20 20 20   ....I...EPSON
 10: 45 50 53 4F 4E 20 53 63 61 6E 6E 65 72 31 20 20   EPSON Scanner1
 20: 31 2E 31 34 20 BD 40 48 00 00 02 7C 02 7C 03 6F   1.14 275 at H...|.|.o
 30: 09 60 00 01 0A 05 00 00 00 00 00 00 00 00 00 00   .`..............
 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 60: 46 72 69 20 41 70 72 20 20 32 20 32 30 30 34 20   Fri Apr  2 2004
 70: 31 35 3A 34 37 00 00 00 00 00 00 ED E1 DA 87 8C   15:47......355341332??
 80: 8F 00 00 00 00 00 00 00 00 2F 01                  217......../.

 2480 after firmware upload
 00: 06 00 02 02 49 00 00 00 45 50 53 4F 4E 20 20 20   ....I...EPSON
 10: 45 50 53 4F 4E 20 53 63 61 6E 6E 65 72 31 20 20   EPSON Scanner1
 20: 31 2E 31 34 20 BD 40 48 00 00 02 7C 02 7C 03 6F   1.14 275 at H...|.|.o
 30: 09 60 00 01 0A 05 00 00 00 00 00 00 00 00 00 00   .`..............
 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
 60: 46 72 69 20 41 70 72 20 20 32 20 32 30 30 34 20   Fri Apr  2 2004
 70: 31 35 3A 34 37 00 00 00 00 00 00 F1 E2 DE 82 88   15:47......361342336??
 80: 8B 00 00 00 00 00 00 00 00 07 01                  ?..........


More information about the sane-devel mailing list