Re: Mustek/Request-sense problems -> Solution?

Thomas Blume (mblum1@tc9.uni-paderborn.de)
Thu, 8 May 1997 16:37:36 +0200

> Are you saying you're having problems with color scanning? I think
> Andy has the same scanner type (slightly different firmware, though)
> and I thought things work fine for him.

The results I obtain show the same effects as were mentioned here
with 3-pass scanning. But as lineart mode for faxing is currently
my main application, I didn't try to track it down further.

>
> Thomas> Maybe a function for parsing sense data should be hooked
> Thomas> directly to sanei_scsi_cmd, or the valid bit of sense data
> Thomas> should be checked.
>
> I'm downloading the SCSI specs as I'm writing this. I have some ideas
> on how to handle this, but want to check the specs first.

I assume that all device independent sense keys are covered by the
kernel correctly, so only device specific keys have to be checked. In
case of sg_header all the information is provided in
req->hdr.sense_buffer and could be checked in sanei_scsi_cmd. For
ioctl I think that the sense buffer could also be obtained after the
call, but I'm not sure.
Perhaps one could call a backend specific function pointer for parsing
if sense key != NO_SENSE && valid.

>
> Thomas> Please fix me if I'm wrong, but since it works for me now, I
> Thomas> suspect, that the additional request_sense was in fact the
> Thomas> source for my problems.
>
> It works for my controller (ncr810) as well.

Nice to hear, so I don't have to check it for myself (my drives are
connected to the ncr and the braindead 25pin connector makes correct
cabling and termination quite difficult).

BTW: there exists another version of the bundled DTC3181. It has only
1 jumper for wait, the PNR/PNP jumper is missing. I could not manage
to get it to work with Linux, but this rubbish part is not worth any
more efforts. With NT4.0 finally Mustek provides a working driver for
it, but this card effectively turns NT into a single tasking OS.

---
Thomas Blume                          <mblum1@hrz.uni-paderborn.de>
Technische Chemie und Chemische Verfahrenstechnik, UNI-GH-Paderborn
Tel.: +49 5251 602598                          Fax: +49 5251 603244

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com