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

101 wiersze
4.3 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="Sat Apr 10 17:43:24 1999 PDT" -->
<!-- sent="Sat, 10 Apr 1999 18:56:09 -0600 (MDT)" -->
<!-- name="martica@martica.org" -->
<!-- email="martica@martica.org" -->
<!-- subject="Relisys Backend devel snags -- lockup when scanner buffer fills" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Relisys Backend devel snags -- lockup when scanner buffer fills</title>
<h1>Relisys Backend devel snags -- lockup when scanner buffer fills</h1>
<a href="mailto:martica@martica.org"><i>martica@martica.org</i></a><br>
<i>Sat, 10 Apr 1999 18:56:09 -0600 (MDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#173">[ date ]</a><a href="index.html#173">[ thread ]</a><a href="subject.html#173">[ subject ]</a><a href="author.html#173">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0174.html">Larry Snyder: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Previous message:</b> <a href="0172.html">Hugo van der Kooij: "Re: updated RPM packages"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Howdy all,<br>
<p>
I've been working on the backend for the Relisys/Teco lines, and have<br>
got things working pretty darn good for 24bit color scans at low<br>
resolutions.<br>
<p>
PROBLEM: Scanner pauses scanning when buffer fills and machine locks<br>
after almost emptying the buffer.<br>
<p>
I've run into some sort of problem, which I think is somehow scsi<br>
related. When I scan at a high resolution the scanners internal buffer<br>
fills faster than I can read the data out of it. I could try to increase<br>
the sg buffer size, but I don't think that that is really a solution and<br>
the problem will still exist with high res scans of the entire flatbed<br>
area. <br>
<p>
When scanner under the Windows twain driver the scanner will pause<br>
scanning when its buffer fills and restart when it empties again. This<br>
seems to happen under linux, but the restart never occurs. When my<br>
backend reads the second last 32k chunk from the scanner the entire<br>
machine locks up and I have to shutdown the scanner to have it continue. <br>
<p>
I have to admit that this is my first foray into interfaceing with the<br>
scsi subsystem, and have some hope that one of you scsi/scanner gurus<br>
might have a clue to impart to me on possible reasons for this behavior.<br>
<p>
Thanks for your time,<br>
Tyler Bindon<br>
<a href="mailto:martica@martica.org">martica@martica.org</a><br>
<p>
<p>
<p>
Sample Scan Output for your perusal:<br>
<p>
% scanimage -x 200 -y 120 --resolution=300 &gt; test.pnm<br>
.<br>
. many many many lines ommited<br>
.<br>
reader: waiting for data.[sanei_scsi] scsi_req_enter: entered 0x807ec10<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10<br>
[sanei_scsi] sanei_scsi.issue: 0x807ec10<br>
[sanei_scsi] sanei_scsi_req_wait: read 54 bytes<br>
[relisys] avail = 181797<br>
! 181797 bytes available.<br>
reader: About to read 32000 bytes, [sanei_scsi] scsi_req_enter: entered<br>
0x807ec1<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10<br>
[sanei_scsi] sanei_scsi.issue: 0x807ec10<br>
[sanei_scsi] sanei_scsi_req_wait: read 32036 bytes<br>
Successful.<br>
Outputting 32000 bytes to fd,<br>
reader: waiting for data.[sanei_scsi] scsi_req_enter: entered 0x807ec10<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10<br>
[sanei_scsi] sanei_scsi.issue: 0x807ec10<br>
[sanei_scsi] sanei_scsi_req_wait: read 54 bytes<br>
[relisys] avail = 151104<br>
! 151104 bytes available.<br>
reader: About to read 32000 bytes, [sanei_scsi] scsi_req_enter: entered<br>
0x807ec1<br>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10<br>
[sanei_scsi] sanei_scsi.issue: 0x807ec10<br>
<p>
<p>
<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="0174.html">Larry Snyder: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Previous message:</b> <a href="0172.html">Hugo van der Kooij: "Re: updated RPM packages"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>