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

164 wiersze
6.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: Epson 1200S: &quot;[epson] ident failed&quot;</TITLE>
<META NAME="Author" CONTENT="John Vickers (jvickers@dial.pipex.com)">
<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="Wed Jan 26 01:43:24 2000" -->
<!-- isoreceived="20000126094324" -->
<!-- sent="Wed, 26 Jan 2000 09:47:44 +0000" -->
<!-- isosent="20000126094744" -->
<!-- name="John Vickers" -->
<!-- email="jvickers@dial.pipex.com" -->
<!-- subject="Re: Epson 1200S: &quot;[epson] ident failed&quot;" -->
<!-- id="388EC2C0.E10BF594@dial.pipex.com" -->
<!-- inreplyto="388DEB26.17569F02@minnie.demon.co.uk" -->
<STRONG>From:</STRONG> John Vickers (<A HREF="mailto:jvickers@dial.pipex.com?Subject=Re:%20Epson%201200S:%20&quot;[epson]%20ident%20failed&quot;&In-Reply-To=&lt;388EC2C0.E10BF594@dial.pipex.com&gt;"><EM>jvickers@dial.pipex.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Jan 26 2000 - 01:47:44 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0246.html">Heno Ivanov: "Canon FS2710 ?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0244.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0230.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0244.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#245">[ date ]</A>
<A HREF="index.html#245">[ thread ]</A>
<A HREF="subject.html#245">[ subject ]</A>
<A HREF="author.html#245">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Dave Hill wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Karl Heinz Kremer wrote:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; On Mon, Jan 24, 2000 at 09:43:39AM +0000, John Vickers wrote:
</EM><BR>
<EM>&gt; &gt; &gt; If I then do:
</EM><BR>
<EM>&gt; &gt; &gt; /usr/local/bin/scanimage -v --device epson:/dev/scanner -T
</EM><BR>
<EM>&gt; &gt; &gt; that also PASSes (scanner whirrs, etc), but only the first time I try it.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; ... that's a known problem. You can only do this once and then you have to
</EM><BR>
<EM>&gt; &gt; reset the scanner. I don't have an idea yet why, but this is on my list
</EM><BR>
<EM>&gt; &gt; of things to work out. It's no real problem, because it only happens
</EM><BR>
<EM>&gt; &gt; when you use the -T switch, the &quot;normal&quot; scanning works just fine (at
</EM><BR>
<EM>&gt; &gt; least for me).
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; There are two problems here.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; One is that scanimage -T somehow leaves the scanner in a state
</EM><BR>
<EM>&gt; that it will not respond to the &quot;inquiry&quot; command. I noticed
</EM><BR>
<EM>&gt; this with my GT7000 but everything else worked OK.
</EM><BR>
<P><P>I found that the &quot;initialise&quot; command, issued just before the &quot;inquiry&quot;
<BR>
command also fails, but the status of the &quot;initialise&quot; command isn't
<BR>
tested
<BR>
in the snapshot or in 0.1.7
<BR>
<P>Are we leaving the scanner in a strange state, or the sg SCSI driver ?
<BR>
(I don't know).
<BR>
<P><P>&nbsp;
<BR>
<EM>&gt; The second problem is the &quot;segmentation fault&quot;. You will find
</EM><BR>
<EM>&gt; that this will also happen if your scanner fails to identify
</EM><BR>
<EM>&gt; itself for any reason (including being powered off 8-)).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The fix for this is as follows. Sorry I haven't downloaded the
</EM><BR>
<EM>&gt; latest snapshot yet, but the attached diff is how I fixed
</EM><BR>
<EM>&gt; Christian's 0.1.3 version.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The reason for moving the lines is that if the dev_name is
</EM><BR>
<EM>&gt; filled in, the sane main code assumes that the driver init'ed
</EM><BR>
<EM>&gt; OK and all fields are valid. By deferring filling in the name
</EM><BR>
<EM>&gt; until the end, that is the case!!
</EM><BR>
<P>I don't have the source in front of me, but it looks like the right idea.
<BR>
<P>A SEGV is always a bug. Anyone going to patch the snapshot ?
<BR>
<P>Maybe there should be an error message saying &quot;Is your scanner powered on
<BR>
?&quot;
<BR>
<P>John.
<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:%20Epson%201200S:%20&quot;[epson]%20ident%20failed&quot;&In-Reply-To=&lt;388EC2C0.E10BF594@dial.pipex.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0246.html">Heno Ivanov: "Canon FS2710 ?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0244.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0230.html">Dave Hill: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0248.html">Karl Heinz Kremer: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0244.html">John Vickers: "Re: Epson 1200S: &quot;[epson] ident failed&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#245">[ date ]</A>
<A HREF="index.html#245">[ thread ]</A>
<A HREF="subject.html#245">[ subject ]</A>
<A HREF="author.html#245">[ 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>Wed Jan 26 2000 - 01:44:56 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>