sane-project-website/old-archive/1998-01/0196.html

95 wiersze
4.5 KiB
HTML

<!-- received="Tue Jan 27 15:40:15 1998 PST" -->
<!-- sent="Wed, 28 Jan 1998 00:41:13 +0100 (MET)" -->
<!-- name="Martin Huber" -->
<!-- email="hu@garfield.m.isar.de" -->
<!-- subject="Re: direct solaris support" -->
<!-- id="199801272341.AAA03268@garfield.m.isar.de" -->
<!-- inreplyto="direct solaris support" -->
<title>sane-devel: Re: direct solaris support</title>
<h1>Re: direct solaris support</h1>
<b>Martin Huber</b> (<a href="mailto:hu@garfield.m.isar.de"><i>hu@garfield.m.isar.de</i></a>)<br>
<i>Wed, 28 Jan 1998 00:41:13 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#196">[ date ]</a><a href="index.html#196">[ thread ]</a><a href="subject.html#196">[ subject ]</a><a href="author.html#196">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0197.html">Ralph Angenendt: "Documentation: Scanarea"</a>
<li> <b>Previous message:</b> <a href="0195.html">Matthias Kleinschmidt: "Re: Astra 6X0S-patch available"</a>
<li> <b>Maybe in reply to:</b> <a href="0169.html">D. Cameron Mauch: "direct solaris support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; </i><br>
<i>&gt; Hello. Are you guys planning to add direct solaris support? I have</i><br>
<i>&gt; tried using that generic scsi module (scg) but I can not get it to do</i><br>
<i>&gt; anything. Thanks.</i><br>
<i>&gt; </i><br>
<p>
Sane-Solaris is known to work with HP scanners (perfectly) and umax<br>
(almost perfect: works, writing some annoying messages).<br>
<p>
Others are not known, except of Microtek:<br>
I borrowed a Microtek ScanMaker III and tested it with the<br>
sg driver (this is not free, but I have the source-code).<br>
I found, that this driver takes the user-scsi-structure it gets<br>
from sanei_scsi_cmd, puts it's contents, together with other things,<br>
into a struct scsi_pkt and gives it to the kernel routine scsi_transport().<br>
This works fine for the commands defined in the SCSI spec.<br>
But there are some reserved commands and some vendor-specific commands,<br>
which are used by some scanners.<br>
<p>
E.g. microtek uses the command 0x19 in the function mode_sense_1().<br>
This command is vendor-specific for all devices except of magnetic tapes,<br>
where it is ERASE, and there the fifth word of the cdb, where microtek<br>
has the buffer size, is RESERVED.<br>
Evidently the scanner behaves different upon this command than a tape,<br>
and other than scsi_transport() expects. So it ignores this command, and<br>
returns in pkt_reason<br>
CMD_UNX_BUS_FREE = Unexpected Bus Free Phase occurred.<br>
<p>
The scg driver logs 'handle incomplete: 1 ....' to the console upon this<br>
command, so I assume, it does the same.<br>
<p>
Other than for umax, where such a command could be removed, it seems to be<br>
needed, though it transfers only 30 zeros to the scanner. If it is omittet,<br>
the scanner never returns READY to a test_unit_ready command. Perhaps<br>
Matthew has an idea? What does this command do, I have no description?<br>
<p>
For a general solution, for all type of scanners, I fear, the solaris<br>
kernel (scsi_transport) has to be changed.<br>
<p>
The other problem are the annoing error messages seen by umax.<br>
Joergs scg driver comes from a CD-Writer, and it write a warning message,<br>
if a device does not respond ready to a test_unit_ready command.<br>
Now we "abuse" it for a scanner, which is not ready while it is scanning.<br>
These messages can be removed by changing scg, or reduced by asking the<br>
scanning canner test_unit_ready less frequently (done in umax).<br>
<p>
I think, we have to look at every backend to get it working.<br>
I don't know how a 'direct solaris support' (without using the<br>
scsi_transport kernel function) should look like.<br>
Unfortunately, my scanner is HP and this is the simplest one (no strange<br>
commands), so it is hard for me to debug.<br>
<p>
--martin<br>
<p>
<p>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0197.html">Ralph Angenendt: "Documentation: Scanarea"</a>
<li> <b>Previous message:</b> <a href="0195.html">Matthias Kleinschmidt: "Re: Astra 6X0S-patch available"</a>
<li> <b>Maybe in reply to:</b> <a href="0169.html">D. Cameron Mauch: "direct solaris support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>