sane-project-website/old-archive/2000-12/0136.html

268 wiersze
8.9 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: testing BH on copiscan 8080d</TITLE>
<META NAME="Author" CONTENT="Tom Martone (tom@martoneconsulting.com)">
<META NAME="Subject" CONTENT="Re: testing BH on copiscan 8080d">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: testing BH on copiscan 8080d</H1>
<!-- received="Tue Dec 12 19:14:30 2000" -->
<!-- isoreceived="20001213031430" -->
<!-- sent="Tue, 12 Dec 2000 22:31:03 -0500" -->
<!-- isosent="20001213033103" -->
<!-- name="Tom Martone" -->
<!-- email="tom@martoneconsulting.com" -->
<!-- subject="Re: testing BH on copiscan 8080d" -->
<!-- id="3A36ED77.575658BB@martoneconsulting.com" -->
<!-- inreplyto="3A368952.865CD9D0@ABClabs.com" -->
<STRONG>From:</STRONG> Tom Martone (<A HREF="mailto:tom@martoneconsulting.com?Subject=Re:%20testing%20BH%20on%20copiscan%208080d&In-Reply-To=&lt;3A36ED77.575658BB@martoneconsulting.com&gt;"><EM>tom@martoneconsulting.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Dec 12 2000 - 19:31:03 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Eugene Kanter: "Re: sane-pre1-1.0.4 available"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Steve Underwood: "Re: Which scanners REALLY provide 36 bit output? HP?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0129.html">Mark Temple: "testing BH on copiscan 8080d"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#136">[ date ]</A>
<A HREF="index.html#136">[ thread ]</A>
<A HREF="subject.html#136">[ subject ]</A>
<A HREF="author.html#136">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Greetings,
<BR>
<P>You're well on the way, I think. As far as I know no one has tested
<BR>
with an 8080 yet. The code is being a bit too fussy about the strings
<BR>
coming back from the SCSI inquiry command. You can make the following
<BR>
change to the code to get past this.
<BR>
<P>Change this:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ibuf.devtype != 6
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| strncmp ((char *)ibuf.vendor, &quot;B&amp;H SCSI&quot;, 8) != 0
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| strncmp ((char *)ibuf.product, &quot;COPISCAN II&quot;, 11) != 0)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG (1,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;attach: device is not a recognized Bell and Howell scanner\n&quot;);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sanei_scsi_close (fd);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return SANE_STATUS_INVAL;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
<P>to this (and rebuild):
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ibuf.devtype != 6
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| strncmp ((char *)ibuf.vendor, &quot;B&amp;H SCSI&quot;, 8) != 0
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|| strncmp ((char *)ibuf.product, &quot;COPISCAN&quot;, 8) != 0)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG (1,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;attach: device is not a recognized Bell and Howell scanner\n&quot;);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sanei_scsi_close (fd);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return SANE_STATUS_INVAL;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
<P>Happy scanning and let me know how things go.
<BR>
<P>Thanks, Tom
<BR>
<P><P>Mark Temple wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hello SANE Enthusiasts,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I've gotten a Bell &amp; Howell 8080d for one week to test. I am eager to
</EM><BR>
<EM>&gt; get SANE to work with it. I have tested SANE on an HPscanjet
</EM><BR>
<EM>&gt; with the ADF and it worked pretty well. I have connected the B&amp;H
</EM><BR>
<EM>&gt; scanner to my Linux (RedHat 7.0) computer and checked the SCSI port
</EM><BR>
<EM>&gt; with find-scanner. Here is the output:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;B&amp;H SCSI COPISCAN 8080D 0120&quot; at device
</EM><BR>
<EM>&gt; /dev/scanner
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;B&amp;H SCSI COPISCAN 8080D 0120&quot; at device
</EM><BR>
<EM>&gt; /dev/sg0
</EM><BR>
<EM>&gt; find-scanner: found scanner &quot;B&amp;H SCSI COPISCAN 8080D 0120&quot; at device
</EM><BR>
<EM>&gt; /dev/sga
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; so far so good. (I also made sure the /dev... were world accessible)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; When I issue the command: scanimage -L, all I get is a blank stare. :-(
</EM><BR>
<EM>&gt; scanimage doesn't know about this scanner.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Next I issued the commands:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; export SANE_DEBUG_BH=15
</EM><BR>
<EM>&gt; scanimage -d bh:/dev/scanner &gt; bh.lis 2&gt;&amp;1
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Here is the output from the above command:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [sanei_debug] Setting debug level of bh to 15.
</EM><BR>
<EM>&gt; [bh] sane_init called
</EM><BR>
<EM>&gt; [bh] Bell+Howell SANE backend 1.0 build 4 little endian
</EM><BR>
<EM>&gt; [bh] attach called
</EM><BR>
<EM>&gt; [bh] attach: opening /dev/scanner
</EM><BR>
<EM>&gt; [bh] attach: sending TEST_UNIT_READY
</EM><BR>
<EM>&gt; [bh] test_unit_ready called
</EM><BR>
<EM>&gt; [bh] attach: sending INQUIRY (standard data)
</EM><BR>
<EM>&gt; [bh] inquiry called
</EM><BR>
<EM>&gt; [bh] attach: reported devtype='6', vendor='B&amp;H SCSI', product='COPISCAN
</EM><BR>
<EM>&gt; 8080D ', revision='0120'
</EM><BR>
<EM>&gt; [bh] attach: device is not a recognized Bell and Howell scanner
</EM><BR>
<EM>&gt; [bh] sane_open called
</EM><BR>
<EM>&gt; [bh] attach called
</EM><BR>
<EM>&gt; [bh] attach: opening /dev/scanner
</EM><BR>
<EM>&gt; [bh] attach: sending TEST_UNIT_READY
</EM><BR>
<EM>&gt; [bh] test_unit_ready called
</EM><BR>
<EM>&gt; [bh] attach: sending INQUIRY (standard data)
</EM><BR>
<EM>&gt; [bh] inquiry called
</EM><BR>
<EM>&gt; [bh] attach: reported devtype='6', vendor='B&amp;H SCSI', product='COPISCAN
</EM><BR>
<EM>&gt; 8080D ', revision='0120'
</EM><BR>
<EM>&gt; [bh] attach: device is not a recognized Bell and Howell scanner
</EM><BR>
<EM>&gt; scanimage: open of device bh:/dev/scanner failed: Invalid argument
</EM><BR>
<EM>&gt; [bh] sane_exit called
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; SANE is talking to the scanner! :-)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; My question: can I make a change in the bh.conf file to make it
</EM><BR>
<EM>&gt; recognize this scanner? Where do I go from here? Any help will
</EM><BR>
<EM>&gt; be greatly appreciated.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Thanks in advance.
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --------------------------------------------------
</EM><BR>
<EM>&gt; Mark Temple, Information Technology Manager
</EM><BR>
<EM>&gt; ABC Labs, Columbia, Missouri 65202
</EM><BR>
<EM>&gt; voice:573.876.8198 fax:573.443.9033
</EM><BR>
<EM>&gt; --------------------------------------------------
</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:%20testing%20BH%20on%20copiscan%208080d&In-Reply-To=&lt;3A36ED77.575658BB@martoneconsulting.com&gt;">majordomo@mostang.com</A>
</EM><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:%20testing%20BH%20on%20copiscan%208080d&In-Reply-To=&lt;3A36ED77.575658BB@martoneconsulting.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Eugene Kanter: "Re: sane-pre1-1.0.4 available"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Steve Underwood: "Re: Which scanners REALLY provide 36 bit output? HP?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0129.html">Mark Temple: "testing BH on copiscan 8080d"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#136">[ date ]</A>
<A HREF="index.html#136">[ thread ]</A>
<A HREF="subject.html#136">[ subject ]</A>
<A HREF="author.html#136">[ 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 Dec 12 2000 - 20:40:02 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>