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

186 wiersze
7.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: Problem with SCSI Scanner on Irix 6.2</TITLE>
<META NAME="Author" CONTENT="Peter Kirchgessner (peter@kirchgessner.net)">
<META NAME="Subject" CONTENT="Re: Problem with SCSI Scanner on Irix 6.2">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Problem with SCSI Scanner on Irix 6.2</H1>
<!-- received="Mon Jan 17 12:01:33 2000" -->
<!-- isoreceived="20000117200133" -->
<!-- sent="Mon, 17 Jan 2000 21:02:43 +0100" -->
<!-- isosent="20000117200243" -->
<!-- name="Peter Kirchgessner" -->
<!-- email="peter@kirchgessner.net" -->
<!-- subject="Re: Problem with SCSI Scanner on Irix 6.2" -->
<!-- id="38837563.2070AEFD@kirchgessner.net" -->
<!-- inreplyto="200001170928.BAA01937@axel.local" -->
<STRONG>From:</STRONG> Peter Kirchgessner (<A HREF="mailto:peter@kirchgessner.net?Subject=Re:%20Problem%20with%20SCSI%20Scanner%20on%20Irix%206.2&In-Reply-To=&lt;38837563.2070AEFD@kirchgessner.net&gt;"><EM>peter@kirchgessner.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jan 17 2000 - 12:02:43 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0123.html">Peter Kirchgessner: "Re: re-aligning? re-calibrating? an hp scanjet IIc"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0121.html">Oliver Rauch: "Re: language versions"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0119.html">David Paschal: "Re: Problem with SCSI Scanner on Irix 6.2"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0136.html">David Paschal: "Re: HP OfficeJet support (was: Problem with SCSI Scanner on Irix 6.2)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0136.html">David Paschal: "Re: HP OfficeJet support (was: Problem with SCSI Scanner on Irix 6.2)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#122">[ date ]</A>
<A HREF="index.html#122">[ thread ]</A>
<A HREF="subject.html#122">[ subject ]</A>
<A HREF="author.html#122">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hello David,
<BR>
<P><P>David Paschal wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; has someone running a HP Scanjet IIp (or another HP scanner) on Irix 6.2
</EM><BR>
<EM>&gt; &gt; ?
</EM><BR>
<EM>&gt; &gt; There is a problem with such a combination that the scanner is
</EM><BR>
<EM>&gt; &gt; recognized
</EM><BR>
<EM>&gt; &gt; during the SCSI INQUIRE command (vendor, model and firmware is read
</EM><BR>
<EM>&gt; &gt; back),
</EM><BR>
<EM>&gt; &gt; but the scanner does not give any response to other commands.
</EM><BR>
<EM>&gt; &gt; The TEST UNIT READY seems also to work.
</EM><BR>
<EM>&gt; &gt; Has someone encountered a similar problem on Irix and how was it solved
</EM><BR>
<EM>&gt; &gt; ?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hi, Peter. I don't know if this is related, but I had trouble with partial
</EM><BR>
<EM>&gt; SCL responses when I was developing my experimental support for HP OfficeJets
</EM><BR>
<EM>&gt; connected to HP JetDirect print servers (see <A HREF="http://www.ns.net/~paschal/sane">http://www.ns.net/~paschal/sane</A>).
</EM><BR>
<P><P>oops, seems that I have missed a lot on the mailing list. Did not know
<BR>
that these type of scanners even support SCL. I am currently thinking
<BR>
about enhancing the backend for 16bit support (there have been some
<BR>
patches before). Should I include your sources this time ?
<BR>
<P><P><EM>&gt; There were situations where the device apparently split up the SCL response
</EM><BR>
<EM>&gt; into different packets, which caused read() on the client to return only the
</EM><BR>
<EM>&gt; first part.
</EM><BR>
<P>I would be glad if it would return anything.
<BR>
<P><EM>&gt; This caused a great deal of confusion with the upper levels of
</EM><BR>
<EM>&gt; the HP SCL backend, due to both the short initial response, and the remainder
</EM><BR>
<EM>&gt; of the response, which was interpreted as a malformed response to a subsequent
</EM><BR>
<EM>&gt; request. I solved these problems by adding a select-and-read loop to my I/O
</EM><BR>
<EM>&gt; code, with support for different timeouts for the first and subsequent
</EM><BR>
<EM>&gt; select()s. See hp_jdex_read() and hp_jdex_select() in hp-jdex.c.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Perhaps the ScanJetIIp/Irix6.2 problem is caused by a similar sensitivity
</EM><BR>
<EM>&gt; in the HP backend to unusual timeout behaviour in the underlying OS, although
</EM><BR>
<EM>&gt; it's strange that read() would return immediately with no data.
</EM><BR>
<P>We tried to wait 1 second after each write. But it was no success.
<BR>
<P><EM>&gt; I wonder if
</EM><BR>
<EM>&gt; the fd is somehow defaulting to non-blocking mode?
</EM><BR>
<P>Sounds that this is located in the sanei-part. I should have a look at
<BR>
it.
<BR>
The funny thing is, that the SCSI-INQUIRY command seems to work, because
<BR>
the vendor, model and firmware code is recognized. TEST UNIT READY also
<BR>
works (gives no error back). But the scanner does not answer any other
<BR>
command.
<BR>
<P><P><EM>&gt; Just speculating aloud
</EM><BR>
<EM>&gt; here...
</EM><BR>
<EM>&gt;
</EM><BR>
<P>Just listening and thinking about it.
<BR>
<P>Peter
<BR>
<P><EM>&gt; David
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
</EM><BR>
<EM>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problem%20with%20SCSI%20Scanner%20on%20Irix%206.2&In-Reply-To=&lt;38837563.2070AEFD@kirchgessner.net&gt;">majordomo@mostang.com</A>
</EM><BR>
<P><PRE>
--
Peter Kirchgessner
WWW: <A HREF="http://www.kirchgessner.net">http://www.kirchgessner.net</A>
e-mail: <A HREF="mailto:peter@kirchgessner.net?Subject=Re:%20Problem%20with%20SCSI%20Scanner%20on%20Irix%206.2&In-Reply-To=&lt;38837563.2070AEFD@kirchgessner.net&gt;">peter@kirchgessner.net</A>
<P><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:%20Problem%20with%20SCSI%20Scanner%20on%20Irix%206.2&In-Reply-To=&lt;38837563.2070AEFD@kirchgessner.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0123.html">Peter Kirchgessner: "Re: re-aligning? re-calibrating? an hp scanjet IIc"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0121.html">Oliver Rauch: "Re: language versions"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0119.html">David Paschal: "Re: Problem with SCSI Scanner on Irix 6.2"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0136.html">David Paschal: "Re: HP OfficeJet support (was: Problem with SCSI Scanner on Irix 6.2)"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0136.html">David Paschal: "Re: HP OfficeJet support (was: Problem with SCSI Scanner on Irix 6.2)"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#122">[ date ]</A>
<A HREF="index.html#122">[ thread ]</A>
<A HREF="subject.html#122">[ subject ]</A>
<A HREF="author.html#122">[ 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>Mon Jan 17 2000 - 12:07:00 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>