kopia lustrzana https://gitlab.com/sane-project/website
63 wiersze
3.0 KiB
HTML
63 wiersze
3.0 KiB
HTML
<!-- received="Fri Dec 3 03:31:07 1999 PST" -->
|
||
<!-- sent="Fri, 03 Dec 1999 12:34:53 +0100" -->
|
||
<!-- name="abel deuring" -->
|
||
<!-- email="a.deuring@satzbau-gmbh.de" -->
|
||
<!-- subject="Re: Problem with SANE and SCSI scanner" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="Problem with SANE and SCSI scanner" -->
|
||
<title>sane-devel: Re: Problem with SANE and SCSI scanner</title>
|
||
<h1>Re: Problem with SANE and SCSI scanner</h1>
|
||
<b>abel deuring</b> (<a href="mailto:a.deuring@satzbau-gmbh.de"><i>a.deuring@satzbau-gmbh.de</i></a>)<br>
|
||
<i>Fri, 03 Dec 1999 12:34:53 +0100</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#31">[ date ]</a><a href="index.html#31">[ thread ]</a><a href="subject.html#31">[ subject ]</a><a href="author.html#31">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0032.html">Michael Sweet: "Re: Cross platform GUI toolkit"</a>
|
||
<li> <b>Previous message:</b> <a href="0030.html">Klaus Espenlaub: "Re: SANE Net backend suggestion..."</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
Manuel Panea wrote:<br>
|
||
<p>
|
||
<i>> Now for the backend problem at hand: I could of course do those sg ioctl's</i><br>
|
||
<i>> in the backend, but that should rather be done by sane, not by the</i><br>
|
||
<i>> backends. Do you perhaps know whether there are any development plans for</i><br>
|
||
<i>> sane to include support for such ioctl's?</i><br>
|
||
<p>
|
||
If you need a quick fix, you might try Douglas's SG driver version 3<br>
|
||
(<a href="http://www.torque.net/sg">http://www.torque.net/sg</a>) in combination with the modifications to<br>
|
||
sanei_scsi.c which I posted some weeks ago on this mailing list. While<br>
|
||
these modifiactions were mainly intended to benefit from other<br>
|
||
improvements in the SG driver (it is possible to omit a buffer in<br>
|
||
sanei_scsi.c for the data read from the scanner), they should also fix<br>
|
||
the problem, that the SG driver must guess the length of SCSI commands.<br>
|
||
(Douglas, please correct me if I am wrong, but I think that with the new<br>
|
||
header structure, the SG driver takes the length of the SCSI command<br>
|
||
from sg_io_hdr.cmd_len.)<br>
|
||
<p>
|
||
On the other hand, I am not that sure about the origin of the problem<br>
|
||
with the Canon scanner: get_scan_mode in canon_scsi.c uses a command<br>
|
||
buffer of length 10 (at least the version included in sane-1.0.1). So<br>
|
||
the command length see by the SG driver should be anyway 10 bytes. But<br>
|
||
then again, there is a comment line in this function "/* static u_char<br>
|
||
cmd[6] */"... <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">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0032.html">Michael Sweet: "Re: Cross platform GUI toolkit"</a>
|
||
<li> <b>Previous message:</b> <a href="0030.html">Klaus Espenlaub: "Re: SANE Net backend suggestion..."</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|