sane-project-website/old-archive/1999-06/0028.html

103 wiersze
4.8 KiB
HTML

<!-- received="Sat Jun 5 07:56:56 1999 PDT" -->
<!-- sent="Sat, 5 Jun 1999 16:59:44 +0200 (MEST)" -->
<!-- name="Bernd Schroeder" -->
<!-- email="Bernd.M.Schroeder@gmx.de" -->
<!-- subject="Re: Re: microtek x6 and TMA not working" -->
<!-- id="26532.928594784@www3.gmx.net" -->
<!-- inreplyto="Re: microtek x6 and TMA not working" -->
<title>sane-devel: Re: Re: microtek x6 and TMA not working</title>
<h1>Re: Re: microtek x6 and TMA not working</h1>
<b>Bernd Schroeder</b> (<a href="mailto:Bernd.M.Schroeder@gmx.de"><i>Bernd.M.Schroeder@gmx.de</i></a>)<br>
<i>Sat, 5 Jun 1999 16:59:44 +0200 (MEST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#28">[ date ]</a><a href="index.html#28">[ thread ]</a><a href="subject.html#28">[ subject ]</a><a href="author.html#28">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0029.html">B.Skrabal@t-online.de: "Genius Colorpage HR5 and HR5 Pro should work as UMAX Astra 1200"</a>
<li> <b>Previous message:</b> <a href="0027.html">Greg Franks: "Re: microtek x6 and TMA not working (apologies)"</a>
<li> <b>Maybe in reply to:</b> <a href="0025.html">Harald Finster: "Re: microtek x6 and TMA not working"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; [] scsi_read_image_info: ms=0x8130b88</i><br>
<i>&gt; [] scsi_read_image_info: ppl=425, bpl=1278, lines=510, remain=651780</i><br>
<i>&gt; [] scsi_wait_for_image: ms=0x8130b88</i><br>
<i>&gt; [] scsi_read_image_status: ms=0x8130b88</i><br>
<i>&gt; [] sane_get_parameters: handle=0x8130b88, params=0x8150118</i><br>
<i>&gt; [] sane_get_parameters: format=1, last_frame=1, lines=510</i><br>
<i>&gt; [] sane_get_parameters: depth=8, ppl=425, bpl=1275</i><br>
<i>&gt; [] reader_process: ms=0x8130b88</i><br>
<i>&gt; [] reader_process: transferlength=31950, lines=25, linelength=1278,</i><br>
real_bpl=1275, srcbuf=0x819d2d8<br>
<i>&gt; [] scsi_read_image: ms=0x8130b88</i><br>
<i>&gt; [] scsi_read_image: transferlength=31950</i><br>
<i>&gt; [] sane_set_io_mode: handle=0x8130b88, nonblocking=1</i><br>
<i>&gt; [] sane_get_select_fd: ms=0x8130b88</i><br>
<i>&gt; [] segreg_proc_data: ms=0x8130b88</i><br>
<i>&gt; [] segreg_proc_data: lines=25, bpl=1278, ppl=425, bpf=426, bpp=1,</i><br>
depth=8, pad=1, freelines=57<br>
<i>&gt; [] segreg_proc_data: unknown color indicator (1) 0x00</i><br>
<p>
Doesn't look very good.<br>
<p>
The problem is that there are several possible data formats that<br>
describe how the image data can be transferred from the device<br>
to the host. The actual data format which is used by the model<br>
in question can be inquired with a "read scanner attributes"<br>
command, and it can be inquired for the flatbed mode and TMA<br>
mode individually.<br>
<p>
There are models that - at least according to this "read scanner<br>
attributes" command - have different data formats for the<br>
flatbed mode and the TMA mode, among them the X6.<br>
<p>
However, the debug output means that the data format actually<br>
being used in TMA mode doesn't match the format that is indicated<br>
for this mode by the result of the "read scanner attributes"<br>
command.<br>
<p>
Unfortunately I can't figure out myself how to solve this problem,<br>
because I don't have a TMA, and there is a choice among several<br>
alternatives. <br>
<p>
For people who are willing to help testing, here is one way to go:<br>
<p>
In the function reader_process() there is a 'switch' statement<br>
that calls the function which processes the image data<br>
in dependence of the indicated data format, in this case<br>
segreg_proc_data().<br>
<p>
For testing purposes replace this function call with one of the<br>
other functions, preferrably with chunky_proc_data().<br>
<p>
If then a scan isn't possible, for example because the backend<br>
crashes or the system hangs, try the following:<br>
Instead of replacing the function call add the statement<br>
result[0] &amp;= 0xfd;<br>
to the function scsi_read_attributes(), immediately behind<br>
the sanei_scsi_cmd() call.<br>
<p>
Bernd<br>
<p>
<p>
<pre>
---
Sent through Global Message Exchange - <a href="http://www.gmx.net">http://www.gmx.net</a>
<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="0029.html">B.Skrabal@t-online.de: "Genius Colorpage HR5 and HR5 Pro should work as UMAX Astra 1200"</a>
<li> <b>Previous message:</b> <a href="0027.html">Greg Franks: "Re: microtek x6 and TMA not working (apologies)"</a>
<li> <b>Maybe in reply to:</b> <a href="0025.html">Harald Finster: "Re: microtek x6 and TMA not working"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>