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

91 wiersze
3.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="Wed Jan 14 15:16:38 1998 PST" -->
<!-- sent="Wed, 14 Jan 1998 22:54:01 +0100" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="st002354@hrz1.hrz.tu-darmstadt.de" -->
<!-- subject="Re: Problems with Mustek 600 II N" -->
<!-- id="" -->
<!-- inreplyto="Pine.HPP.3.96.980114112102.20088B-100000@inshp01.ins.uni-stuttgart.de" -->
<title>sane-devel: Re: Problems with Mustek 600 II N</title>
<h1>Re: Problems with Mustek 600 II N</h1>
<b>Henning Meier-Geinitz</b> (<a href="mailto:st002354@hrz1.hrz.tu-darmstadt.de"><i>st002354@hrz1.hrz.tu-darmstadt.de</i></a>)<br>
<i>Wed, 14 Jan 1998 22:54:01 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#55">[ date ]</a><a href="index.html#55">[ thread ]</a><a href="subject.html#55">[ subject ]</a><a href="author.html#55">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0056.html">becka@rz.uni-duesseldorf.de: "Re: Probable Bugs &amp; Suggestions"</a>
<li> <b>Previous message:</b> <a href="0054.html">Gareth J. Greenaway: "Parallel Support?"</a>
<li> <b>In reply to:</b> <a href="0052.html">Andreas Czechanowski: "Re: Problems with Mustek 600 II N"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi!<br>
<br>
<i>&gt; &gt; I tried to do some debugging and set SANE_DEBUG_SANEI_AB306. If I use</i><br>
<i>&gt; &gt; a value of 4 or higher I can use the scanner, if its 3 or lower, the</i><br>
<i>&gt; &gt; driver hangs. Some Output with SANE_DEBUG_SANEI_AB306=3:</i><br>
<i>&gt; </i><br>
<i>&gt; Really loks like a timing problem ! Have you tried to use xscanimage</i><br>
<i>&gt; as "normal" user ? If you do so, make sure to make /dev/port accessable</i><br>
<i>&gt; for read and write to the user.</i><br>
<p>
Yes, I tried this now, and it works without these problems. But with<br>
/dev/port enabled, the scanner isn't turned off after leaving<br>
xscanimage any more.<br>
<p>
<i>&gt; Background: I/O via /dev/port is very much slower than by direct</i><br>
<i>&gt; inb/outb assembler inline instructions (but these can only be used</i><br>
<i>&gt; if the program is executed by root or is run with the SUID bit set).</i><br>
<p>
I tried another one: I put a usleep in sanei_ab306.c:<br>
<p>
<p>
/* Send a single command-byte over the AB306N-interface. */<br>
static void<br>
ab306_cout (Port *p, int val)<br>
{<br>
u_long base = p-&gt;base;<br>
<p>
usleep(100); /* &lt;---------- */<br>
while ((ab306_inb (p, base + 1) &amp; 0x80)); /* wait for dir flag */<br>
ab306_outb (p, base, val);<br>
ab306_outb (p, base + 1, 0xe0);<br>
while ((ab306_inb (p, base + 1) &amp; 0x80) == 0); /* wait for ack */<br>
ab306_outb (p, base + 1, 0x60);<br>
}<br>
<p>
This works for me (without the SANE_DEBUG trick), but I don't know<br>
much about programming and C.<br>
<p>
Two other points:<br>
If I press "Cancel" during the scan, xscanimage hangs for about 2<br>
minutes before it is working again. <br>
<p>
Color doesn't work for me. The colors seem to overlap some milimeters<br>
if I use 150 dpi. If I use other resolutions I will get horizontal<br>
lines and "ugly" colors. Without the line-distance-fix it's even uglier.<br>
<p>
<i>&gt; I'll have a look at it as I have the time. </i><br>
<p>
Thank you very much. If I can help you (do testing ...), please mail<br>
me.<br>
<p>
Ciao, Henning<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="0056.html">becka@rz.uni-duesseldorf.de: "Re: Probable Bugs &amp; Suggestions"</a>
<li> <b>Previous message:</b> <a href="0054.html">Gareth J. Greenaway: "Parallel Support?"</a>
<li> <b>In reply to:</b> <a href="0052.html">Andreas Czechanowski: "Re: Problems with Mustek 600 II N"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>