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

118 wiersze
6.3 KiB
HTML

<!-- received="Sat Apr 10 20:18:32 1999 PDT" -->
<!-- sent="Sat, 10 Apr 1999 23:20:02 -0400 (EDT)" -->
<!-- name="Larry Snyder" -->
<!-- email="larrys@lexis-nexis.com" -->
<!-- subject="Re: Relisys Backend devel snags -- lockup when scanner buffer fills" -->
<!-- id="199904110320.XAA07743@ra.lexis-nexis.com" -->
<!-- inreplyto="Pine.LNX.4.10.9904101855170.5139-100000@arakis.martica.org" -->
<title>sane-devel: Re: Relisys Backend devel snags -- lockup when scanner buffer fills</title>
<h1>Re: Relisys Backend devel snags -- lockup when scanner buffer fills</h1>
<b>Larry Snyder</b> (<a href="mailto:larrys@lexis-nexis.com"><i>larrys@lexis-nexis.com</i></a>)<br>
<i>Sat, 10 Apr 1999 23:20:02 -0400 (EDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#174">[ date ]</a><a href="index.html#174">[ thread ]</a><a href="subject.html#174">[ subject ]</a><a href="author.html#174">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Previous message:</b> <a href="0173.html">martica@martica.org: "Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Reply:</b> <a href="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi Tyler --<br>
Just curious -- do you have 'disconnect' enabled in your scsi driver<br>
in the kernel?<br>
Just a thought...<br>
-ls-<br>
<p>
<p>
<a href="mailto:martica@martica.org">martica@martica.org</a> wrote:<br>
<i>&gt; Howdy all,</i><br>
<i>&gt; </i><br>
<i>&gt; I've been working on the backend for the Relisys/Teco lines, and have</i><br>
<i>&gt; got things working pretty darn good for 24bit color scans at low</i><br>
<i>&gt; resolutions.</i><br>
<i>&gt; </i><br>
<i>&gt; PROBLEM: Scanner pauses scanning when buffer fills and machine locks</i><br>
<i>&gt; after almost emptying the buffer.</i><br>
<i>&gt; </i><br>
<i>&gt; I've run into some sort of problem, which I think is somehow scsi</i><br>
<i>&gt; related. When I scan at a high resolution the scanners internal buffer</i><br>
<i>&gt; fills faster than I can read the data out of it. I could try to increase</i><br>
<i>&gt; the sg buffer size, but I don't think that that is really a solution and</i><br>
<i>&gt; the problem will still exist with high res scans of the entire flatbed</i><br>
<i>&gt; area. </i><br>
<i>&gt; </i><br>
<i>&gt; When scanner under the Windows twain driver the scanner will pause</i><br>
<i>&gt; scanning when its buffer fills and restart when it empties again. This</i><br>
<i>&gt; seems to happen under linux, but the restart never occurs. When my</i><br>
<i>&gt; backend reads the second last 32k chunk from the scanner the entire</i><br>
<i>&gt; machine locks up and I have to shutdown the scanner to have it continue. </i><br>
<i>&gt; </i><br>
<i>&gt; I have to admit that this is my first foray into interfaceing with the</i><br>
<i>&gt; scsi subsystem, and have some hope that one of you scsi/scanner gurus</i><br>
<i>&gt; might have a clue to impart to me on possible reasons for this behavior.</i><br>
<i>&gt; </i><br>
<i>&gt; Thanks for your time,</i><br>
<i>&gt; Tyler Bindon</i><br>
<i>&gt; <a href="mailto:martica@martica.org">martica@martica.org</a></i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; Sample Scan Output for your perusal:</i><br>
<i>&gt; </i><br>
<i>&gt; % scanimage -x 200 -y 120 --resolution=300 &gt; test.pnm</i><br>
<i>&gt; .</i><br>
<i>&gt; . many many many lines ommited</i><br>
<i>&gt; .</i><br>
<i>&gt; reader: waiting for data.[sanei_scsi] scsi_req_enter: entered 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi.issue: 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: read 54 bytes</i><br>
<i>&gt; [relisys] avail = 181797</i><br>
<i>&gt; ! 181797 bytes available.</i><br>
<i>&gt; reader: About to read 32000 bytes, [sanei_scsi] scsi_req_enter: entered</i><br>
<i>&gt; 0x807ec1</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi.issue: 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: read 32036 bytes</i><br>
<i>&gt; Successful.</i><br>
<i>&gt; Outputting 32000 bytes to fd,</i><br>
<i>&gt; reader: waiting for data.[sanei_scsi] scsi_req_enter: entered 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi.issue: 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: read 54 bytes</i><br>
<i>&gt; [relisys] avail = 151104</i><br>
<i>&gt; ! 151104 bytes available.</i><br>
<i>&gt; reader: About to read 32000 bytes, [sanei_scsi] scsi_req_enter: entered</i><br>
<i>&gt; 0x807ec1</i><br>
<i>&gt; [sanei_scsi] sanei_scsi_req_wait: waiting for 0x807ec10</i><br>
<i>&gt; [sanei_scsi] sanei_scsi.issue: 0x807ec10</i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; --</i><br>
<i>&gt; Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a></i><br>
<i>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a></i><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="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Previous message:</b> <a href="0173.html">martica@martica.org: "Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<li> <b>Reply:</b> <a href="0175.html">martica@martica.org: "Re: Relisys Backend devel snags -- lockup when scanner buffer fills"</a>
<!-- reply="end" -->
</ul>