sane-project-website/old-archive/1999-04/0227.html

98 wiersze
4.9 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Thu Apr 15 02:20:40 1999 PDT" -->
<!-- sent="Thu, 15 Apr 1999 10:20:33 +0100" -->
<!-- name="Dr. Andreas Bolsch" -->
<!-- email="Andreas.Bolsch@maths.nott.ac.uk" -->
<!-- subject="Re: Mustek 1200SP/12000SP Firmware-1.05" -->
<!-- id="" -->
<!-- inreplyto="Mustek 1200SP/12000SP Firmware-1.05" -->
<title>sane-devel: Re: Mustek 1200SP/12000SP Firmware-1.05</title>
<h1>Re: Mustek 1200SP/12000SP Firmware-1.05</h1>
<b>Dr. Andreas Bolsch</b> (<a href="mailto:Andreas.Bolsch@maths.nott.ac.uk"><i>Andreas.Bolsch@maths.nott.ac.uk</i></a>)<br>
<i>Thu, 15 Apr 1999 10:20:33 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#227">[ date ]</a><a href="index.html#227">[ thread ]</a><a href="subject.html#227">[ subject ]</a><a href="author.html#227">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0228.html">Russell W. Behne: "Mustek 600 CP"</a>
<li> <b>Previous message:</b> <a href="0226.html">Tim Waugh: "Re: xscanimage spins when scan cancelled"</a>
<li> <b>Maybe in reply to:</b> <a href="0177.html">Oliver Rauch: "Mustek 1200SP/12000SP Firmware-1.05"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0229.html">Bjoern Buerger: "Re: Mustek 1200SP/12000SP Firmware-1.05"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
As I haven't got an MFS-12000SP I can give only some vague advice.<br>
First thing would be to check the line distance values returned<br>
by the scanner via<br>
export SANE_DEBUG_MUSTEK=128<br>
scanimage --mode color --resolution 150 -x50mm -y50mm &gt;/dev/null<br>
There would be something like 'line_distance: (0/2/4)'<br>
For 300dpi and 600dpi this should read (0/4/8),(0/8/16).<br>
The actual values might be slightly different. To get some idea<br>
how that might look like I've appended some debug output from<br>
my scanner.<br>
<p>
If you get reasonable values a closer look at the initialization<br>
code would be a good idea, i.e. where the model is checked and<br>
some variables are initialized. Look for the strncmp( ... MFS-12000<br>
...). As far as I recall right know (sorry, my box is at home) there<br>
are two different line distance correction algorithms for the MFS<br>
models, depending on the firmware revision, so trying the other<br>
variant might help.<br>
<p>
If this fails, too: Change the code for sending the gamma table<br>
such that red gets all zeros, green all ones, blue all twos,<br>
and add some code to output_data so that the data is dumped in<br>
hex format, too. Then ist's possible to verufy the color sequence<br>
precisely. But mind that there are two functions for sending the<br>
gamma tables. gamma_send_se is *only* for the SE models.<br>
<p>
Regarding the slow scanning: Check that the transfer size is close<br>
two 128 kByte (reader: about to read ??? bytes).<br>
If it's much smaller SG_BIG_BUFF is not set to a reasonable value<br>
and should be increased to 127 * 1024 (/usr/include/scsi/sg.h).<br>
Kernel and SANE would have to be recompiled then.<br>
Note that in my debug output it's only 64 kByte, but that's specific<br>
to the SE.<br>
<p>
export SANE_DEBUG_MUSTEK=128<br>
scanimage --mode color --resolution 75 -x50mm -y50mm &gt;/dev/null<br>
<br>
[sanei_init_debug]: Setting debug level of mustek to 128.<br>
[mustek] attach: opening /dev/scanner as scsi device<br>
[mustek] attach: sending INQUIRY<br>
[mustek] scsi_wait_ready: sending TEST_UNIT_READY<br>
[mustek] attach: firmware revision 1.01<br>
[mustek] attach: found Mustek scanner model C06 S12IDW (flatbed<br>
scanner), 1-pass, SE<br>
[mustek] scsi_wait_ready: sending TEST_UNIT_READY<br>
[mustek] do_inquiry: sending INQUIRY<br>
[mustek] get_window: calib_bytes=15900, calib_lines=16<br>
[mustek] get_window: bytes_per_line=888, lines=300<br>
[mustek] get_window: gamma length=4096<br>
[mustek] line_distance: got res=150, (r/g/b)=(0/2/4)<br>
[mustek] get_window: bytes_per_line=444, lines=148, pixels=444<br>
[mustek] send_gamma_se: sending table for color 1<br>
[mustek] send_gamma_se: sending table for color 2<br>
[mustek] send_gamma_se: sending table for color 3<br>
[mustek] lines_per_buffer=73, bytes_per_line=888<br>
[mustek] reader: about to read 64824 bytes<br>
[mustek] buffer_bank: 0<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="0228.html">Russell W. Behne: "Mustek 600 CP"</a>
<li> <b>Previous message:</b> <a href="0226.html">Tim Waugh: "Re: xscanimage spins when scan cancelled"</a>
<li> <b>Maybe in reply to:</b> <a href="0177.html">Oliver Rauch: "Mustek 1200SP/12000SP Firmware-1.05"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0229.html">Bjoern Buerger: "Re: Mustek 1200SP/12000SP Firmware-1.05"</a>
<!-- reply="end" -->
</ul>