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

Frank Zago fzago@austin.rr.com
Sat, 13 Nov 2004 15:04:19 -0600


Dieter Jurzitza wrote:
> Dear Frank,
> thank you for your fast reply. Here you go with a new file scan.log. What 
> makes me wonder is the fact that sane tries to open /dev/scanner and is alway 
> saying this interface does not exist - what is right, indeed.
> I tried to start scanimage with
> scanimage -d h0b0t5l0 xxxx
> but scanimage says then that this device does not exist. Hence, I do not know. 
> The logfile has been generated exactly as recommended in the microtec2 - 
> manpage. Maybe you can solve things ...
> 
> My driver for the AHA2940 comes with M$ - and Adaptec does not offer an 
> alternative, therefore I think this is what I can get.
> 
> Many many thanks for your efforts!
> 
> take care
> 
> [microtek2] [readimagestatus]
> [microtek2] 28,00,83,00,00,00,00,00,00,00,
> [microtek2] sane_get_parameters: handle=0x10033558, params=0x226e50
> [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=0x10033558, buf=0x226e70, maxlen=32768
> [microtek2] reader_process: ms=0x10033558
> [microtek2] reader_process: transferlength=32604, lines=38, linelength=858, real_bpl=849, srcbuf=0x10042198
> [microtek2] scsi_read_image:  ms=0x10033558, buffer=0x10042198
> [microtek2] scsi_read_image: transferlength=32604
> [microtek2] [readimagecmd]
> [microtek2] 28,00,00,00,00,00,00,7f,5c,00,
> [sanei_scsi] sanei_scsi_cmd2: DeviceIoControl() failed: 6
> [microtek2] scsi_read_image: 'Error during device I/O'
> [microtek2] sane_read: read 0 bytes -> EOF
> [microtek2] cleanup_scanner: ms=0x10033558, ms->sfd=460

DeviceIoControl says invalid handle. I think somehow that last read command 
hosed the adapter or the scanner.
Do you have the possibility to recompile sane?