[sane-devel] Question on SCSI Scanner in M$

Dieter Jurzitza Dieter.Jurzitza@t-online.de
Sat, 13 Nov 2004 08:16:49 +0100


--Boundary-00=_hTblBF4UttDhIrR
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Dear listmembers,
men have to do sometimes what men have to do. I am trying hard to attach a
Microtek ScanMaker 330 to a Win2000 machine with an AHA2940 controler.
Both scanner and controler are detected by windows.
The adaptec finds the scanner also at boot. But this is the best I can say
about all of it.
I got the full-M$-version of sane from the net and installed it. xsane
starts and finds the scanner. However, any attempt to scan data immediatly
fails because the communication with the scanner seems to fail. Please see
attached logfile. After the first failure the scanner cannot be accessed
any more - the interface hangs and it has to be power cycled.
Putting the scanner to my linux - machine shows that this is not a scanner
problem - the scanner is working perfectly on linux.
Backend-version of sane is 1.0.14.
Many thanks for your efforts in advance,
take care


Dieter Jurzitza


P.S. the logfile was created by setting SANE_DEBUG_MICROTEK2 to 30 and run
the command "scanimage -l0 -t0 -x100 -y20 2>scan.log" The data contents
coming out of scanimage were only 3 to 4 byte. I assume the communication
to fail immediatly.

=2D-=20
=2D----------------------------------------------------------

                               |
                                \
                 /\_/\           |
                | ~x~ |/-----\   /
                 \   /-       \_/
  ^^__   _        /  _  ____   /
 <=B0=B0__ \- \_/     |  |/    |  |
  ||  ||         _| _|    _| _|

if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
=2D----------------------------------------------------------

--Boundary-00=_hTblBF4UttDhIrR
Content-Type: text/x-log;
  charset="iso-8859-15";
  name="scan.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="scan.log"

[sanei_debug] Setting debug level of microtek2 to 30.
[microtek2] sane_init: Microtek2 (v0.95 build 200301152155) says hello...
[microtek2] parse_config_file: fp=0x10020eb4
[microtek2] attach_one: name='h0b0t5l0'
[microtek2] add_device_list: device='h0b0t5l0'
[microtek2] attach: device='h0b0t5l0'
[microtek2] scsi_inquiry: mi=0x10032eec, device='h0b0t5l0'
[microtek2] [inquiry]
[microtek2] 12,00,00,00,60,00,
[microtek2] [inquiryresult]
[microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20,
[microtek2] 53,63,61,6e,6e,65,72,20,33,30,30,41,34,20,20,20,
[microtek2] 34,2e,31,31,93,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] dump_area: inquiryresult
[microtek2]      0: 060002025b000000 2020202020202020    ....[...         
[microtek2]     16: 5363616e6e657220 3330304134202020    Scanner  300A4   
[microtek2]     32: 342e313193000000 0000000000000000    4.11.... ........
[microtek2]     48: 0000000000000000 0000000000000000    ........ ........
[microtek2]     64: 0000000000000000 0000000000000000    ........ ........
[microtek2]     80: 0000000000000000 0000000000000000    ........ ........
[microtek2] check_inquiry: md=0x10032ee8
[microtek2] scsi_read_attributes: mi=0x10032eec, device='h0b0t5l0', source=0
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,00,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,09,f6,0d,b6,01,2c,0d,09,f6,
[microtek2] 02,00,13,ff,ff,ff,85,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] dump_attributes: mi=0x10032eec
[microtek2] 
[microtek2] Scanner attributes from device structure
[microtek2] ========================================
[microtek2] Scanner ID...
[microtek2] ~~~~~~~~~~~~~
[microtek2]   Vendor Name               : '        '
[microtek2]   Model Name                : 'Scanner 300A4   '
[microtek2]   Revision                  : '4.11'
[microtek2]   Model Code                : 0x93
[microtek2] ScanMaker V310
[microtek2]   Device Type Code          : 0x06 (Scanner),
[microtek2]   Scanner type              : Flatbed scanner
[microtek2]   Supported options         : Automatic document feeder: Yes
[microtek2]                               Transparency media adapter: Yes
[microtek2]                               Auto paper detecting: Yes
[microtek2]                               Advanced picture system: No
[microtek2]                               Stripes: No
[microtek2]                               Slides: No
[microtek2]   Scan button               : No
[microtek2] 
[microtek2]   Imaging Capabilities...
[microtek2]   ~~~~~~~~~~~~~~~~~~~~~~~
[microtek2]   Color scanner      : Yes
[microtek2]   Number passes      : 1 pass
[microtek2]   Resolution         : X-max:   300 dpi
                                   Y-max:   600 dpi
[microtek2]   Geometry           : Geometric width:  2550 pts (8.50'')
[microtek2]                        Geometric height: 3510 pts (11.70'')
[microtek2]   Optical resolution : 300
[microtek2]   Modes              : Lineart:      Yes
                                   Halftone:     No
[microtek2]                        Gray:         Yes
                                   Color:        Yes
[microtek2]   Depths              : Nibble Gray:  No
[microtek2]                        10-bit-color: No
[microtek2]                        12-bit-color: No
[microtek2]                        14-bit-color: No
[microtek2]                        16-bit-color: No
[microtek2]   d/l of HT pattern  : No
[microtek2]   Builtin HT pattern : 0
[microtek2]   LUT capabilities   : 1024 bytes
[microtek2] 
[microtek2]   Miscellaneous capabilities...
[microtek2]   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[microtek2]   Data format        : Line by line in segregated sequence,
[microtek2]                        with color indicator
[microtek2]   Color Sequence                 : 
[microtek2]                                   G
[microtek2]                                   B
[microtek2]                                   R
[microtek2]   Using old ReadImageStatus format
[microtek2]   Scanning direction             : left to right
[microtek2]   CCD gap                        : 8 lines
[microtek2]   CCD pixels                     : 2550
[microtek2]   Calib white stripe location    : -123
[microtek2]   Max calib space                : 48
[microtek2]   Number of lens                 : 1
[microtek2]   Max number of windows          : 8
[microtek2]   Shading transfer function      : 0x00
[microtek2]   Red balance                    : 32
[microtek2]   Green balance                  : 13358
[microtek2]   Blue balance                   : 12593
[microtek2]   Buffer type                    : Ping-Pong
[microtek2]   FEPROM                         : No
[microtek2] scsi_read_attributes: mi=0x1003310c, device='h0b0t5l0', source=2
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,02,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,05,dc,07,08,01,2c,0d,05,dc,
[microtek2] 02,00,03,ff,ff,ff,80,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_attributes: mi=0x10032ffc, device='h0b0t5l0', source=1
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,01,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,25,08,01,2c,02,58,09,f6,0f,d2,01,2c,0d,09,f6,
[microtek2] 02,00,03,00,00,00,00,00,00,00,00,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_system_status: md=0x10032ee8, fd=-1
[microtek2] [readsystemstatus]
[microtek2] 28,00,81,00,00,00,00,00,09,00,
[microtek2] [readsystemstatusresult]
[microtek2] 01,00,00,00,9e,00,00,00,00,
[microtek2] attach_one: name='h1b0t0l0'
[microtek2] add_device_list: device='h1b0t0l0'
[microtek2] attach: device='h1b0t0l0'
[microtek2] scsi_inquiry: mi=0x10035244, device='h1b0t0l0'
[microtek2] scsi_inquiry: 'Error during device I/O'
[microtek2] attach: 'Error during device I/O'
[microtek2] attach_one: name='h2b0t0l0'
[microtek2] add_device_list: device='h2b0t0l0'
[microtek2] attach: device='h2b0t0l0'
[microtek2] scsi_inquiry: mi=0x100357cc, device='h2b0t0l0'
[microtek2] scsi_inquiry: 'Error during device I/O'
[microtek2] attach: 'Error during device I/O'
[microtek2] sane_get_devices: local_only=0
[microtek2] attach: device='h2b0t0l0'
[microtek2] scsi_inquiry: mi=0x100357cc, device='h2b0t0l0'
[microtek2] scsi_inquiry: 'Error during device I/O'
[microtek2] attach: 'Error during device I/O'
[microtek2] sane_get_devices: attach status 'Error during device I/O'
[microtek2] attach: device='h1b0t0l0'
[microtek2] scsi_inquiry: mi=0x10035244, device='h1b0t0l0'
[microtek2] scsi_inquiry: 'Error during device I/O'
[microtek2] attach: 'Error during device I/O'
[microtek2] sane_get_devices: attach status 'Error during device I/O'
[microtek2] attach: device='h0b0t5l0'
[microtek2] scsi_inquiry: mi=0x10032eec, device='h0b0t5l0'
[microtek2] [inquiry]
[microtek2] 12,00,00,00,60,00,
[microtek2] [inquiryresult]
[microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20,
[microtek2] 53,63,61,6e,6e,65,72,20,33,30,30,41,34,20,20,20,
[microtek2] 34,2e,31,31,93,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] dump_area: inquiryresult
[microtek2]      0: 060002025b000000 2020202020202020    ....[...         
[microtek2]     16: 5363616e6e657220 3330304134202020    Scanner  300A4   
[microtek2]     32: 342e313193000000 0000000000000000    4.11.... ........
[microtek2]     48: 0000000000000000 0000000000000000    ........ ........
[microtek2]     64: 0000000000000000 0000000000000000    ........ ........
[microtek2]     80: 0000000000000000 0000000000000000    ........ ........
[microtek2] check_inquiry: md=0x10032ee8
[microtek2] scsi_read_attributes: mi=0x10032eec, device='h0b0t5l0', source=0
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,00,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,09,f6,0d,b6,01,2c,0d,09,f6,
[microtek2] 02,00,13,ff,ff,ff,85,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_attributes: mi=0x1003310c, device='h0b0t5l0', source=2
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,02,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,05,dc,07,08,01,2c,0d,05,dc,
[microtek2] 02,00,03,ff,ff,ff,80,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_attributes: mi=0x10032ffc, device='h0b0t5l0', source=1
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,01,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,25,08,01,2c,02,58,09,f6,0f,d2,01,2c,0d,09,f6,
[microtek2] 02,00,03,00,00,00,00,00,00,00,00,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_system_status: md=0x10032ee8, fd=-1
[microtek2] [readsystemstatus]
[microtek2] 28,00,81,00,00,00,00,00,09,00,
[microtek2] [readsystemstatusresult]
[microtek2] 01,00,00,00,9e,00,00,00,00,
[microtek2] scsi_test_unit_ready: md=h0b0t5l0
[microtek2] [testunitready]
[microtek2] 00,00,00,00,00,00,
[microtek2] sane_open: device='h0b0t5l0'
[microtek2] add_device_list: device='h0b0t5l0'
[microtek2] add_device_list: device 'h0b0t5l0' already in list
[microtek2] attach: device='h0b0t5l0'
[microtek2] scsi_inquiry: mi=0x10032eec, device='h0b0t5l0'
[microtek2] [inquiry]
[microtek2] 12,00,00,00,60,00,
[microtek2] [inquiryresult]
[microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20,
[microtek2] 53,63,61,6e,6e,65,72,20,33,30,30,41,34,20,20,20,
[microtek2] 34,2e,31,31,93,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
[microtek2] dump_area: inquiryresult
[microtek2]      0: 060002025b000000 2020202020202020    ....[...         
[microtek2]     16: 5363616e6e657220 3330304134202020    Scanner  300A4   
[microtek2]     32: 342e313193000000 0000000000000000    4.11.... ........
[microtek2]     48: 0000000000000000 0000000000000000    ........ ........
[microtek2]     64: 0000000000000000 0000000000000000    ........ ........
[microtek2]     80: 0000000000000000 0000000000000000    ........ ........
[microtek2] check_inquiry: md=0x10032ee8
[microtek2] scsi_read_attributes: mi=0x10032eec, device='h0b0t5l0', source=0
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,00,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,09,f6,0d,b6,01,2c,0d,09,f6,
[microtek2] 02,00,13,ff,ff,ff,85,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_attributes: mi=0x1003310c, device='h0b0t5l0', source=2
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,02,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,60,08,01,2c,02,58,05,dc,07,08,01,2c,0d,05,dc,
[microtek2] 02,00,03,ff,ff,ff,80,00,00,00,30,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_attributes: mi=0x10032ffc, device='h0b0t5l0', source=1
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,01,00,00,28,00,
[microtek2] [scannerattributesresults]
[microtek2] d3,25,08,01,2c,02,58,09,f6,0f,d2,01,2c,0d,09,f6,
[microtek2] 02,00,03,00,00,00,00,00,00,00,00,01,08,01,00,20,
[microtek2] 34,2e,31,31,93,00,00,00,
[microtek2] scsi_read_system_status: md=0x10032ee8, fd=-1
[microtek2] [readsystemstatus]
[microtek2] 28,00,81,00,00,00,00,00,09,00,
[microtek2] [readsystemstatusresult]
[microtek2] 01,00,00,00,9e,00,00,00,00,
[microtek2] init_options: handle=0x10033470, source=0
[microtek2] get_lut_size: mi=0x10032eec
[microtek2] get_lut_size:  mi=0x10032eec, lut_size=1024, lut_entry_size=1
[microtek2] sane_start: handle=0x0x10033470
[microtek2] scsi_read_system_status: md=0x10032ee8, fd=460
[microtek2] [readsystemstatus]
[microtek2] 28,00,81,00,00,00,00,00,09,00,
[microtek2] [readsystemstatusresult]
[microtek2] 01,00,00,00,9e,00,00,00,00,
[microtek2] sane_start: backend calibration off
[microtek2] get_scan_parameters: handle=0x10033470
[microtek2] get_scan_mode_and_depth: handle=0x10033470
[microtek2] get_scan_mode_and_depth: mode=5, depth=8, bits_pp_in=8, bits_pp_out=8, preview=0
[microtek2] get_scan_parameters: mode=5, depth=8, bpp_in=8, bpp_out=8
[microtek2] get_scan_parameters: yres=72, x1=0, width=1181, y1=0, height=236
[microtek2] scsi_read_system_status: md=0x10032ee8, fd=460
[microtek2] [readsystemstatus]
[microtek2] 28,00,81,00,00,00,00,00,09,00,
[microtek2] [readsystemstatusresult]
[microtek2] 01,00,00,00,9e,00,00,00,00,
[microtek2] scsi_send_system_status: md=0x10032ee8, fd=460
[microtek2] [sendsystemstatus]
[microtek2] 2a,00,81,00,00,00,00,00,09,00,
[microtek2] [sendsystemstatusdata]
[microtek2] 01,00,00,00,8a,00,00,00,00,
[microtek2] get_lut_size: mi=0x10032eec
[microtek2] get_lut_size:  mi=0x10032eec, lut_size=1024, lut_entry_size=1
[microtek2] calculate_gamma: ms=0x10033470, pos=0x10041f58, color=0, mode=None
[microtek2] calculate_gamma: factor=4, mult =255.000000, steps=1023.000000, mode=None
[microtek2] calculate_gamma: ms=0x10033470, pos=0x10042358, color=1, mode=None
[microtek2] calculate_gamma: factor=4, mult =255.000000, steps=1023.000000, mode=None
[microtek2] calculate_gamma: ms=0x10033470, pos=0x10042758, color=2, mode=None
[microtek2] calculate_gamma: factor=4, mult =255.000000, steps=1023.000000, mode=None
[microtek2] scsi_send_gamma: pos=0x10041f58, size=1024, word=0, color=3
[microtek2] [sendgammacmd]
[microtek2] 2a,00,03,00,00,60,00,0c,00,00,
[microtek2] scsi_set_window: ms=0x10033470, wnd=1
[microtek2] [setwindowcmd]
[microtek2] 24,00,00,00,00,00,00,00,45,00,
[microtek2] [setwindowheader]
[microtek2] 00,00,00,00,00,00,00,3d,
[microtek2] [setwindowbody]
[microtek2] 00,00,00,48,00,48,00,00,00,00,00,00,00,00,00,00,
[microtek2] 04,9d,00,00,00,ec,80,80,80,05,08,00,00,80,00,10,
[microtek2] 00,00,00,00,00,00,00,00,00,80,ff,80,80,00,00,80,
[microtek2] ff,80,80,00,00,80,ff,80,80,00,00,80,ff,
[microtek2] scsi_read_image_info: ms=0x10033470
[microtek2] [readimageinfo]
[microtek2] 28,00,80,00,00,00,00,00,10,00,
[microtek2] [readimageinforesult]
[microtek2] 00,00,01,1b,00,00,03,5a,00,00,00,38,00,00,bb,b0,
[microtek2] scsi_read_image_info: ppl=283, bpl=858, lines=56, remain=48048
[microtek2] prepare_buffers: ms=0x0x10033470
[microtek2] calculate_sane_params: ms=0x10033470
[microtek2] scsi_wait_for_image: ms=0x10033470
[microtek2] scsi_read_image_status: ms=0x10033470
[microtek2] scsi_read_image_status: use old image status 
[microtek2] [readimagestatus]
[microtek2] 28,00,83,00,00,00,00,00,00,00,
[microtek2] sane_get_parameters: format=1, last_frame=1, lines=56
[microtek2] sane_get_parameters: depth=8, ppl=283, bpl=849
[microtek2] sane_read: handle=0x10033470, buf=0x226e70, maxlen=32768
[microtek2] reader_process: ms=0x10033470
[microtek2] reader_process: transferlength=32604, lines=38, linelength=858, real_bpl=849, srcbuf=0x10042b60
[microtek2] scsi_read_image:  ms=0x10033470, buffer=0x10042b60
[microtek2] scsi_read_image: transferlength=32604
[microtek2] [readimagecmd]
[microtek2] 28,00,00,00,00,00,00,7f,5c,00,
[microtek2] scsi_read_image: 'Error during device I/O'
[microtek2] sane_read: read 0 bytes -> EOF
[microtek2] cleanup_scanner: ms=0x10033470, ms->sfd=460
[microtek2] sane_cancel: handle=0x10033470
[microtek2] sane_close: ms=0x10033470
[microtek2] cleanup_scanner: ms=0x10033470, ms->sfd=-1
[microtek2] sane_exit:
[microtek2] sane_get_devices: local_only=0
[microtek2] sane_get_devices: sd_list_freed
[microtek2] sane_exit: MICROTEK2 says goodbye.

--Boundary-00=_hTblBF4UttDhIrR--