kopia lustrzana https://gitlab.com/sane-project/website
89 wiersze
3.9 KiB
HTML
89 wiersze
3.9 KiB
HTML
<!-- received="Fri Jul 18 18:49:02 1997 MST" -->
|
|
<!-- sent="19 Jul 97 01:46:43 +0200" -->
|
|
<!-- name="Kolja Waschk" -->
|
|
<!-- email="kawk@Home.Yo.COM" -->
|
|
<!-- subject="mustek: timeout after scan" -->
|
|
<!-- id="199707190008.RAA00642@panda.mosberger" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: mustek: timeout after scan</title>
|
|
<h1>mustek: timeout after scan</h1>
|
|
<b>Kolja Waschk</b> (<a href="mailto:kawk@Home.Yo.COM"><i>kawk@Home.Yo.COM</i></a>)<br>
|
|
<i>19 Jul 97 01:46:43 +0200</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#96">[ date ]</a><a href="index.html#96">[ thread ]</a><a href="subject.html#96">[ subject ]</a><a href="author.html#96">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0097.html">Jay Kuri: "Re: Help: Umax Vista-S6E & xscanimage / umax-sane problem"</a>
|
|
<li> <b>Previous message:</b> <a href="0095.html">David Mosberger-Tang: "handy script"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Kolja> environment: linux 2.0.29, sane 0.61, mustek mfs-12000sp<br>
|
|
Kolja> (fw 1.02), tekram dc390 scsi w/tekram driver 1.11<br>
|
|
<p>
|
|
Kolja> 1. After a scan is complete and also most times when <br>
|
|
Kolja> 'scanimage' is stopped by ctrl-c, I get a scsi timeout after<br>
|
|
Kolja> 10 minutes) in return to the last scsi stop command sent <br>
|
|
Kolja> by the mustek backend (in stop_scan()). <br>
|
|
<p>
|
|
DM> Hmmh, this is the first time I hear of such a problem. Is the<br>
|
|
DM> tekram driver relatively new? I know things work fine with the<br>
|
|
DM> ncr810 and several other scsi adapters, so I'm inclined to think<br>
|
|
DM> that this might be a problem with the SCSI driver.<br>
|
|
<p>
|
|
DM> Can you try with another controller?<br>
|
|
<p>
|
|
I have no other one here, and I couldn't make the DTC3181 controller - that<br>
|
|
came with my scanner - work with Linux (it's not the one supported by the ncr<br>
|
|
driver fix). The Tekram controller is 53C974-based but has an own driver. <br>
|
|
<p>
|
|
The low-level driver source is poorly documented, I didn't find any hints on<br>
|
|
modifying timeout behaviour there. A 10 minute timeout is quite long...<br>
|
|
<p>
|
|
Anyway, it's now working for me - not perfectly, but at least a delay, long<br>
|
|
enough to wait for the scanner having returned the carriage to its home<br>
|
|
position, before the stop command is sent, allows normal operation.<br>
|
|
<p>
|
|
my stop_scan() now looks like this:<br>
|
|
<p>
|
|
static SANE_Status<br>
|
|
stop_scan (Mustek_Scanner *s)<br>
|
|
{<br>
|
|
sleep( (int)(SANE_UNFIX(s->val[OPT_TL_Y].w) +<br>
|
|
SANE_UNFIX (s->val[OPT_BR_Y].w)) / 25 + 2 );<br>
|
|
<p>
|
|
return sanei_scsi_cmd (s->fd, stop, sizeof (stop), 0, 0);<br>
|
|
}<br>
|
|
<p>
|
|
Aborting the scan while the scanner is in the setup phase (ie. no image data<br>
|
|
has been transferred at all) still causes a timeout, and I haven't found the<br>
|
|
right place to insert a delay for this problem yet (if a delay can solve it). <br>
|
|
<p>
|
|
But I can live with it the way it works now.<br>
|
|
<p>
|
|
bibi,<br>
|
|
Kolja<br>
|
|
<p>
|
|
<pre>
|
|
---
|
|
Kolja Waschk (<a href="mailto:kawk@Home.Yo.COM">kawk@Home.Yo.COM</a>)
|
|
<a href="http://WWW.TU-Harburg.DE/~sekw0206">http://WWW.TU-Harburg.DE/~sekw0206</a>
|
|
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)
|
|
<p>
|
|
<pre>
|
|
--
|
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0097.html">Jay Kuri: "Re: Help: Umax Vista-S6E & xscanimage / umax-sane problem"</a>
|
|
<li> <b>Previous message:</b> <a href="0095.html">David Mosberger-Tang: "handy script"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|