sane-project-website/old-archive/2000-05/0197.html

170 wiersze
6.6 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: Correct Network Scanner Syntax? (a question)</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: Correct Network Scanner Syntax? (a question)">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Correct Network Scanner Syntax? (a question)</H1>
<!-- received="Sun May 28 13:55:24 2000" -->
<!-- isoreceived="20000528205524" -->
<!-- sent="Sun, 28 May 2000 22:36:30 +0200" -->
<!-- isosent="20000528203630" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: Correct Network Scanner Syntax? (a question)" -->
<!-- id="3931834E.D1FB5313@satzbau-gmbh.de" -->
<!-- inreplyto="m2hfbjptqy.fsf@boreas.southchinaseas" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Correct%20Network%20Scanner%20Syntax?%20(a%20question)&In-Reply-To=&lt;3931834E.D1FB5313@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun May 28 2000 - 13:36:30 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0198.html">Robert Schwebel: "Re: Announcing new driver"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0196.html">Oliver Neukum: "Announcing new driver"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0192.html">John Fremlin: "Re: Correct Network Scanner Syntax? (a question)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0205.html">John Fremlin: "Re: Correct Network Scanner Syntax? (a question)"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Petter Reinholdtsen: "Re: Correct Network Scanner Syntax?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#197">[ date ]</A>
<A HREF="index.html#197">[ thread ]</A>
<A HREF="subject.html#197">[ subject ]</A>
<A HREF="author.html#197">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
&nbsp;
<BR>
John Fremlin wrote:
<BR>
&nbsp;
<BR>
<EM>&gt;abel deuring &lt;<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Correct%20Network%20Scanner%20Syntax?%20(a%20question)&In-Reply-To=&lt;3931834E.D1FB5313@satzbau-gmbh.de&gt;">a.deuring@satzbau-gmbh.de</A>&gt; writes:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;&gt; &gt; Hmm. I don't know if Oliver added anything to my version, but here is
</EM><BR>
<EM>&gt;&gt; &gt; what I sent him (relative to sane-cvs). The patch to
</EM><BR>
<EM>&gt;&gt; &gt; sanei/sanei_scsi.c should not be necessary if sane is setup properly,
</EM><BR>
<EM>&gt;&gt; &gt; and is probably incorrect wrt other sane backends.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;[...]
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;&gt; If this patch to sanei_scsi.c works for your setup (Microtek USB
</EM><BR>
<EM>&gt;&gt; scanner, if my memory is right), it's fine. But it might break the
</EM><BR>
<EM>&gt;&gt; memory management for other backends which use the function
</EM><BR>
<EM>&gt;&gt; sanei_scsi_open. Most backends open the device file for scanner access
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;To clarify:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt;The patch is *only* included because I couldn't be bothered to read
</EM><BR>
<EM>&gt;the docs to find the correct fix for the fact that my kernel sg buffer
</EM><BR>
<EM>&gt;size is smaller than that which SANE expects.
</EM><BR>
&nbsp;
<BR>
Right. Sorry, I missed the point you mentioned above, that the patch to
<BR>
sanei_scsi.c is not in every case necessary.
<BR>
&nbsp;
<BR>
<EM>&gt;I suppose that the USB scanner will work OK with any SCSI buffer size,
</EM><BR>
<EM>&gt;though this is untested and the blighters at microtek can't be
</EM><BR>
<EM>&gt;bothered to give us the docs, and Oliver can't get it to work at all
</EM><BR>
<EM>&gt;on his setup, so whether they work on any system except mine is open
</EM><BR>
<EM>&gt;to question. ;-)
</EM><BR>
&nbsp;
<BR>
Yes and no. As Oliver wrote in his response to your mail, the USB/SCSI
<BR>
converter or driver (or however it is called) limits the buffer size to
<BR>
32 kB, because it does not support scatter/gather. We can live with this
<BR>
limit, but since the Microtek backend uses sanei_scsi_open, users must
<BR>
either set SANE_SG_BUFFERSIZE, or if they install Sane from the sources,
<BR>
they must use the configure option --enable-scsibuffersize in order to
<BR>
get a &quot;SCSI via USB&quot; scanner running.
<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;
<BR>
What I tried to point out is, that this inconvenience of a &quot;special
<BR>
SCSI/USB configuration&quot; (what a big word for an environment variable...)
<BR>
can be avoided, if a backend uses sanei_scsi_open_extended instead of
<BR>
sanei_scsi_open. Using the latter function, a backend can easily adapt
<BR>
to any available buffer size. This way, things would be a little bit
<BR>
easier for a Linux newbie to get his/her SCSI-over-USB scanner working.
<BR>
&nbsp;
<BR>
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:%20Correct%20Network%20Scanner%20Syntax?%20(a%20question)&In-Reply-To=&lt;3931834E.D1FB5313@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0198.html">Robert Schwebel: "Re: Announcing new driver"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0196.html">Oliver Neukum: "Announcing new driver"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0192.html">John Fremlin: "Re: Correct Network Scanner Syntax? (a question)"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0205.html">John Fremlin: "Re: Correct Network Scanner Syntax? (a question)"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Petter Reinholdtsen: "Re: Correct Network Scanner Syntax?"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#197">[ date ]</A>
<A HREF="index.html#197">[ thread ]</A>
<A HREF="subject.html#197">[ subject ]</A>
<A HREF="author.html#197">[ 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>Sun May 28 2000 - 13:56:50 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>