sane-project-website/old-archive/1998-05/0057.html

204 wiersze
9.6 KiB
HTML

<!-- received="Wed May 6 03:29:45 1998 PDT" -->
<!-- sent="Wed, 6 May 1998 06:28:08 -0400" -->
<!-- name="Randall Hopper" -->
<!-- email="rhh@ct.picker.com" -->
<!-- subject="Re: Microtek E6 - mode_sense_1 problem" -->
<!-- id="19980506062808.A20512@ct.picker.com" -->
<!-- inreplyto="m0yWtgA-000J3xC@yoo-hoo.ai.mit.edu" -->
<title>sane-devel: Re: Microtek E6 - mode_sense_1 problem</title>
<h1>Re: Microtek E6 - mode_sense_1 problem</h1>
<b>Randall Hopper</b> (<a href="mailto:rhh@ct.picker.com"><i>rhh@ct.picker.com</i></a>)<br>
<i>Wed, 6 May 1998 06:28:08 -0400</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#57">[ date ]</a><a href="index.html#57">[ thread ]</a><a href="subject.html#57">[ subject ]</a><a href="author.html#57">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0058.html">Craig Ruff: "Re: HP Photoscan..."</a>
<li> <b>Previous message:</b> <a href="0056.html">Andreas Tille: "Coolscan not detected"</a>
<li> <b>In reply to:</b> <a href="0050.html">Matto Marjanovic: "Re: Microtek E6 - mode_sense_1 problem"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0071.html">Rogier Wolff: "Re: Microtek E6 - mode_sense_1 problem"</a>
<li> <b>Reply:</b> <a href="0071.html">Rogier Wolff: "Re: Microtek E6 - mode_sense_1 problem"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
--mYCpIKhGyMATD0i+<br>
Content-Type: text/plain; charset=us-ascii<br>
<p>
Matto Marjanovic:<br>
<i> |Short answer: The latest version of the backend (0.7, available from</i><br>
<i> | the backend webpage "<a href="http://www.mir.com/mtek/">http://www.mir.com/mtek/</a>", and sent upstream for</i><br>
<i> | inclusion on SANE-0.73) has MODE_SENSE_1 disabled, so that problem</i><br>
<i> | should disappear for the time being.</i><br>
<p>
Ok.<br>
<p>
One other piece of useful info. Here's what the NCR driver says about that<br>
"extraneous data discarded" message that's being printed when the<br>
MODE_SENSE_1 cmd is issued:<br>
<p>
** The target wants to tranfer too much data<br>
** or in the wrong direction.<br>
** Remember that in extended error.<br>
<p>
(The internal error is XE_EXTRA_DATA.)<br>
<p>
<i> |Long answer: MODE_SENSE_1 used to cause problems for folks using Solaris,</i><br>
<i> | because apparently the Solaris scsi driver insisted that this was some</i><br>
<i> | command reserved for tape drives. Why and how it is causing problems for</i><br>
<i> | FreeBSD I don't know, this is a new complaint. I am curious, however,</i><br>
<i> | to know why (if you feel like poking around even more), and I would very</i><br>
<i> | much appreciate it if you sent me an INQUIRY dump from the Microtek backend</i><br>
<i> | so that I can compare firmware revisions/etc between your E6 and mine.</i><br>
<i> | Is it some scsi driver quirk, or is the scanner complaining? The big Q.</i><br>
<p>
Right, I'm also interested in what's really going on. It's a good excuse<br>
to get in there and dig around anyway. :-)<br>
<p>
I've attached the INQUIRY info to this msg. I'm guessing that this isn't<br>
H/W though because a friend of mine running Redhat 4.1 also on an NCR<br>
SC-200 w/ an E6 purchased at the same time as mine has<br>
SANE_MICROTEK_DEBUG=100 output that matches mine exactly (incl. INQUIRY),<br>
up until the point in sane_start() where mode_sense_1() fails.<br>
<p>
So I would guess this is likely software/driver behavior differences<br>
somewhere (sani_scsi Linux/BSD differences, Linux/BSD NCR driver<br>
differences, ...).<br>
<p>
Since you've worked more with SCSI at a cmd level more than I, I've<br>
attached the last part of the SCSI debug output from the NCR driver when<br>
running "scanimage". There's one fully successful ioctl() there (the one<br>
before the MODE_SENSE_1) as well as the MODE_SENSE_1 ioctl() that fails<br>
right after it. Would appreciate it if you could give it a short 10-sec<br>
glance and see if anything just pops out at you.<br>
<p>
I wonder if the E6's MODE_SENSE_1 reply isn't exactly 36 bytes. (?)<br>
(a shot in the dark :-)<br>
<p>
Thanks,<br>
<p>
Randall<br>
<p>
--mYCpIKhGyMATD0i+<br>
Content-Type: text/plain<br>
Content-Disposition: attachment; filename="SANE-0.72.INQUIRY.txt"<br>
<p>
=== SANE/Microtek backend v0.6 ===<br>
========== Scanner Inquiry Block ========mm<br>
06 31 13 01 5b 16 00 00 20 20 20 20 20 20 20 20 <br>
53 63 61 6e 6e 65 72 20 36 30 30 20 20 20 20 20 <br>
31 2e 39 31 53 43 53 49 20 46 2f 57 56 33 2e 34 <br>
20 43 54 4c 35 33 38 30 03 4f 8c c5 03 ee 66 03 <br>
00 03 01 00 00 03 00 01 0e 0e 01 05 00 00 00 00 <br>
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff <br>
<p>
========== Scanner Inquiry Report ==========<br>
===== Scanner ID...<br>
Device Type Code: 0x06<br>
Model Code: 0x66<br>
Vendor Name: ' ' Model Name: 'Scanner 600 '<br>
Firmware Rev: '1.91'<br>
SCSI F/W version: 3.1 Scanner F/W version: 1.3<br>
Response data format: 0x01<br>
===== Imaging Capabilities...<br>
Modes: Lineart Halftone Gray Color (OnePass) <br>
Resolution Step Sizes: 1% 5% Expanded Resolution Support? yes(but says no)<br>
Supported Bits Per Sample: 4 8 <br>
Max. document size code: 0x03<br>
Max. document size: 8.500000 x 13.000000 inches<br>
Frame units: pixels 1/8"'s <br>
# of built-in halftones: 12 Downloadable patterns? Yes<br>
Data Compression: <br>
Contrast Settings: 14 Exposure Settings: 14<br>
Adjustable Shadow/Highlight? yes Adjustable Midtone? yes<br>
Digital brightness/offset? yes<br>
Gamma Table Size: 256 entries of 1 bytes (max. value: 255)<br>
===== Source Options...<br>
Feed type: flatbed ADF support? yes<br>
Document Feeder Support? yes Feeder Backtracking? yes<br>
Feeder Installed? no Feeder Ready? no <br>
Transparency Adapter Installed? no <br>
Fast Color Prescan? no<br>
Selectable Transfer Format? no<br>
Color Transfer Sequence: line-by-line, non-sequential with headers<br>
Three pass scan support? no<br>
ModeSelect-1 and ModeSense-1 Support? yes<br>
Can Disable Linearization Table? no<br>
Can Disable Start-of-Scan Recalibration? yes<br>
<p>
--mYCpIKhGyMATD0i+<br>
Content-Type: text/plain; charset=us-ascii<br>
Content-Disposition: attachment; filename="SANE-0.72.SCSIDEBUG"<br>
<p>
/kernel: uk0(ncr0:6:0): scsi_do_ioctl(0xc0605101)<br>
/kernel: uk0(ncr0:6:0): user_strategy<br>
/kernel: uk0(ncr0:6:0): scsi_cmd<br>
/kernel: uk0(ncr0:6:0): get_xs<br>
/kernel: uk0(ncr0:6:0): returning<br>
/kernel: xs(0xf06fdf00): flg(0x828)sc_link(0xf06fde80)retr(0x0)timo(0xea60)cmd(0xf06fdf58)len(0x6)data(0xf3e55f9e)len(0x10)res(0x0)err(0x0)bp(0xf0858d00)uk0: command: 16,0,0,0,a,0-[16 bytes]<br>
/kernel: ------------------------------<br>
/kernel: 000: 00 00 00 40 00 00 00 00 00 00 dc 4f bf ef 8e c6 <br>
/kernel: ------------------------------<br>
/kernel: uk0(ncr0:6:0): about to sleep<br>
/kernel: uk0(ncr0:6:0): scsi_done<br>
/kernel: uk0: command: 16,0,0,0,a,0-[16 bytes]<br>
/kernel: ------------------------------<br>
/kernel: 000: 00 00 00 40 00 00 00 00 00 00 dc 4f bf ef 8e c6 <br>
/kernel: ------------------------------<br>
/kernel: uk0(ncr0:6:0): calling user done()<br>
/kernel: uk0(ncr0:6:0): user-done<br>
/kernel: uk0(ncr0:6:0): no error<br>
/kernel: uk0(ncr0:6:0): returned from user done()<br>
/kernel: uk0(ncr0:6:0): free_xs<br>
/kernel: uk0(ncr0:6:0): returning to adapter<br>
/kernel: uk0(ncr0:6:0): back from sleep<br>
/kernel: uk0(ncr0:6:0): scsi_do_ioctl(0xc0605101)<br>
/kernel: uk0(ncr0:6:0): user_strategy<br>
/kernel: uk0(ncr0:6:0): scsi_cmd<br>
/kernel: uk0(ncr0:6:0): get_xs<br>
/kernel: uk0(ncr0:6:0): returning<br>
/kernel: xs(0xf06fdf00): flg(0x828)sc_link(0xf06fde80)retr(0x0)timo(0xea60)cmd(0xf06fdf58)len(0x6)data(0xf3e55f8a)len(0x24)res(0x0)err(0x0)bp(0xf0858d00)uk0: command: 19,0,0,0,1e,0-[36 bytes]<br>
/kernel: ------------------------------<br>
/kernel: 000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>
/kernel: 016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dc 4f <br>
/kernel: 032: bf ef a1 c6 <br>
/kernel: ------------------------------<br>
/kernel: uk0(ncr0:6:0): about to sleep<br>
/kernel: uk0: extraneous data discarded.<br>
/kernel: uk0: COMMAND FAILED (9 0) @f0551000.<br>
/kernel: uk0(ncr0:6:0): scsi_done<br>
/kernel: uk0: command: 19,0,0,0,1e,0-[36 bytes]<br>
/kernel: ------------------------------<br>
/kernel: 000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <br>
/kernel: 016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dc 4f <br>
/kernel: 032: bf ef a1 c6 <br>
/kernel: ------------------------------<br>
/kernel: uk0(ncr0:6:0): calling user done()<br>
/kernel: uk0(ncr0:6:0): user-done<br>
/kernel: uk0(ncr0:6:0): timeout<br>
/kernel: uk0(ncr0:6:0): returned from user done()<br>
/kernel: uk0(ncr0:6:0): free_xs<br>
/kernel: uk0(ncr0:6:0): returning to adapter<br>
/kernel: uk0(ncr0:6:0): back from sleep<br>
/kernel: uk0(ncr0:6:0): ukclose: Closing device<br>
<p>
--mYCpIKhGyMATD0i+--<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="0058.html">Craig Ruff: "Re: HP Photoscan..."</a>
<li> <b>Previous message:</b> <a href="0056.html">Andreas Tille: "Coolscan not detected"</a>
<li> <b>In reply to:</b> <a href="0050.html">Matto Marjanovic: "Re: Microtek E6 - mode_sense_1 problem"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0071.html">Rogier Wolff: "Re: Microtek E6 - mode_sense_1 problem"</a>
<li> <b>Reply:</b> <a href="0071.html">Rogier Wolff: "Re: Microtek E6 - mode_sense_1 problem"</a>
<!-- reply="end" -->
</ul>