kopia lustrzana https://gitlab.com/sane-project/website
96 wiersze
4.4 KiB
HTML
96 wiersze
4.4 KiB
HTML
<!-- received="Thu Dec 2 14:45:55 1999 PST" -->
|
|
<!-- sent="Thu, 2 Dec 1999 23:54:02 +0100" -->
|
|
<!-- name="Manuel Panea" -->
|
|
<!-- email="mpd@rzg.mpg.de" -->
|
|
<!-- subject="Re: Problem with SANE and SCSI scanner" -->
|
|
<!-- id="" -->
|
|
<!-- inreplyto="3845F741.71969678@interlog.com" -->
|
|
<title>sane-devel: Re: Problem with SANE and SCSI scanner</title>
|
|
<h1>Re: Problem with SANE and SCSI scanner</h1>
|
|
<b>Manuel Panea</b> (<a href="mailto:mpd@rzg.mpg.de"><i>mpd@rzg.mpg.de</i></a>)<br>
|
|
<i>Thu, 2 Dec 1999 23:54:02 +0100</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#22">[ date ]</a><a href="index.html#22">[ thread ]</a><a href="subject.html#22">[ subject ]</a><a href="author.html#22">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0023.html">Herman Roozenbeek: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<li> <b>Previous message:</b> <a href="0021.html">Manuel Panea: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
-----BEGIN PGP SIGNED MESSAGE-----<br>
|
|
<p>
|
|
<p>
|
|
<p>
|
|
On Wed, 1 Dec 1999, Douglas Gilbert wrote:<br>
|
|
<p>
|
|
<i>> Laura DeWitt wrote:</i><br>
|
|
<i>></i><br>
|
|
<i>> > write(2, "[canon] attach: sending GET SCAN"..., 66[canon] attach: sending GET SCAN MODE for scan control conditions</i><br>
|
|
<i>> > ) = 66</i><br>
|
|
<i>> > write(2, "[canon] get scan mode: cmd[4]=\'0"..., 37[canon] get scan mode: cmd[4]='0x14'</i><br>
|
|
<i>> > ) = 37</i><br>
|
|
<i>> > rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0</i><br>
|
|
<i>> > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0</i><br>
|
|
<i>> > rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0</i><br>
|
|
<i>> > write(4, "*\0\0\0n\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 42) = -1 EIO (Input/output error)</i><br>
|
|
<i>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</i><br>
|
|
<i>> </i><br>
|
|
<i>> The failure (EIO) on the sg device handle (4 in this case) </i><br>
|
|
<i>> indicates the buffer passed to sg's write() was too small. </i><br>
|
|
<i>> A length of 42 implies a maximum SCSI command length of 6 </i><br>
|
|
<i>> bytes (because the accompanying sg_header structure is 36 </i><br>
|
|
<i>> bytes long). Digging around the canon backend code in</i><br>
|
|
<i>> sane-1.0.1, it seems to be sending an opcode of 0xd5 </i><br>
|
|
<i>> for "GET SCAN MODE". Such an opcode can only be 10 bytes </i><br>
|
|
<i>> long (12 bytes if another flag was set but I can see above </i><br>
|
|
<i>> it is not).</i><br>
|
|
<i>> </i><br>
|
|
<i>> Doug Gilbert</i><br>
|
|
<i>> Linux sg maintainer</i><br>
|
|
<p>
|
|
Aha! So *you* are the sg maintainer. If you have read my last answer to<br>
|
|
Laura, you know that you are right: sg and sane get confused about the<br>
|
|
SCSI command sizes.<br>
|
|
<p>
|
|
Now why is this so? I was (fortunately) told about this problem by a canon<br>
|
|
backend user who described it as a bug in sg, but now you talk as if it<br>
|
|
were sane's fault. So is it sg's fault or is it sane's fault? (I don't<br>
|
|
think it can be the backend's fault, all I do is try to send the scanner a<br>
|
|
perfectly valid SCSI command.) What should be changed to not have to tell<br>
|
|
the users to "go patch /usr/src/linux/drivers/scsi/sg.c"?<br>
|
|
<p>
|
|
<p>
|
|
Manuel Panea Tel. +49 89 3299 1133<br>
|
|
Rechenzentrum Garching Fax +49 89 3299 1301<br>
|
|
Postfach 1533 E-mail: <a href="mailto:mpd@rzg.mpg.de">mpd@rzg.mpg.de</a><br>
|
|
85740 Garching Germany <a href="http://www.rzg.mpg.de/~mpd">http://www.rzg.mpg.de/~mpd</a><br>
|
|
<p>
|
|
-----BEGIN PGP SIGNATURE-----<br>
|
|
Version: PGPfreeware 5.0i for non-commercial use<br>
|
|
Charset: noconv<br>
|
|
<p>
|
|
iQCVAwUBOEbqgInxRMteJ3RRAQE1AAP/SR7FUhvzyk5jL/QazIaH38z2T1NtD54i<br>
|
|
mIv7iDQGKXsA8CCgIqWAbj5TcX9ApfUReJUrPiMgfDQ9nZSw9X1g0yovZsQAUl2D<br>
|
|
0mexqMkuzFr6IhWsCHqtIyFfHIAcxDGOOlslhCZdl662xtL5o/LLcxlcVU5Jxy39<br>
|
|
EX1vNMCbUVc=<br>
|
|
=UgtY<br>
|
|
-----END PGP SIGNATURE-----<br>
|
|
<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="0023.html">Herman Roozenbeek: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<li> <b>Previous message:</b> <a href="0021.html">Manuel Panea: "Re: Problem with SANE and SCSI scanner"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|