kopia lustrzana https://gitlab.com/sane-project/website
170 wiersze
6.6 KiB
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=<3931834E.D1FB5313@satzbau-gmbh.de>"><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>
|
|
|
|
<BR>
|
|
John Fremlin wrote:
|
|
<BR>
|
|
|
|
<BR>
|
|
<EM>>abel deuring <<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Correct%20Network%20Scanner%20Syntax?%20(a%20question)&In-Reply-To=<3931834E.D1FB5313@satzbau-gmbh.de>">a.deuring@satzbau-gmbh.de</A>> writes:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>> > Hmm. I don't know if Oliver added anything to my version, but here is
|
|
</EM><BR>
|
|
<EM>>> > what I sent him (relative to sane-cvs). The patch to
|
|
</EM><BR>
|
|
<EM>>> > sanei/sanei_scsi.c should not be necessary if sane is setup properly,
|
|
</EM><BR>
|
|
<EM>>> > and is probably incorrect wrt other sane backends.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>[...]
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>> If this patch to sanei_scsi.c works for your setup (Microtek USB
|
|
</EM><BR>
|
|
<EM>>> scanner, if my memory is right), it's fine. But it might break the
|
|
</EM><BR>
|
|
<EM>>> memory management for other backends which use the function
|
|
</EM><BR>
|
|
<EM>>> sanei_scsi_open. Most backends open the device file for scanner access
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>To clarify:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>The patch is *only* included because I couldn't be bothered to read
|
|
</EM><BR>
|
|
<EM>>the docs to find the correct fix for the fact that my kernel sg buffer
|
|
</EM><BR>
|
|
<EM>>size is smaller than that which SANE expects.
|
|
</EM><BR>
|
|
|
|
<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>
|
|
|
|
<BR>
|
|
<EM>>I suppose that the USB scanner will work OK with any SCSI buffer size,
|
|
</EM><BR>
|
|
<EM>>though this is untested and the blighters at microtek can't be
|
|
</EM><BR>
|
|
<EM>>bothered to give us the docs, and Oliver can't get it to work at all
|
|
</EM><BR>
|
|
<EM>>on his setup, so whether they work on any system except mine is open
|
|
</EM><BR>
|
|
<EM>>to question. ;-)
|
|
</EM><BR>
|
|
|
|
<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 "SCSI via USB" scanner running.
|
|
<BR>
|
|
|
|
<BR>
|
|
What I tried to point out is, that this inconvenience of a "special
|
|
<BR>
|
|
SCSI/USB configuration" (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>
|
|
|
|
<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=<3931834E.D1FB5313@satzbau-gmbh.de>">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>
|