[sane-devel] sane-backends-1.0.13 epson bug

Klaus Dittrich kladit at t-online.de
Sat Feb 14 15:12:12 GMT 2004


I again spent some time to get my epson-1640-su with adf 
to work with linux-2.6.

This time, USB is still horribly broken (linux-2.6.3-rc2),
I tried using SCSI.

With backends-1.0.12 all worked as expected and as it did
with linux-2.4.x.

With backends-1.0.13 scanimage --test worked, the rest didn't.

Attached are two files, debug_backends_1.0.12.txt and
debug_backends_1.0.13.txt.

At the start of each file the script used is included, followed 
by the output (SANE_DEBUG_EPSON=128).

Hope this helps to fix the bugs.

-- 
Klaus
-------------- next part --------------
#!/bin/bash

export SANE_DEBUG_EPSON=128

Scanner="epson:/dev/sg2"

rm -f "./file*"

echo "XXXXX scanimage -d $Scanner --test"
scanimage -d $Scanner --test

echo "XXXXX scanimage -d $Scanner --source \"Automatic Document Feeder\" .."

scanimage -d $Scanner \
--source "Automatic Document Feeder" \
--mode Gray \
--resolution 100 \
--quick-format A4 \
--format ".pnm" \
--batch="file_%2d:pnm" \
--batch-start 1 \
--batch-increment 2 \
--batch-count 20 \


# This is to get the last page out of the scanner
# annoying

scanimage -d $Scanner \
--dont-scan \
--eject \


XXXXX scanimage -d epson:/dev/sg2 --test
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.12
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.36 - 2003-03-26
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] sane_open(/dev/sg2)
[epson] set = 215.899994
[epson] set = 297.179993
[epson] open_scanner()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 65 e
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] Setting focus to glass surface
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 70 p
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: Setting data format to 1 bits
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 43 C
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 42 B
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4c L
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4b K
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 67 g
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 73 s
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 51 Q
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: set_gamma( s, 0x1 ).
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 5a Z
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: set_color_correction( s, 0x80 )
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4d M
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 80 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 52 R
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 4
[epson] buf[0] 32 2
[epson] buf[1] 00 .
[epson] buf[2] 32 2
[epson] buf[3] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_get_parameters()
[epson] Preview = 0
[epson] Resolution = 50
[epson] get para 0x805e700 0x805edcc tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] set_scan_area: 0x805e700 0 0 424 584
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 41 A
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 8
[epson] buf[0] 00 .
[epson] buf[1] 00 .
[epson] buf[2] 00 .
[epson] buf[3] 00 .
[epson] buf[4] a8 .
[epson] buf[5] 01 .
[epson] buf[6] 48 H
[epson] buf[7] 02 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 64 d
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] ff .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 53 S
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2d -
[epson] buf[3] 00 .
[epson] receive buf, expected = 45, got = 45
[epson] buf[0] 43 C
[epson] buf[1] 00 .
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 32 2
[epson] buf[6] 00 .
[epson] buf[7] 41 A
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] a8 .
[epson] buf[13] 01 .
[epson] buf[14] 48 H
[epson] buf[15] 02 .
[epson] buf[16] 44 D
[epson] buf[17] 01 .
[epson] buf[18] 42 B
[epson] buf[19] 00 .
[epson] buf[20] 4c L
[epson] buf[21] 00 .
[epson] buf[22] 5a Z
[epson] buf[23] 01 .
[epson] buf[24] 48 H
[epson] buf[25] 64 d
[epson] buf[26] 64 d
[epson] buf[27] 4d M
[epson] buf[28] 80 .
[epson] buf[29] 51 Q
[epson] buf[30] 00 .
[epson] buf[31] 67 g
[epson] buf[32] 00 .
[epson] buf[33] 4b K
[epson] buf[34] 00 .
[epson] buf[35] 73 s
[epson] buf[36] 01 .
[epson] buf[37] 74 t
[epson] buf[38] 80 .
[epson] buf[39] 64 d
[epson] buf[40] ff .
[epson] buf[41] 65 e
[epson] buf[42] 00 .
[epson] buf[43] 4e N
[epson] buf[44] 00 .
[epson] SANE_START: color: 0
[epson] SANE_START: resolution (x, y): (50, 50)
[epson] SANE_START: area[dots] (x-offset, y-offset), (x-range, y-range): (0, 0), (424, 584)
[epson] SANE_START: data format: 1
[epson] SANE_START: halftone: 0
[epson] SANE_START: brightness: 0
[epson] SANE_START: gamma: 1
[epson] SANE_START: zoom[percentage] (x, y): (100, 100)
[epson] SANE_START: color correction: 128
[epson] SANE_START: outline emphasis: 0
[epson] SANE_START: read mode: 0
[epson] SANE_START: mirror image: 0
[epson] SANE_START: (new B6 or B7 command ESC s): 1
[epson] SANE_START: (new B6 or B7 command ESC t): 128
[epson] SANE_START: line counter: 255
[epson] SANE_START: extension control: 0
[epson] SANE_START: (new B6 or B7 command ESC N): 0
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 47 G
[epson] sane_get_parameters()
[epson] Returning saved params structure
scanimage: scanning image of size 424x584 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 53 bytes...	[epson] sane_read: begin
[epson] sane_read: begin scan1
[epson] receive buf, expected = 6, got = 6
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 35 5
[epson] buf[3] 00 .
[epson] buf[4] ff .
[epson] buf[5] 00 .
[epson] sane_read: buf len = 53
[epson] sane_read: buf len (adjusted) = 13515
[epson] receive buf, expected = 13515, got = 13515
[epson] buf[0] ff .
[epson] buf[1] ff .
..
..
[epson] buf[13514] ff .
[epson] send buf, size = 1
[epson] buf[0] 18 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
XXXXX scanimage -d epson:/dev/sg2 --source "Automatic Document Feeder" ..
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.12
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.36 - 2003-03-26
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] sane_open(/dev/sg2)
[epson] reset calling open_scanner
[epson] open_scanner()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] set = 210.000000
[epson] set = 297.000000
Scanning 20 pages, incrementing by 2, numbering from 1
Scanning page 1
[epson] open_scanner()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 65 e
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] c0 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] Setting focus to glass surface
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 70 p
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: Setting data format to 8 bits
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 08 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 43 C
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4c L
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4b K
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 67 g
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 51 Q
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: set_gamma( s, 0x2 ).
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 5a Z
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 02 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 52 R
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 4
[epson] buf[0] 64 d
[epson] buf[1] 00 .
[epson] buf[2] 64 d
[epson] buf[3] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_get_parameters()
[epson] Preview = 0
[epson] Resolution = 100
[epson] get para 0x805e700 0x805edcc tlx 0.000000 tly 0.000000 brx 210.000000 bry 297.000000 [mm]
[epson] set_scan_area: 0x805e700 0 0 824 1169
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 41 A
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 8
[epson] buf[0] 00 .
[epson] buf[1] 00 .
[epson] buf[2] 00 .
[epson] buf[3] 00 .
[epson] buf[4] 38 8
[epson] buf[5] 03 .
[epson] buf[6] 91 .
[epson] buf[7] 04 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 64 d
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 9f .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] c0 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 53 S
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2d -
[epson] buf[3] 00 .
[epson] receive buf, expected = 45, got = 45
[epson] buf[0] 43 C
[epson] buf[1] 00 .
[epson] buf[2] 52 R
[epson] buf[3] 64 d
[epson] buf[4] 00 .
[epson] buf[5] 64 d
[epson] buf[6] 00 .
[epson] buf[7] 41 A
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 38 8
[epson] buf[13] 03 .
[epson] buf[14] 91 .
[epson] buf[15] 04 .
[epson] buf[16] 44 D
[epson] buf[17] 08 .
[epson] buf[18] 42 B
[epson] buf[19] 00 .
[epson] buf[20] 4c L
[epson] buf[21] 00 .
[epson] buf[22] 5a Z
[epson] buf[23] 02 .
[epson] buf[24] 48 H
[epson] buf[25] 64 d
[epson] buf[26] 64 d
[epson] buf[27] 4d M
[epson] buf[28] 80 .
[epson] buf[29] 51 Q
[epson] buf[30] 00 .
[epson] buf[31] 67 g
[epson] buf[32] 00 .
[epson] buf[33] 4b K
[epson] buf[34] 00 .
[epson] buf[35] 73 s
[epson] buf[36] 00 .
[epson] buf[37] 74 t
[epson] buf[38] 80 .
[epson] buf[39] 64 d
[epson] buf[40] 9f .
[epson] buf[41] 65 e
[epson] buf[42] 01 .
[epson] buf[43] 4e N
[epson] buf[44] 00 .
[epson] SANE_START: color: 0
[epson] SANE_START: resolution (x, y): (100, 100)
[epson] SANE_START: area[dots] (x-offset, y-offset), (x-range, y-range): (0, 0), (824, 1169)
[epson] SANE_START: data format: 8
[epson] SANE_START: halftone: 0
[epson] SANE_START: brightness: 0
[epson] SANE_START: gamma: 2
[epson] SANE_START: zoom[percentage] (x, y): (100, 100)
[epson] SANE_START: color correction: 128
[epson] SANE_START: outline emphasis: 0
[epson] SANE_START: read mode: 0
[epson] SANE_START: mirror image: 0
[epson] SANE_START: (new B6 or B7 command ESC s): 0
[epson] SANE_START: (new B6 or B7 command ESC t): 128
[epson] SANE_START: line counter: 159
[epson] SANE_START: extension control: 1
[epson] SANE_START: (new B6 or B7 command ESC N): 0
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 47 G
[epson] sane_get_parameters()
[epson] Returning saved params structure
[epson] sane_read: begin
[epson] sane_read: begin scan1
[epson] receive buf, expected = 6, got = 6
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 38 8
[epson] buf[3] 03 .
[epson] buf[4] 9f .
[epson] buf[5] 00 .
[epson] sane_read: buf len = 824
[epson] sane_read: buf len (adjusted) = 131016
[epson] receive buf, expected = 131016, got = 131016
[epson] buf[0] ff .
[epson] buf[1] ff .
[epson] buf[2] ff .
[epson] buf[3] ff .
[epson] buf[4] ff .
[epson] buf[5] ff .
[epson] sane_read: begin scan2
[epson] sane_read: end
[epson] sane_read: begin
[epson] sane_read: end
[epson] sane_read: begin
Scanned page 1. (scanner status = 5)
Scanning page 3
[epson] open_scanner()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 65 e
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 92 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 92
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 81 .
[epson] buf[1] e8 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] option: fatal error
[epson] ADF: other error
[epson] ADF: no paper
scanimage: sane_start: Invalid argument
Scanned page 3. (scanner status = 4)
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.12
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.36 - 2003-03-26
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] sane_open(/dev/sg2)
[epson] eject()
[epson] set = 215.899994
[epson] set = 297.179993
-------------- next part --------------
#!/bin/bash

export SANE_DEBUG_EPSON=128

Scanner="epson:/dev/sg2"

rm -f "./file*"

echo "XXXXX scanimage -d $Scanner --test"
scanimage -d $Scanner --test

echo "XXXXX scanimage -d $Scanner --source \"Automatic Document Feeder\" .."

scanimage -d $Scanner \
--source "Automatic Document Feeder" \
--mode Gray \
--resolution 100 \
--quick-format A4 \
--format ".pnm" \
--batch="file_%2d:pnm" \
--batch-start 1 \
--batch-increment 2 \
--batch-count 20 \


# This is to get the last page out of the scanner
# annoying

scanimage -d $Scanner \
--dont-scan \
--eject \


XXXXX scanimage -d epson:/dev/sg2 --test
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.13
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.40 - 2003-10-27
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] reset()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] scanner model: Perfection1640
[epson] close_scanner(fd = 7)
[epson] sane_open(/dev/sg2)
[epson] init_options()
[epson] open_scanner()
[epson] setvalue(option = 38, value = 0xbfffe128
[epson] set = 215.899994
[epson] setvalue(option = 39, value = 0xbfffe128
[epson] set = 297.179993
[epson] sane_start()
[epson] open_scanner()
[epson] scanner is already open: fd = 5
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 65 e
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] Setting focus to glass surface
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 70 p
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: Setting data format to 1 bits
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 43 C
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 42 B
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4c L
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4b K
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 67 g
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 73 s
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 51 Q
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: set_gamma( s, 0x1 ).
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 5a Z
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_start: set_color_correction( s, 0x80 )
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 4d M
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 80 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 52 R
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 4
[epson] buf[0] 32 2
[epson] buf[1] 00 .
[epson] buf[2] 32 2
[epson] buf[3] 00 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] sane_get_parameters()
[epson] Preview = 0
[epson] Resolution = 50
[epson] get para 0x805e700 0x805edf0 tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] params.format = 0
[epson] params.last_frame = 0
[epson] params.bytes_per_line = 0
[epson] params.pixels_per_line = 425
[epson] params.lines = 585
[epson] params.depth = 0
[epson] set_scan_area: 0x805e700 0 0 424 585
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 41 A
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 8
[epson] buf[0] 00 .
[epson] buf[1] 00 .
[epson] buf[2] 00 .
[epson] buf[3] 00 .
[epson] buf[4] a8 .
[epson] buf[5] 01 .
[epson] buf[6] 49 I
[epson] buf[7] 02 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 64 d
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] ff .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 53 S
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2d -
[epson] buf[3] 00 .
[epson] receive buf, expected = 45, got = 45
[epson] buf[0] 43 C
[epson] buf[1] 00 .
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 32 2
[epson] buf[6] 00 .
[epson] buf[7] 41 A
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] a8 .
[epson] buf[13] 01 .
[epson] buf[14] 49 I
[epson] buf[15] 02 .
[epson] buf[16] 44 D
[epson] buf[17] 01 .
[epson] buf[18] 42 B
[epson] buf[19] 00 .
[epson] buf[20] 4c L
[epson] buf[21] 00 .
[epson] buf[22] 5a Z
[epson] buf[23] 01 .
[epson] buf[24] 48 H
[epson] buf[25] 64 d
[epson] buf[26] 64 d
[epson] buf[27] 4d M
[epson] buf[28] 80 .
[epson] buf[29] 51 Q
[epson] buf[30] 00 .
[epson] buf[31] 67 g
[epson] buf[32] 00 .
[epson] buf[33] 4b K
[epson] buf[34] 00 .
[epson] buf[35] 73 s
[epson] buf[36] 01 .
[epson] buf[37] 74 t
[epson] buf[38] 80 .
[epson] buf[39] 64 d
[epson] buf[40] ff .
[epson] buf[41] 65 e
[epson] buf[42] 00 .
[epson] buf[43] 4e N
[epson] buf[44] 00 .
[epson] SANE_START: Color: 0
[epson] SANE_START: Resolution (x, y): (50, 50)
[epson] SANE_START: Scan area(pixels) (x0, y0), (x1, y1): (0, 0), (424, 585)
[epson] SANE_START: Data format: 1
[epson] SANE_START: Halftone: 0
[epson] SANE_START: Brightness: 0
[epson] SANE_START: Gamma: 1
[epson] SANE_START: Zoom (x, y): (100, 100)
[epson] SANE_START: Color correction: 128
[epson] SANE_START: Sharpness control: 0
[epson] SANE_START: Scanning mode: 0
[epson] SANE_START: Mirroring: 0
[epson] SANE_START: Auto area segmentation: 1
[epson] SANE_START: Threshold: 128
[epson] SANE_START: Line counter: 255
[epson] SANE_START: Option unit control: 0
[epson] SANE_START: Film type: 0
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 47 G
[epson] sane_get_parameters()
[epson] Returning saved params structure
[epson] Preview = 0
[epson] Resolution = 50
[epson] get para 0x805e700 0x805edf0 tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] params.format = 0
[epson] params.last_frame = 1
[epson] params.bytes_per_line = 53
[epson] params.pixels_per_line = 424
[epson] params.lines = 585
[epson] params.depth = 1
scanimage: scanning image of size 424x585 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 53 bytes...	[epson] sane_read: begin
[epson] sane_read: begin scan1
[epson] receive buf, expected = 6, got = 6
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 35 5
[epson] buf[3] 00 .
[epson] buf[4] ff .
[epson] buf[5] 00 .
[epson] sane_read: buf len = 53
[epson] sane_read: buf len (adjusted) = 13515
[epson] receive buf, expected = 13515, got = 13515
[epson] buf[0] ff .
[epson] buf[1] ff .
..
..
[epson] buf[13514] ff .
[epson] send buf, size = 1
[epson] buf[0] 18 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] scan_finish()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] close_scanner(fd = 5)
XXXXX scanimage -d epson:/dev/sg2 --source "Automatic Document Feeder" ..
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.13
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.40 - 2003-10-27
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] reset()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] scanner model: Perfection1640
[epson] close_scanner(fd = 7)
[epson] sane_open(/dev/sg2)
[epson] init_options()
[epson] open_scanner()
[epson] setvalue(option = 42, value = 0x8055590
[epson] setvalue(option = 2, value = 0x80555b0
[epson] setvalue(option = 10, value = 0x80555c0
[epson] setvalue(option = 40, value = 0x80555d0
[epson] setvalue(option = 38, value = 0xbfffdfb8
[epson] set = 210.000000
[epson] setvalue(option = 39, value = 0xbfffdfb8
[epson] set = 297.000000
Scanning 20 pages, incrementing by 2, numbering from 1
Scanning page 1
[epson] sane_start()
[epson] open_scanner()
[epson] scanner is already open: fd = 5
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 65 e
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 01 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] c0 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] feed()
[epson] send buf, size = 1
[epson] buf[0] 19 .
[epson] receive buf, expected = 1, got = 0
[epson] close_scanner(fd = 5)
[epson] close_scanner(fd = -1)
scanimage: sane_start: Error during device I/O
Scanned page 1. (scanner status = 9)
[sanei_debug] Setting debug level of epson to 128.
[epson] sane_init: sane-backends 1.0.13
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >#usb /dev/usb/scanner0 uses Kernel Driver<
[epson] sane_init, >#usb /dev/usb/scanner0<
[epson] sane_init, ><
[epson] sane_init, >#usb<
[epson] sane_init, >scsi EPSON<
[epson] attach_one(/dev/sg2)
[epson] SANE Epson Backend v0.2.40 - 2003-10-27
[epson] attach(/dev/sg2, 1)
[epson] attach: opening /dev/sg2
[epson] attach: sending INQUIRY
[epson] >EPSON   Perfection1640  1.06<
[epson] reset()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 6a j
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  106
[epson] receive buf, expected = 106, got = 106
[epson] buf[0] 42 B
[epson] buf[1] 38 8
[epson] buf[2] 52 R
[epson] buf[3] 32 2
[epson] buf[4] 00 .
[epson] buf[5] 52 R
[epson] buf[6] 3c <
[epson] buf[7] 00 .
[epson] buf[8] 52 R
[epson] buf[9] 48 H
[epson] buf[10] 00 .
[epson] buf[11] 52 R
[epson] buf[12] 4b K
[epson] buf[13] 00 .
[epson] buf[14] 52 R
[epson] buf[15] 50 P
[epson] buf[16] 00 .
[epson] buf[17] 52 R
[epson] buf[18] 5a Z
[epson] buf[19] 00 .
[epson] buf[20] 52 R
[epson] buf[21] 64 d
[epson] buf[22] 00 .
[epson] buf[23] 52 R
[epson] buf[24] 78 x
[epson] buf[25] 00 .
[epson] buf[26] 52 R
[epson] buf[27] 85 .
[epson] buf[28] 00 .
[epson] buf[29] 52 R
[epson] buf[30] 90 .
[epson] buf[31] 00 .
[epson] buf[32] 52 R
[epson] buf[33] 96 .
[epson] buf[34] 00 .
[epson] buf[35] 52 R
[epson] buf[36] a0 .
[epson] buf[37] 00 .
[epson] buf[38] 52 R
[epson] buf[39] af .
[epson] buf[40] 00 .
[epson] buf[41] 52 R
[epson] buf[42] b4 .
[epson] buf[43] 00 .
[epson] buf[44] 52 R
[epson] buf[45] c8 .
[epson] buf[46] 00 .
[epson] buf[47] 52 R
[epson] buf[48] d8 .
[epson] buf[49] 00 .
[epson] buf[50] 52 R
[epson] buf[51] f0 .
[epson] buf[52] 00 .
[epson] buf[53] 52 R
[epson] buf[54] 0a .
[epson] buf[55] 01 .
[epson] buf[56] 52 R
[epson] buf[57] 2c ,
[epson] buf[58] 01 .
[epson] buf[59] 52 R
[epson] buf[60] 40 @
[epson] buf[61] 01 .
[epson] buf[62] 52 R
[epson] buf[63] 5e ^
[epson] buf[64] 01 .
[epson] buf[65] 52 R
[epson] buf[66] 68 h
[epson] buf[67] 01 .
[epson] buf[68] 52 R
[epson] buf[69] 90 .
[epson] buf[70] 01 .
[epson] buf[71] 52 R
[epson] buf[72] e0 .
[epson] buf[73] 01 .
[epson] buf[74] 52 R
[epson] buf[75] 58 X
[epson] buf[76] 02 .
[epson] buf[77] 52 R
[epson] buf[78] d0 .
[epson] buf[79] 02 .
[epson] buf[80] 52 R
[epson] buf[81] 20  
[epson] buf[82] 03 .
[epson] buf[83] 52 R
[epson] buf[84] 84 .
[epson] buf[85] 03 .
[epson] buf[86] 52 R
[epson] buf[87] b0 .
[epson] buf[88] 04 .
[epson] buf[89] 52 R
[epson] buf[90] 40 @
[epson] buf[91] 06 .
[epson] buf[92] 52 R
[epson] buf[93] 08 .
[epson] buf[94] 07 .
[epson] buf[95] 52 R
[epson] buf[96] 60 `
[epson] buf[97] 09 .
[epson] buf[98] 52 R
[epson] buf[99] 80 .
[epson] buf[100] 0c .
[epson] buf[101] 41 A
[epson] buf[102] 40 @
[epson] buf[103] 6a j
[epson] buf[104] 40 @
[epson] buf[105] 92 .
[epson] type    B 0x42
[epson] level   8 0x38
[epson] option equipment is installed
[epson] resolution (dpi): 50
[epson] resolution (dpi): 60
[epson] resolution (dpi): 72
[epson] resolution (dpi): 75
[epson] resolution (dpi): 80
[epson] resolution (dpi): 90
[epson] resolution (dpi): 100
[epson] resolution (dpi): 120
[epson] resolution (dpi): 133
[epson] resolution (dpi): 144
[epson] resolution (dpi): 150
[epson] resolution (dpi): 160
[epson] resolution (dpi): 175
[epson] resolution (dpi): 180
[epson] resolution (dpi): 200
[epson] resolution (dpi): 216
[epson] resolution (dpi): 240
[epson] resolution (dpi): 266
[epson] resolution (dpi): 300
[epson] resolution (dpi): 320
[epson] resolution (dpi): 350
[epson] resolution (dpi): 360
[epson] resolution (dpi): 400
[epson] resolution (dpi): 480
[epson] resolution (dpi): 600
[epson] resolution (dpi): 720
[epson] resolution (dpi): 800
[epson] resolution (dpi): 900
[epson] resolution (dpi): 1200
[epson] resolution (dpi): 1600
[epson] resolution (dpi): 1800
[epson] resolution (dpi): 2400
[epson] resolution (dpi): 3200
[epson] maximum scan area: x 27200 y 37440
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] Max. supported color depth = 14
[epson] request_focus_position()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 71 q
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 02 .
[epson] buf[3] 00 .
[epson] receive buf, expected = 2, got = 2
[epson] buf[0] 00 .
[epson] buf[1] 40 @
[epson] Focus position = 0x40
[epson] Enabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 12 .
[epson] buf[2] 2a *
[epson] buf[3] 00 .
[epson] code   02
[epson] status 12
[epson] count  42
[epson] receive buf, expected = 42, got = 42
[epson] buf[0] 01 .
[epson] buf[1] 80 .
[epson] buf[2] 40 @
[epson] buf[3] 6a j
[epson] buf[4] 00 .
[epson] buf[5] af .
[epson] buf[6] 00 .
[epson] buf[7] 00 .
[epson] buf[8] 00 .
[epson] buf[9] 00 .
[epson] buf[10] 00 .
[epson] buf[11] 00 .
[epson] buf[12] 00 .
[epson] buf[13] 00 .
[epson] buf[14] 00 .
[epson] buf[15] 00 .
[epson] buf[16] 00 .
[epson] buf[17] 00 .
[epson] buf[18] 00 .
[epson] buf[19] 00 .
[epson] buf[20] 00 .
[epson] buf[21] 00 .
[epson] buf[22] 00 .
[epson] buf[23] 00 .
[epson] buf[24] 00 .
[epson] buf[25] 00 .
[epson] buf[26] 50 P
[epson] buf[27] 65 e
[epson] buf[28] 72 r
[epson] buf[29] 66 f
[epson] buf[30] 65 e
[epson] buf[31] 63 c
[epson] buf[32] 74 t
[epson] buf[33] 69 i
[epson] buf[34] 6f o
[epson] buf[35] 6e n
[epson] buf[36] 31 1
[epson] buf[37] 36 6
[epson] buf[38] 34 4
[epson] buf[39] 30 0
[epson] buf[40] 20  
[epson] buf[41] 20  
[epson] ADF detected
[epson] adf tlx 0.000000 tly 0.000000 brx 215.899994 bry 355.599991 [mm]
[epson] scanner model: Perfection1640
[epson] close_scanner(fd = 7)
[epson] sane_open(/dev/sg2)
[epson] init_options()
[epson] open_scanner()
[epson] setvalue(option = 47, value = 0xbfffdf88
[epson] eject()
[epson] send buf, size = 1
[epson] buf[0] 0c .
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] close_scanner(fd = 5)
[epson] setvalue(option = 38, value = 0xbfffe018
[epson] set = 215.899994
[epson] setvalue(option = 39, value = 0xbfffe018
[epson] set = 297.179993


More information about the sane-devel mailing list