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

206 wiersze
8.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: [snapscan] Vuego 620S and ACARD scsi card</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: [snapscan] Vuego 620S and ACARD scsi card">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [snapscan] Vuego 620S and ACARD scsi card</H1>
<!-- received="Fri Dec 15 04:34:23 2000" -->
<!-- isoreceived="20001215123423" -->
<!-- sent="Fri, 15 Dec 2000 14:48:54 +0100" -->
<!-- isosent="20001215134854" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: [snapscan] Vuego 620S and ACARD scsi card" -->
<!-- id="3A3A2146.45D4F669@satzbau-gmbh.de" -->
<!-- inreplyto="3A4DDE14@operamail.com" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20[snapscan]%20Vuego%20620S%20and%20ACARD%20scsi%20card&In-Reply-To=&lt;3A3A2146.45D4F669@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Dec 15 2000 - 05:48:54 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0168.html">Tobias Nijweide: "Re: HP5300C mini HowTo"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0166.html">Remco van 't Veer: "Re: HP5300C mini HowTo"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0165.html">Ben Millhouse: "[snapscan] Vuego 620S and ACARD scsi card"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Ben Millhouse: "RE: [snapscan] Vuego 620S and ACARD scsi card"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#167">[ date ]</A>
<A HREF="index.html#167">[ thread ]</A>
<A HREF="subject.html#167">[ subject ]</A>
<A HREF="author.html#167">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Ben Millhouse wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Hello all,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I'm at a bit of a loss as to what to do with my Vuego 620S scanner that is
</EM><BR>
<EM>&gt; running off the bundled ACARD scsi card on my linuux box.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; After trolling through the mailing list archives, I managed to get sane to
</EM><BR>
<EM>&gt; recognise my scanner with &quot;scanimage -L&quot; but if I try to do anything
</EM><BR>
<EM>&gt; more complex it cacks itself with a floating point exception.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The output of &quot;scanimage -T&quot; with SANE_DEBUG_SNAPSCAN set to 255
</EM><BR>
<EM>&gt; can be found at <A HREF="http://www.tygger.net/~wico/snapscan/debug.txt">http://www.tygger.net/~wico/snapscan/debug.txt</A>
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Here's the specifics of my system:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Linux kernel 2.0.37
</EM><BR>
<EM>&gt; sg driver 2.1.39
</EM><BR>
<EM>&gt; sane 1.0.3
</EM><BR>
<EM>&gt; snapscan backend 11282000
</EM><BR>
<EM>&gt; Acer Vuego Scan Brisa 620S
</EM><BR>
<EM>&gt; ACARD AEC-6710D
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Anybody have a clue what's going on?
</EM><BR>
<P>I guess that you are using the atp870u driver for the Acard adapter.
<BR>
This driver clips the data returned for the INQUIRY command to 36 bytes,
<BR>
but the Snapscan backend needs more data from this command to work
<BR>
properly. Stephen Carr got a similar problem with the atp870u driver and
<BR>
a Umax scanner; he could fix it by patching the atp870u driver.
<BR>
<P>The function send_s870 in atp870u.c (copied from lk 2.2.13) looks at
<BR>
line 507 like this:
<BR>
<P>oktosend:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(&amp;ata_cdbu[h][0], &amp;workrequ-&gt;cmnd[0], workrequ-&gt;cmd_len);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ata_cdbu[h][0] == 0x25) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (workrequ-&gt;request_bufflen &gt; 8) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;workrequ-&gt;request_bufflen = 0x08;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ata_cdbu[h][0] == 0x12) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (workrequ-&gt;request_bufflen &gt; 0x24) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;workrequ-&gt;request_bufflen = 0x24;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ata_cdbu[h][4] = 0x24;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
<P>(Other versions of the driver use the macro INQUIRY instead of the
<BR>
number 0x12)
<BR>
<P>Commenting out the &quot;if (ata_cdbu[h][0] == 0x12)&quot; part should fix the
<BR>
problem:
<BR>
<P>oktosend:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;memcpy(&amp;ata_cdbu[h][0], &amp;workrequ-&gt;cmnd[0], workrequ-&gt;cmd_len);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ata_cdbu[h][0] == 0x25) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (workrequ-&gt;request_bufflen &gt; 8) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;workrequ-&gt;request_bufflen = 0x08;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
/*
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (ata_cdbu[h][0] == 0x12) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (workrequ-&gt;request_bufflen &gt; 0x24) {
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;workrequ-&gt;request_bufflen = 0x24;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ata_cdbu[h][4] = 0x24;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
*/
<BR>
<P>I don't know, why there is this limit to 36 bytes for the INQUIRY
<BR>
command and so I cannot guarantee that this patch does not introduce
<BR>
another error.
<BR>
<P>Abel
<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:%20[snapscan]%20Vuego%20620S%20and%20ACARD%20scsi%20card&In-Reply-To=&lt;3A3A2146.45D4F669@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0168.html">Tobias Nijweide: "Re: HP5300C mini HowTo"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0166.html">Remco van 't Veer: "Re: HP5300C mini HowTo"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0165.html">Ben Millhouse: "[snapscan] Vuego 620S and ACARD scsi card"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Ben Millhouse: "RE: [snapscan] Vuego 620S and ACARD scsi card"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#167">[ date ]</A>
<A HREF="index.html#167">[ thread ]</A>
<A HREF="subject.html#167">[ subject ]</A>
<A HREF="author.html#167">[ 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>Fri Dec 15 2000 - 04:36:44 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>