[sane-devel] Microtek ScanMaker 636 at Advance Hostadapter
Karsten Festag
karsten.festag at gmx.de
Mon Jun 10 19:31:56 BST 2002
Hi Nicolas,
in the moment I have two suspicions:
1) I included a command which sets the timer for the automatic switch-off for
the lamp. Maybe the firmware of your scanner doesn't support this command. To
test this issue it is neccesary either to use an old sane version (1.0.4 or
older) or (better) to compile from slightly modified sources.
2) The failing command is the first that doesn't only read data from the
scanner but sends data to the scanner. If that's the problem then it is
probably scsi-related. A test for this might be to push the "toggle lamp"
button in the advanced options in xsane. But you have to enable this button
in the configuration file microtec2.conf (probably located in
/usr/local/etc/sane.d). There has to be the line
option toggle-lamp on
If pressing the button doesn't freeze the scanner then probably the above
suspicion is right. If it also freezes - well then it might be a scsi issue
but I would do also the first test.
If you like to compile a modified source that doesn't send the Timer command
you have to remove the following lines from the function sane_start in
microtek2.c:
md->status.aloff |= 128;
md->status.timeremain = 10;
Please tell me about your results!
Best wishes
Karsten
On Sunday, 9. June 2002 09:56, you wrote:
> Hi!
>
> Sorry, it took me a while to answer.... been busy the last week.
>
> > can you tell me what version of SANE you used with the old setup that was
> > working and what SANE version you are using now? Furthermore it would be
> > good to see a logfile. Please look into the manpage sane-microtek2 for
> > instructions how to create this. Maybe the firmware of your scanner
> > doesn't understand a command that is used in newer backend versions
> > (there are a lot of nasty issues with the firmware of different scanners
> > :-( )
>
> Now I'm using sane version 1.0.7. The working version was 1.0.1.
>
> The logfile "scan.log" is attached to this email. The logfile "sout.pnm"
> was empty however.
>
> BTW, the command "scanimage -l0 -t0 -x100 -y20 2>scan.log >sout.pnm" never
> returns and cannot be aborted using Ctrl-C...
>
> Thanks for your help already!
>
> > > I have a SCSI scanner "Microtek ScanMaker 636" on an "Advance 2911U"
> > > hostadapter (using module "atp870u"). This scanner has been working
> > > with an older version and an onboard SCSI controllen without any
> > > problems.
> > >
> > > Now (Kernel 2.4.18, SuSE Linux 8.0, xsane-0.83) I cannot get it
> > > working. (A ZIP drive on this hostadapter is working properly.) The
> > > scanner is terminated correctly.
> > >
> > > Yast2 identifies the scanner at /dev/sg15 correctly. But when trying to
> > > scan with xsane (or the Yast2 Testscan function) the scanner software
> > > hangs. The green led at the scanner turns off und even the ZIP drive
> > > doesn't work any more.... The hostadapter is dead....
> > >
> > > I get the following output an the error console:
> > > May 25 18:43:55 lianli kernel: Vendor: IOMEGA Model: ZIP 100
> > > Rev: E.08
> > > May 25 18:43:55 lianli kernel: Type: Direct-Access
> > > ANSI SCSI revision: 02
> > > May 25 18:43:55 lianli kernel: Vendor: Model: scanner
> > > V636A4 Rev: 1.00
> > > May 25 18:43:55 lianli kernel: Type: Scanner
> > > ANSI SCSI revision: 02
> > > May 25 18:43:55 lianli kernel: Attached scsi removable disk sda at
> > > scsi1, channel 0, id 5, lun 0
> > > May 25 18:43:56 lianli kernel: SCSI device sda: 196608 512-byte hdwr
> > > sectors (101 MB)
> > > May 25 18:43:56 lianli kernel: sda: Write Protect is off
> > > May 25 18:45:14 lianli kernel: scsi : aborting command due to timeout :
> > > pid 3756, scsi1, channel 0, id 6, lun 0 0x2a 00 81 00 00 00 00 00 09 00
> > > May 25 18:45:14 lianli kernel: r3b=20
> > > May 25 18:45:14 lianli kernel:
> > > May 25 18:46:14 lianli kernel: que cdb= 2a 0 81 0 0 0 0
> > > 0 9 0 last_lenu= 9 scsi : aborting command due to timeout : pid 3756,
> > > scsi1, channel 0, id 6, lun 0 0x2a 00 81 00 00 00 00 00 09 00
> > > May 25 18:46:14 lianli kernel: r3b=20
> > > May 25 18:46:14 lianli kernel:
> > > May 25 18:46:14 lianli kernel: que cdb= 2a 0 81 0 0 0 0
> > > 0 9 0 last_lenu= 9 SCSI host 1 abort (pid 3756) timed out - resetting
> > > May 25 18:46:14 lianli kernel: SCSI bus is being reset for host 1
> > > channel 0. May 25 18:46:14 lianli kernel: SCSI host 1 channel 0 reset
> > > (pid 3756) timed out - trying harder
> > > May 25 18:46:14 lianli kernel: SCSI bus is being reset for host 1
> > > channel 0.
> > >
> > > Concerning my IDE CDROM drives I have the following settings (but even
> > > without ide-scsi the problem shows up):
> > >
> > > /etc/modules.conf:
> > > alias scsi_hostadapter atp870u
> > > alias scsi_hostadapter2 ide-scsi
> > > ...
> > > alias char-major-21 sg
> > > ...
> > > options ide-cd ignore='hdc hdd'
> > > pre-install sg modprobe ide-scsi
> > >
> > >
> > > Any ideas?
> > > Thanks for your help already!!!
More information about the sane-devel
mailing list