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

212 wiersze
8.4 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="Lawrence Glaister (lg@jfm.bc.ca)">
<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 19:58:35 2000" -->
<!-- isoreceived="20001021025835" -->
<!-- sent="Fri, 20 Oct 2000 20:08:52 -0700" -->
<!-- isosent="20001021030852" -->
<!-- name="Lawrence Glaister" -->
<!-- email="lg@jfm.bc.ca" -->
<!-- subject="Re: Problems with Acer ScanPrisa 640S" -->
<!-- id="005901c03b0c$3dbe4560$bf0aa8c0@dufusiii" -->
<!-- inreplyto="87zojznhei.fsf@gmx.net" -->
<STRONG>From:</STRONG> Lawrence Glaister (<A HREF="mailto:lg@jfm.bc.ca?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;"><EM>lg@jfm.bc.ca</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Oct 20 2000 - 20:08:52 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0238.html">Oliver Rauch: "Re: make dll.c robust against it being listed in its configuration file..."</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0236.html">Chris Bagwell: "[snapscan] Small USB+misc patch for sane-1.0.3"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0235.html">Sebastien Sable: "Re: Problems with Acer ScanPrisa 640S"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0241.html">Sebastien Sable: "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>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#237">[ date ]</A>
<A HREF="index.html#237">[ thread ]</A>
<A HREF="subject.html#237">[ subject ]</A>
<A HREF="author.html#237">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Greetings Sebastien
<BR>
You have hit on one of the symptoms I noticed as well... due to the
<BR>
RGBRouter code, the scsi speed test gets hosed especially on higher
<BR>
resolution scans. I am wondering if the speed test can be removed.... what
<BR>
does it really get used for? Since there is probably only a 3-1 range in
<BR>
times between the slowest and fastest scanners, does the rate really need to
<BR>
be measured... it doesn't seem to get used for setting timeouts.
<BR>
Do you notice your scanner blocking during the speed test or during a real
<BR>
scan? I found a &quot;hang condition&quot; was occurring during the speed test because
<BR>
RGBRouter was called with a small 32k buffer to test the transfer rate with.
<BR>
The rest of the code was expecting a 23mb image to be scanned and the
<BR>
RGBRouter_remaining() function broke with -ve return values.
<BR>
The second problem I noticed was the EAGAIN problem with the USB driver.
<BR>
Somewhere in the 2.4.0 code, the USB drivers stopped blocking on a read and
<BR>
started returning EAGAIN and 0 bytes when the scanner was busy (noticeable
<BR>
during scanhead backtracking).
<BR>
=======================================================
<BR>
Lawrence Glaister VE7IT email: <A HREF="mailto:lg@jfm.bc.ca?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">lg@jfm.bc.ca</A>
<BR>
1462 Madrona Drive <A HREF="http://jfm.bc.ca">http://jfm.bc.ca</A>
<BR>
Nanoose Bay BC Canada
<BR>
V9P 9C9
<BR>
=======================================================
<BR>
----- Original Message -----
<BR>
From: Sebastien Sable &lt;<A HREF="mailto:sebastien.sable@gmx.net?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">sebastien.sable@gmx.net</A>&gt;
<BR>
To: &lt;<A HREF="mailto:sane-devel@mostang.com?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">sane-devel@mostang.com</A>&gt;
<BR>
Sent: Friday, October 20, 2000 5:53 PM
<BR>
Subject: Re: Problems with Acer ScanPrisa 640S
<BR>
<P><P><EM>&gt; Steve Underwood &lt;<A HREF="mailto:steveu@coppice.org?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">steveu@coppice.org</A>&gt; writes:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; I updated the backend to merge the colours properly in May. Since then I
</EM><BR>
have had
<BR>
<EM>&gt; &gt; little feedback. Lawrence is the first person to fully work through
</EM><BR>
anything from
<BR>
<EM>&gt; &gt; &quot;I have a problem&quot; to &quot;I have a cure&quot; since then. People need some
</EM><BR>
serious coaxing
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; This time I think &quot;I have a cure&quot; ;)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I found that ps-&gt;pss-&gt;expected_read_bytes calculated in SCSISource_get
</EM><BR>
<EM>&gt; was slowly decreasing down to 0. At this point
</EM><BR>
<EM>&gt; (ps-&gt;pss-&gt;expected_read_bytes == 0) the scanner would block.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; To solve this, I can put it to an arbitrary high value.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; // ps-&gt;pss-&gt;expected_read_bytes =
</EM><BR>
<EM>&gt; // ((int)
</EM><BR>
(msecs/ps-&gt;pss-&gt;ms_per_line))*ps-&gt;pss-&gt;bytes_per_line;
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; ps-&gt;pss-&gt;expected_read_bytes = 50000;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; then this line later
</EM><BR>
<EM>&gt; ps-&gt;pss-&gt;expected_read_bytes = MIN(ps-&gt;pss-&gt;expected_read_bytes,
</EM><BR>
<EM>&gt; (size_t) ps-&gt;absolute_max);
</EM><BR>
<EM>&gt; put it to absolute_max.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; In this case, my scanner works fine and does not block anymore. Of
</EM><BR>
<EM>&gt; course, it's a dirty trick.
</EM><BR>
<EM>&gt; May be the ms_per_line reported by the scanner is not right or
</EM><BR>
<EM>&gt; something?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; S<>bastien Sabl<62>
</EM><BR>
<EM>&gt; <A HREF="mailto:sebastien.sable@gmx.net?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">sebastien.sable@gmx.net</A>
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
</EM><BR>
<EM>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">majordomo@mostang.com</A>
</EM><BR>
<EM>&gt;
</EM><BR>
<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?Subject=Re:%20Problems%20with%20Acer%20ScanPrisa%20640S&In-Reply-To=&lt;005901c03b0c$3dbe4560$bf0aa8c0@dufusiii&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0238.html">Oliver Rauch: "Re: make dll.c robust against it being listed in its configuration file..."</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0236.html">Chris Bagwell: "[snapscan] Small USB+misc patch for sane-1.0.3"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0235.html">Sebastien Sable: "Re: Problems with Acer ScanPrisa 640S"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0241.html">Sebastien Sable: "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>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#237">[ date ]</A>
<A HREF="index.html#237">[ thread ]</A>
<A HREF="subject.html#237">[ subject ]</A>
<A HREF="author.html#237">[ 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 - 20:00:46 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>