sane-project-website/old-archive/1997-05/0099.html

79 wiersze
4.0 KiB
HTML

<!-- received="Mon Jun 16 15:17:10 1997 MST" -->
<!-- sent="Mon, 16 Jun 1997 15:02:44 -0700" -->
<!-- name="David Mosberger-Tang" -->
<!-- email="davidm@azstarnet.com" -->
<!-- subject="Re: Sane on NeXT/OpenStep - a plea for help" -->
<!-- id="199706162202.PAA00224@panda.mosberger" -->
<!-- inreplyto="Pine.SUN.3.91.970616151931.1696D-100000@moray" -->
<title>sane-devel: Re: Sane on NeXT/OpenStep - a plea for help</title>
<h1>Re: Sane on NeXT/OpenStep - a plea for help</h1>
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
<i>Mon, 16 Jun 1997 15:02:44 -0700</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#99">[ date ]</a><a href="index.html#99">[ thread ]</a><a href="subject.html#99">[ subject ]</a><a href="author.html#99">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0100.html">Guenther Beulshausen: "Can't compile sane-0.6 on Linux"</a>
<li> <b>Previous message:</b> <a href="0098.html">Raymond A. Ingles: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<li> <b>In reply to:</b> <a href="0098.html">Raymond A. Ingles: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt;&gt;&gt;&gt;&gt; On Mon, 16 Jun 1997 15:49:37 -0400 (EDT), " Raymond A. Ingles" &lt;<a href="mailto:inglesra@frc.com">inglesra@frc.com</a>&gt; said:</i><br>
<p>
Raymond&gt; On Sun, 15 Jun 1997, Neville Wilford wrote:<br>
<p>
<i> &gt;&gt; My scanner is an OEM version Mustek 600 II CD single-pass. After </i><br>
<i> &gt;&gt; some difficulty it can now be persuaded to work with either Win'95 or </i><br>
<i> &gt;&gt; NT using an Adaptec 2940UW or a Symbios/NCR 810 card. NeXTStep </i><br>
<i> &gt;&gt; support would be far preferable.</i><br>
<i> &gt;&gt; </i><br>
<i> &gt;&gt; The OEM feature means that its SCSI-ID string is "SCANNER" rather </i><br>
<i> &gt;&gt; than "MUSTEK".</i><br>
<p>
Raymond&gt; I think I've got one of those. It was labeled as a<br>
Raymond&gt; "TwainScan II SP".<br>
<p>
Raymond&gt; Doing 'cat /proc/scsi/scsi' gives:<br>
Raymond&gt; -----------------<br>
Raymond&gt; Host: scsi0 Channel: 00 Id: 06 Lun: 00<br>
Raymond&gt; Vendor: SCANNER Model: Rev: 2.01<br>
Raymond&gt; Type: Scanner ANSI SCSI revision: 01 CCS<br>
Raymond&gt; -----------------<br>
<p>
Hacking around this problem is not too hard ASSUMING there is only one<br>
scanner model exists and that no other scanner vendor will be crazy<br>
enough to call themselves "SCANNER".<br>
<p>
If you want to fix this, just look in backend/mustek.c around line<br>
294. That's where the backend checks the vendor name. You'll also<br>
have to make up an appropriate `model_name' (e.g., set it to<br>
"MFC-6000CZ" if it is a 600 dpi scanner).<br>
<p>
There is a chance that the scanner has the vendor/model name stored in<br>
a strange place. Normally, the vendor string starts at byte 8 of the<br>
inquiry result and the model string at byte 16. There seem to be some<br>
Mustek scanners that store the vendor string at byte 36 and the model<br>
at byte 44. The backend already checks for both cases, but you may<br>
want to look at the inquiry result with gdb at the off-chance that a<br>
model string might be hiding somewhere in that inquiry result.<br>
<p>
--david<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0100.html">Guenther Beulshausen: "Can't compile sane-0.6 on Linux"</a>
<li> <b>Previous message:</b> <a href="0098.html">Raymond A. Ingles: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<li> <b>In reply to:</b> <a href="0098.html">Raymond A. Ingles: "Re: Sane on NeXT/OpenStep - a plea for help"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>