sane-project-website/old-archive/2000-09/0255.html

102 wiersze
4.1 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: 1.0.3 snapscan interface</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: 1.0.3 snapscan interface">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: 1.0.3 snapscan interface</H1>
<!-- received="Mon Sep 25 02:19:49 2000" -->
<!-- isoreceived="20000925091949" -->
<!-- sent="Mon, 25 Sep 2000 11:41:37 +0200" -->
<!-- isosent="20000925094137" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: 1.0.3 snapscan interface" -->
<!-- id="39CF1DD1.8FD066CF@satzbau-gmbh.de" -->
<!-- inreplyto="02b001c0268c$3aed96e0$bf0aa8c0@dufusiii" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%201.0.3%20snapscan%20interface&In-Reply-To=&lt;39CF1DD1.8FD066CF@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Sep 25 2000 - 02:41:37 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0256.html">Graham Leggett: "Some help with the net backend"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0254.html">mh: "pnm backend crashes graphical frontends (patch?)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0251.html">Lawrence Glaister: "1.0.3 snapscan interface"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#255">[ date ]</A>
<A HREF="index.html#255">[ thread ]</A>
<A HREF="subject.html#255">[ subject ]</A>
<A HREF="author.html#255">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Lawrence Glaister wrote:
<BR>
<P><EM>&gt; I just tried a usleep(2000) and a continue added into the EAGAIN condition
</EM><BR>
<EM>&gt; in FDSource_get() instead of the break, and restored the code in
</EM><BR>
<EM>&gt; RGBRouter_get(). This does seem to work. I noticed that the scanner does
</EM><BR>
<EM>&gt; &quot;backtrack&quot; occasionally on large scans and this coincides perfectly with
</EM><BR>
<EM>&gt; hitting the EAGAIN condition. It looks like the scanner is responding to usb
</EM><BR>
<EM>&gt; read requests with a &quot;try again later&quot; and these are getting passed back up
</EM><BR>
<EM>&gt; the chain... it is possible that other versions of usb kernel code will
</EM><BR>
<EM>&gt; block on a read() until data is ready instead of returning with EAGAIN. I
</EM><BR>
<EM>&gt; don't know what the scsi driver does, but if the reads dont return until
</EM><BR>
<EM>&gt; data is available or an error occurs, this would explain the problems I have
</EM><BR>
<EM>&gt; been seeing.
</EM><BR>
<P>The sanei_scsi layer &quot;catches&quot; the EAGAIN error that can happen in the
<BR>
write part of sanei_scsi_cmd; for reading a command's result data,
<BR>
sanei_scsi uses a blocking read call.
<BR>
<P>Abel
<BR>
<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:%201.0.3%20snapscan%20interface&In-Reply-To=&lt;39CF1DD1.8FD066CF@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0256.html">Graham Leggett: "Some help with the net backend"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0254.html">mh: "pnm backend crashes graphical frontends (patch?)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0251.html">Lawrence Glaister: "1.0.3 snapscan interface"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#255">[ date ]</A>
<A HREF="index.html#255">[ thread ]</A>
<A HREF="subject.html#255">[ subject ]</A>
<A HREF="author.html#255">[ 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>Mon Sep 25 2000 - 02:20:19 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>