Kolja> 1. After a scan is complete and also most times when
Kolja> 'scanimage' is stopped by ctrl-c, I get a scsi timeout after
Kolja> 10 minutes) in return to the last scsi stop command sent
Kolja> by the mustek backend (in stop_scan()).
DM> Hmmh, this is the first time I hear of such a problem. Is the
DM> tekram driver relatively new? I know things work fine with the
DM> ncr810 and several other scsi adapters, so I'm inclined to think
DM> that this might be a problem with the SCSI driver.
DM> Can you try with another controller?
I have no other one here, and I couldn't make the DTC3181 controller - that
came with my scanner - work with Linux (it's not the one supported by the ncr
driver fix). The Tekram controller is 53C974-based but has an own driver.
The low-level driver source is poorly documented, I didn't find any hints on
modifying timeout behaviour there. A 10 minute timeout is quite long...
Anyway, it's now working for me - not perfectly, but at least a delay, long
enough to wait for the scanner having returned the carriage to its home
position, before the stop command is sent, allows normal operation.
my stop_scan() now looks like this:
static SANE_Status
stop_scan (Mustek_Scanner *s)
{
sleep( (int)(SANE_UNFIX(s->val[OPT_TL_Y].w) +
SANE_UNFIX (s->val[OPT_BR_Y].w)) / 25 + 2 );
return sanei_scsi_cmd (s->fd, stop, sizeof (stop), 0, 0);
}
Aborting the scan while the scanner is in the setup phase (ie. no image data
has been transferred at all) still causes a timeout, and I haven't found the
right place to insert a delay for this problem yet (if a delay can solve it).
But I can live with it the way it works now.
bibi,
Kolja
--- Kolja Waschk (kawk@Home.Yo.COM) http://WWW.TU-Harburg.DE/~sekw0206 Operator of "Yo.COM news & mail service for small budget" Tel +49-40-8891-3034, BBS/Fax -3035 (ISDN V.110/X.75 & ZyXEL/V.34)
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com