sane-project-website/old-archive/2000-10/0235.html

119 wiersze
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Problems with Acer ScanPrisa 640S</TITLE>
<META NAME="Author" CONTENT="Sebastien Sable (sebastien.sable@gmx.net)">
<META NAME="Subject" CONTENT="Re: Problems with Acer ScanPrisa 640S">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Problems with Acer ScanPrisa 640S</H1>
<!-- received="Fri Oct 20 17:44:00 2000" -->
<!-- isoreceived="20001021004400" -->
<!-- sent="21 Oct 2000 02:53:57 +0200" -->
<!-- isosent="20001021005357" -->
<!-- name="Sebastien Sable" -->
<!-- email="sebastien.sable@gmx.net" -->
<!-- subject="Re: Problems with Acer ScanPrisa 640S" -->
<!-- id="87zojznhei.fsf@gmx.net" -->
<!-- inreplyto="Fri, 20 Oct 2000 11:10:45 +0800&quot;" -->
<STRONG>From:</STRONG> Sebastien Sable (<A HREF="mailto:sebastien.sable@gmx.net?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;87zojznhei.fsf@gmx.net&gt;"><EM>sebastien.sable@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Oct 20 2000 - 17:53:57 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0236.html">Chris Bagwell: "[snapscan] Small USB+misc patch for sane-1.0.3"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0234.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Lawrence Glaister: "Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0219.html">cbagwell@sprynet.com: "Re: Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Maybe reply:</STRONG> <A HREF="0219.html">cbagwell@sprynet.com: "Re: Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0237.html">Lawrence Glaister: "Re: Problems with Acer ScanPrisa 640S"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#235">[ date ]</A>
<A HREF="index.html#235">[ thread ]</A>
<A HREF="subject.html#235">[ subject ]</A>
<A HREF="author.html#235">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Steve Underwood &lt;<A HREF="mailto:steveu@coppice.org?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;87zojznhei.fsf@gmx.net&gt;">steveu@coppice.org</A>&gt; writes:
<BR>
<P><EM>&gt; I updated the backend to merge the colours properly in May. Since then I have had
</EM><BR>
<EM>&gt; little feedback. Lawrence is the first person to fully work through anything from
</EM><BR>
<EM>&gt; &quot;I have a problem&quot; to &quot;I have a cure&quot; since then. People need some serious coaxing
</EM><BR>
<P>This time I think &quot;I have a cure&quot; ;)
<BR>
<P>I found that ps-&gt;pss-&gt;expected_read_bytes calculated in SCSISource_get
<BR>
was slowly decreasing down to 0. At this point
<BR>
(ps-&gt;pss-&gt;expected_read_bytes == 0) the scanner would block.
<BR>
<P>To solve this, I can put it to an arbitrary high value.
<BR>
<P>// ps-&gt;pss-&gt;expected_read_bytes =
<BR>
// ((int) (msecs/ps-&gt;pss-&gt;ms_per_line))*ps-&gt;pss-&gt;bytes_per_line;
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ps-&gt;pss-&gt;expected_read_bytes = 50000;
<BR>
<P>then this line later
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ps-&gt;pss-&gt;expected_read_bytes = MIN(ps-&gt;pss-&gt;expected_read_bytes,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(size_t) ps-&gt;absolute_max);
<BR>
put it to absolute_max.
<BR>
<P>In this case, my scanner works fine and does not block anymore. Of
<BR>
course, it's a dirty trick.
<BR>
May be the ms_per_line reported by the scanner is not right or
<BR>
something?
<BR>
<P><PRE>
--
S<EFBFBD>bastien Sabl<62>
<A HREF="mailto:sebastien.sable@gmx.net?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;87zojznhei.fsf@gmx.net&gt;">sebastien.sable@gmx.net</A>
<P>--
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?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;87zojznhei.fsf@gmx.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0236.html">Chris Bagwell: "[snapscan] Small USB+misc patch for sane-1.0.3"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0234.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Lawrence Glaister: "Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0219.html">cbagwell@sprynet.com: "Re: Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Maybe reply:</STRONG> <A HREF="0219.html">cbagwell@sprynet.com: "Re: Re: Problems with Acer ScanPrisa 640S"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0237.html">Lawrence Glaister: "Re: Problems with Acer ScanPrisa 640S"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#235">[ date ]</A>
<A HREF="index.html#235">[ thread ]</A>
<A HREF="subject.html#235">[ subject ]</A>
<A HREF="author.html#235">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri Oct 20 2000 - 17:45:21 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>