sane-project-website/old-archive/2000-08/0212.html

174 wiersze
6.7 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: HP backend problem...</TITLE>
<META NAME="Author" CONTENT="Douglas Gilbert (dgilbert@interlog.com)">
<META NAME="Subject" CONTENT="Re: HP backend problem...">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: HP backend problem...</H1>
<!-- received="Wed Aug 23 19:54:46 2000" -->
<!-- isoreceived="20000824025446" -->
<!-- sent="Wed, 23 Aug 2000 23:08:42 -0400" -->
<!-- isosent="20000824030842" -->
<!-- name="Douglas Gilbert" -->
<!-- email="dgilbert@interlog.com" -->
<!-- subject="Re: HP backend problem..." -->
<!-- id="39A491BA.4D4E21AD@interlog.com" -->
<!-- inreplyto="200008231905.OAA09061@scotty.petersohn.net" -->
<STRONG>From:</STRONG> Douglas Gilbert (<A HREF="mailto:dgilbert@interlog.com?Subject=Re:%20HP%20backend%20problem...&In-Reply-To=&lt;39A491BA.4D4E21AD@interlog.com&gt;"><EM>dgilbert@interlog.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Aug 23 2000 - 20:08:42 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0213.html">Johan Bengtsson: "Re: lamp control for umax scanners"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0211.html">dicknskp: "Microtek2 and Sane"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0209.html">Jens Petersohn: "Re: HP backend problem..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0217.html">Jens Petersohn: "Re: HP backend problem..."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0217.html">Jens Petersohn: "Re: HP backend problem..."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#212">[ date ]</A>
<A HREF="index.html#212">[ thread ]</A>
<A HREF="subject.html#212">[ subject ]</A>
<A HREF="author.html#212">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Jens Petersohn wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi all,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; problem found (and a tale of woe)!
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; For several years I've shared the SCSI scanner between two computers,
</EM><BR>
<EM>&gt; my wife's and mine. My wife has an Adaptec 152x card set to SCSI ID 7
</EM><BR>
<EM>&gt; and my computer has an Adaptec 2940 (1.23) set to ID 6. The scanner
</EM><BR>
<EM>&gt; is set to ID 2 (there is also a tape drive on ID 5).
</EM><BR>
<EM>&gt; This worked fine, running Win95 on my wife's system and Linux 2.0.36
</EM><BR>
<EM>&gt; on mine (and a really early version of SANE, 0.71 I think).
</EM><BR>
<EM>&gt; Then, sometime last year, I upgraded my system to the 2.2.14 kernel
</EM><BR>
<EM>&gt; plus all the user mode stuff, but didn't get around to installing
</EM><BR>
<EM>&gt; a new version of SANE. When I finally did install SANE, I started to
</EM><BR>
<EM>&gt; have the corrupted image problem that I had documented in an earlier
</EM><BR>
<EM>&gt; email, thinking the problem had to be SANE or the SCSI subsystem in
</EM><BR>
<EM>&gt; the 2.2.14 kernel. Based on this assumption I build kernels with
</EM><BR>
<EM>&gt; all sorts of versions of the sg driver (including the new V3) and
</EM><BR>
<EM>&gt; lots of versions of the AIC driver. Nothing worked. I never suspected
</EM><BR>
<EM>&gt; that the problem might be caused by my wife's computer (which had
</EM><BR>
<EM>&gt; been upgraded to Win98 somewhere along the way).
</EM><BR>
<EM>&gt; Finally, in desperation, I shut off my wife's computer, and voila,
</EM><BR>
<EM>&gt; the problem disappeared. Armed with that information, I quickly
</EM><BR>
<EM>&gt; tracked down the culprit, STIMON.EXE. STIMON.EXE (the WDM StillImage-
</EM><BR>
<EM>&gt; Monitor) queries the scanner every so often (about every 100 ms as
</EM><BR>
<EM>&gt; far as I am able to determine). The scanner firmware however
</EM><BR>
<EM>&gt; seems to be a strickly sequence/task oriented piece of software
</EM><BR>
<EM>&gt; that could not deal with the fact that a query would be arriving
</EM><BR>
<EM>&gt; from a different SCSI ID while a scan was initated and in progress
</EM><BR>
<EM>&gt; from another SCSI ID. Disabling STIMON.EXE solved the problem on
</EM><BR>
<EM>&gt; the Linux side, but disabled the scanning capability on the Windows
</EM><BR>
<EM>&gt; machine. Turns out though, the Control Panel applet for Cameras and
</EM><BR>
<EM>&gt; Scanners on Windows allows you to disable &quot;Device Event Messages&quot;.
</EM><BR>
<EM>&gt; With this disabled, I could run STIMON.EXE again and scan from both
</EM><BR>
<EM>&gt; Windows and Linux without problems.
</EM><BR>
<EM>&gt; Interesting side note: The firmware of the scanner crashes completely
</EM><BR>
<EM>&gt; if two hosts attempt to scan simultaniously. It seems to need a
</EM><BR>
<EM>&gt; power cycle to resurrect it.
</EM><BR>
<P>Well it was a miracle it worked in the first place!
<BR>
&nbsp;&nbsp;1) Linux thinks it is the only initiator on a SCSI bus
<BR>
&nbsp;&nbsp;2) W95 + W98 most likely make the same assumption
<BR>
&nbsp;&nbsp;3) The SCSI scanners I've played with have particularly
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bad target implementations prone to lock up at the
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;first sign of an irregularity
<BR>
<P>Interesting that you tracked down the problem. To my knowledge
<BR>
the SANE program doesn't poll the scanner. It is possible
<BR>
that a polling strategy could be used to detect a user
<BR>
pressing the scan button on those scanners thus equipped.
<BR>
<P>Doug Gilbert
<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:%20HP%20backend%20problem...&In-Reply-To=&lt;39A491BA.4D4E21AD@interlog.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0213.html">Johan Bengtsson: "Re: lamp control for umax scanners"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0211.html">dicknskp: "Microtek2 and Sane"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0209.html">Jens Petersohn: "Re: HP backend problem..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0217.html">Jens Petersohn: "Re: HP backend problem..."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0217.html">Jens Petersohn: "Re: HP backend problem..."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#212">[ date ]</A>
<A HREF="index.html#212">[ thread ]</A>
<A HREF="subject.html#212">[ subject ]</A>
<A HREF="author.html#212">[ 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 Aug 23 2000 - 19:55:33 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>