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

179 wiersze
6.8 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="Jens Petersohn (jkp@mccoy.penguinpowered.com)">
<META NAME="Subject" CONTENT="Re: HP backend problem...">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: HP backend problem...</H1>
<!-- received="Thu Aug 24 06:17:10 2000" -->
<!-- isoreceived="20000824131710" -->
<!-- sent="Thu, 24 Aug 2000 08:26:32 -0500 (CDT)" -->
<!-- isosent="20000824132632" -->
<!-- name="Jens Petersohn" -->
<!-- email="jkp@mccoy.penguinpowered.com" -->
<!-- subject="Re: HP backend problem..." -->
<!-- id="200008241326.IAA16823@scotty.petersohn.net" -->
<!-- inreplyto="39A491BA.4D4E21AD@interlog.com" -->
<STRONG>From:</STRONG> Jens Petersohn (<A HREF="mailto:jkp@mccoy.penguinpowered.com?Subject=Re:%20HP%20backend%20problem...&In-Reply-To=&lt;200008241326.IAA16823@scotty.petersohn.net&gt;"><EM>jkp@mccoy.penguinpowered.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Aug 24 2000 - 06:26:32 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0216.html">Jochen Eisinger: "Re: Scanner Aldi Lifetec LT 9891 on parallel port and Linux ?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Douglas Gilbert: "Re: HP backend problem..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#217">[ date ]</A>
<A HREF="index.html#217">[ thread ]</A>
<A HREF="subject.html#217">[ subject ]</A>
<A HREF="author.html#217">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt;
</EM><BR>
<EM>&gt; Well it was a miracle it worked in the first place!
</EM><BR>
<EM>&gt; 1) Linux thinks it is the only initiator on a SCSI bus
</EM><BR>
<EM>&gt; 2) W95 + W98 most likely make the same assumption
</EM><BR>
<EM>&gt; 3) The SCSI scanners I've played with have particularly
</EM><BR>
<EM>&gt; bad target implementations prone to lock up at the
</EM><BR>
<EM>&gt; first sign of an irregularity.
</EM><BR>
<P>Yes and no (to 1 and 2). Nothing in SCSI necessarily precludes
<BR>
you from having several initiators on the same bus, provided
<BR>
that that the ID and termination rules are obeyed. Wether the
<BR>
firmware on the target can handle this situation is an entirely
<BR>
different issue. I do agree though that it's a miracle that the
<BR>
target's firmware (the HP 5p) didn't crash when it received
<BR>
an inquiry from initiator A with the scanning transaction in
<BR>
progress to initiator B. Clearly though, it does have some
<BR>
issues (if you want to see a corrupt image, check out
<BR>
<A HREF="http://mccoy.penguinpowered.com/scanner">http://mccoy.penguinpowered.com/scanner</A>). It does however
<BR>
crash when two &quot;Scan Window&quot; commands arrived from different
<BR>
initiators.
<BR>
I've used the sharing trick on many systems over the years.
<BR>
I've shared tape drives, disk drives and other (like scanners)
<BR>
perepherials. Tape drives tend to behave like the scanner,
<BR>
that is only one of the connected systems can use it a time.
<BR>
Disk are usually more robust and treat the command/reply as
<BR>
a queue, storing the initiator ID along with the request
<BR>
and sending the reply in a atomic fashion to the correct
<BR>
initiator (but, I would not swear that is is true for all
<BR>
disk drives. In my experience this did work on Seagate SCSIs).
<BR>
There are other issues with disk drives, mostly having to
<BR>
do with filesystem metadata consistency problems, but
<BR>
you can generally mount different partitions of the same
<BR>
drive to different hosts. Note that storage area networks
<BR>
are really the same thing, with software to control the
<BR>
state of the metadata explicitely between hosts.
<BR>
You can also mount the same partition several times to different
<BR>
hosts in read-only mode.
<BR>
SCSI has even been used as a high bandwidth &quot;network&quot; of sorts
<BR>
between several machines (a topic that reappears on LKM
<BR>
occasionally), but obviously that requires special software
<BR>
to operate the controller in target mode.
<BR>
<P><EM>&gt; Interesting that you tracked down the problem. To my knowledge
</EM><BR>
<EM>&gt; the SANE program doesn't poll the scanner. It is possible
</EM><BR>
<EM>&gt; that a polling strategy could be used to detect a user
</EM><BR>
<EM>&gt; pressing the scan button on those scanners thus equipped.
</EM><BR>
<P>No, SANE doesn't. There are utilities though (daemons) that will
<BR>
monitor the &quot;button&quot; and launch SANE when a &quot;push&quot; is detected.
<BR>
I think one is called &quot;hpbutton&quot;, but I'm not 100% sure on that.
<BR>
<P><P><EM>&gt; Doug Gilbert
</EM><BR>
<EM>&gt;
</EM><BR>
<P>--Jens
<BR>
<P><PRE>
--
&quot;We are Microsoft. UNIX is irrelevant. OS/2 is irrelevant. Openness
is futile. Prepare to be assimilated.&quot;
-- <A HREF="mailto:prs@turing.org?Subject=Re:%20HP%20backend%20problem...&In-Reply-To=&lt;200008241326.IAA16823@scotty.petersohn.net&gt;">prs@turing.org</A>
-- (quoted by Eric Berggren)
<P>--
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;200008241326.IAA16823@scotty.petersohn.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0216.html">Jochen Eisinger: "Re: Scanner Aldi Lifetec LT 9891 on parallel port and Linux ?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0212.html">Douglas Gilbert: "Re: HP backend problem..."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0218.html">abel deuring: "Re: HP backend problem..."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#217">[ date ]</A>
<A HREF="index.html#217">[ thread ]</A>
<A HREF="subject.html#217">[ subject ]</A>
<A HREF="author.html#217">[ 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>Thu Aug 24 2000 - 06:20:48 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>