sane-project-website/old-archive/2000-01/0230.html

163 wiersze
6.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: Epson 1200S: &quot;[epson] ident failed&quot;</TITLE>
<META NAME="Author" CONTENT="Dave Hill (dave@minnie.demon.co.uk)">
<META NAME="Subject" CONTENT="Re: Epson 1200S: &quot;[epson] ident failed&quot;">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Epson 1200S: &quot;[epson] ident failed&quot;</H1>
<!-- received="Tue Jan 25 10:35:11 2000" -->
<!-- isoreceived="20000125183511" -->
<!-- sent="Tue, 25 Jan 2000 18:27:50 +0000" -->
<!-- isosent="20000125182750" -->
<!-- name="Dave Hill" -->
<!-- email="dave@minnie.demon.co.uk" -->
<!-- subject="Re: Epson 1200S: &quot;[epson] ident failed&quot;" -->
<!-- id="388DEB26.17569F02@minnie.demon.co.uk" -->
<!-- inreplyto="20000124210851.C10558@khk.net" -->
<STRONG>From:</STRONG> Dave Hill (<A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Epson%201200S:%20&quot;[epson]%20ident%20failed&quot;&In-Reply-To=&lt;388DEB26.17569F02@minnie.demon.co.uk&gt;"><EM>dave@minnie.demon.co.uk</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Jan 25 2000 - 10:27:50 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0229.html">T. Tilton: "Relysis NB9624"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#230">[ date ]</A>
<A HREF="index.html#230">[ thread ]</A>
<A HREF="subject.html#230">[ subject ]</A>
<A HREF="author.html#230">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Karl Heinz Kremer wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; On Mon, Jan 24, 2000 at 09:43:39AM +0000, John Vickers wrote:
</EM><BR>
<EM>&gt; &gt; If I then do:
</EM><BR>
<EM>&gt; &gt; /usr/local/bin/scanimage -v --device epson:/dev/scanner -T
</EM><BR>
<EM>&gt; &gt; that also PASSes (scanner whirrs, etc), but only the first time I try it.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; ... that's a known problem. You can only do this once and then you have to
</EM><BR>
<EM>&gt; reset the scanner. I don't have an idea yet why, but this is on my list
</EM><BR>
<EM>&gt; of things to work out. It's no real problem, because it only happens
</EM><BR>
<EM>&gt; when you use the -T switch, the &quot;normal&quot; scanning works just fine (at
</EM><BR>
<EM>&gt; least for me).
</EM><BR>
<EM>&gt;
</EM><BR>
<P>There are two problems here.
<BR>
<P>One is that scanimage -T somehow leaves the scanner in a state
<BR>
that it will not respond to the &quot;inquiry&quot; command. I noticed
<BR>
this with my GT7000 but everything else worked OK.
<BR>
<P>The second problem is the &quot;segmentation fault&quot;. You will find
<BR>
that this will also happen if your scanner fails to identify
<BR>
itself for any reason (including being powered off 8-)).
<BR>
<P>The fix for this is as follows. Sorry I haven't downloaded the
<BR>
latest snapshot yet, but the attached diff is how I fixed
<BR>
Christian's 0.1.3 version.
<BR>
<P>The reason for moving the lines is that if the dev_name is
<BR>
filled in, the sane main code assumes that the driver init'ed
<BR>
OK and all fields are valid. By deferring filling in the name
<BR>
until the end, that is the case!!
<BR>
<P>Dave Hill
<BR>
<P><PRE>
--
Dave Hill, Kempston, Bedford UK <A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20Epson%201200S:%20&quot;[epson]%20ident%20failed&quot;&In-Reply-To=&lt;388DEB26.17569F02@minnie.demon.co.uk&gt;">dave@minnie.demon.co.uk</A>
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
<P>
</PRE>
<P>
--- epson-0.1.3/epson.c Sat Oct 2 09:54:13 1999
+++ epson.c Tue Jan 25 18:23:09 2000
@@ -810,9 +810,6 @@
DBG (3, &quot;attach: opening %s\n&quot;, dev_name);
- str = malloc( strlen( dev_name) + 1);
- dummy_dev.sane.name = strcpy( str, dev_name);
-
s-&gt;hw-&gt;last_res = s-&gt;hw-&gt;last_res_preview = 0;
/*
@@ -1181,6 +1178,9 @@
//
*/
+ str = malloc( strlen( dev_name) + 1);
+ dummy_dev.sane.name = strcpy( str, dev_name);
+
myclose( s);
return SANE_STATUS_GOOD;
<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:%20Epson%201200S:%20&quot;[epson]%20ident%20failed&quot;&In-Reply-To=&lt;388DEB26.17569F02@minnie.demon.co.uk&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0229.html">T. Tilton: "Relysis NB9624"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0231.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#230">[ date ]</A>
<A HREF="index.html#230">[ thread ]</A>
<A HREF="subject.html#230">[ subject ]</A>
<A HREF="author.html#230">[ 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>Tue Jan 25 2000 - 10:36:56 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>