sane-project-website/old-archive/1999-03/0027.html

100 wiersze
3.8 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Tue Mar 2 21:53:35 1999 PST" -->
<!-- sent="Tue, 2 Mar 1999 17:31:52 +0100 (MET)" -->
<!-- name="Andreas Czechanowski" -->
<!-- email="andreas@inspc44b.ins.uni-stuttgart.de" -->
<!-- subject="Timing-patches (Mustek 600 II N)" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Timing-patches (Mustek 600 II N)</title>
<h1>Timing-patches (Mustek 600 II N)</h1>
<b>Andreas Czechanowski</b> (<a href="mailto:andreas@inspc44b.ins.uni-stuttgart.de"><i>andreas@inspc44b.ins.uni-stuttgart.de</i></a>)<br>
<i>Tue, 2 Mar 1999 17:31:52 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#27">[ date ]</a><a href="index.html#27">[ thread ]</a><a href="subject.html#27">[ subject ]</a><a href="author.html#27">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0028.html">Michael Bramer: "experience with A3 Scanner!?"</a>
<li> <b>Previous message:</b> <a href="0026.html">Yannick CALMES: "Mustek 800SP problem"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi !<br>
<p>
The lines below are the "official" delays that are to be<br>
introduced into the sanei-code to prevent hanging of the<br>
Mustek 600 II N backend on a fast computer.<br>
<p>
The diff was taken relative to 0.74, but I hope it is still<br>
valid for 1.00+ also. Please include this into the next<br>
official release for SANE. Thanks !<br>
<p>
There is one more patch from Henning Meier-Geinitz &lt;<a href="mailto:henningmg@gmx.de">henningmg@gmx.de</a>&gt;<br>
that I have still not yet tested -- sorry. It is from 14 Apr 1998<br>
and can also be found in the mailing list archive. But it is<br>
possible that it works for some scanners and breaks things for<br>
other ones, so...<br>
<p>
Regards, Andreas.<br>
<p>
------------------------ cut here -------------------------<br>
*** ./sanei/sanei_ab306.c.orig Tue Mar 3 03:13:25 1998<br>
--- ./sanei/sanei_ab306.c Fri Aug 14 23:45:38 1998<br>
***************<br>
*** 195,200 ****<br>
--- 195,201 ----<br>
DBG(3, "ab306_write: waiting for scanner to be ready %02x\n",<br>
ab306_inb (p, base + 1));<br>
while ((ab306_inb (p, base + 1) &amp; 0x20) == 0);<br>
+ usleep(10000);<br>
<br>
DBG(4, "ab306_write: writing data\n");<br>
for (i = 0; i &lt; len; ++i)<br>
***************<br>
*** 209,214 ****<br>
--- 210,216 ----<br>
DBG(3, "ab306_write: waiting for scanner to be NOT ready %02x\n",<br>
ab306_inb (p, base + 1));<br>
while ((ab306_inb (p, base + 1) &amp; 0x20) != 0);<br>
+ usleep(10000);<br>
<br>
DBG(4, "ab306_write: reading ack\n");<br>
cksum = ab306_cin (p);<br>
***************<br>
*** 390,395 ****<br>
--- 392,401 ----<br>
if (dst &amp;&amp; *dst_size &gt; 0)<br>
{<br>
int i, cksum = 0;<br>
+ <br>
+ DBG(3, "sanei_ab306_cmd: waiting for scanner to be NOT ready %02x\n",<br>
+ ab306_inb (p, p-&gt;base + 1));<br>
+ while ((ab306_inb (p, p-&gt;base + 1) &amp; 0x20) != 0);<br>
<br>
for (i = 0; i &lt; *dst_size; i++)<br>
{<br>
------------------------ cut here -------------------------<br>
<p>
<pre>
--
Dipl.-Ing. Andreas Czechanowski
<a href="mailto:andreas.czechanowski@ins.uni-stuttgart.de">andreas.czechanowski@ins.uni-stuttgart.de</a>
Institut fuer Netzwerk- und Systemtheorie
Universitaet Stuttgart
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0028.html">Michael Bramer: "experience with A3 Scanner!?"</a>
<li> <b>Previous message:</b> <a href="0026.html">Yannick CALMES: "Mustek 800SP problem"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>