A while ago I asked the sane-devel mailing list if it were possible to
get the Artec AT12 scanner working with Linux and SANE using the SCSI card
supplied with the scanner. I had some helpful advice (for which many
thanks) but I could never get the kernel to see the card. I have made
some progress this weekend and am reporting it to you and sane-devel
in case it is of use or interest.
The SCSI card in question is a nasty piece of work called a
DTC3181X/3151X and the chip on it is called a DTCT436P. There are only
two jumpers on it, J1 can be set to OFF=PNP or ON=PNR and is set to
ON=PNR as the card is supplied. J2 can be set to ON=0WS and OFF=1WS
(set to off as supplied). I have left these alone as I have not the
faintest idea what they do.
Up to now I have always used Linux kernel 2.0.34 because that is what
you get with Debian 2.0. I found that you can either do without the
SCSI support or have the kernel hang when you try to boot it.
This weekend, just for a laugh, I tried out the brand, spanking new
2.2.1 kernel. I compiled it with the generic NCR5380 scsi support and
used the boot prompt argument dtc3181e=0x2c0,0 . To my astonishment,
on boot-up you see this:
scsi0 : IRQ0 not free, interrupts disabled
scsi0 : interrupts not enabled. for better interactive performance,
scsi0 : please jumper the board for a free IRQ.
scsi0 : at port 0x2c0 interrupts disabled options CAN_QUEUE=16
CMD_PER_LUN=2 release=1 generic options AUTOPROBE_IRQ AUTOSENSE
USLEEP, USLEEP_POLL=1 USLEEP_SLEEP=20 generic release=7
scsi0 : Generic NCR5380/53C400 Driver
scsi : 1 host.
Vendor: ULTIMA Model: AT12 Rev: 2.10
Type: Scanner ANSI SCSI revision: 02
Detected scsi generic sga at scsi0, channel 0, id 5, lun 0
Whoopee. Now we can see the scanner OK. (Well, sometimes. Sometimes it
hangs at the line "scsi : 1 host".) The scanner refused grimly to work
in sane 0.72 as supplied with Debian, so I pulled down the Sane 1.0
source and built it, along with your brand-new artec driver. I can now
boot with the scanner on and do exactly one faultless scan with
xscanimage before the scanner hangs up and refuses to do anything
more. The scan mechanism does return to the usual park position after
the one good scan. This sounds very like the symptoms reporeted a few
weeks ago by Francisco Rodrigo Escobedo Robles (frer@vnet.es) using a
NCR53C810 card.
I do
export SANE_DEBUG_ARTEC=128
export SANE_DEBUG_SANEI_SCSI=128
before scanning and these were the last few lines of output in one
case, although they don't seem repeatable.
[sanei_scsi] scsi_req_enter: entered 0x808eaf8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x808eaf8
[sanei_scsi] sanei_scsi.issue: 0x808eaf8
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
[artec] sense: 8031 INT MEM R/W ERROR
[artec] sense: EEPROM R/W ERROR
[artec] sense: ASIC TEST ERROR
[artec] sense: LINE RAM R/W ERROR
[artec] sense: PSRAM R/W TEST ERROR
[artec] sense: POSITIONING ERROR
[artec] sense: TEST 6 ERROR
[artec] sense: TEST 7 ERROR
[artec] sense: TEST 8 ERROR
[artec] sense: TEST 9 ERROR
[artec] sense: TEST 10 ERROR
[artec] sense: TEST 11 ERROR
[artec] sense: TEST 12 ERROR
[artec] sense: TEST 13 ERROR
[artec] sense: TEST 14 ERROR
[artec] sense: TEST 15 ERROR
[artec] wait_ready: 'Error during device I/O'
[artec] wait for scanner ready failed: Error during device I/O
[artec] sane_start
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<I try to start the second scan here, but nothing happens. Kill
xscanimage and restart it and it won't scan, you just get this:>
orac:~# xscanimage artec:/dev/scanner
[sanei_init_debug]: Setting debug level of artec to 128.
[artec] Artec/Ultima backend version 0.4, last mod: 12/9/1998 01:11
[artec] http://www4.infi.net/~cpinkham/sane-artec-doc.html
[artec] artec.conf line: '/dev/scanner', len = 12
[artec] attach_one
[artec] attach: opening /dev/scanner
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
[artec] attach: sending INQUIRY
[sanei_scsi] scsi_req_enter: entered 0x808eaf8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x808eaf8
[sanei_scsi] sanei_scsi.issue: 0x808eaf8
[sanei_scsi] sanei_scsi_req_wait: read 132 bytes
[artec] attach: wait for scanner to come ready
[artec] wait_ready
[sanei_scsi] scsi_req_enter: entered 0x808eaf8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x808eaf8
[sanei_scsi] sanei_scsi.issue: 0x808eaf8
** ERROR **: sigint caught
Something similar happens if I use scanimage instead of xscanimage. If I do
prompt> scanimage -d artec:/dev/scanner > smeg.ppm
I get a full a4 (letter) size image. If I then do
prompt> scanimage -d artec:/dev/scanner > smeg2.ppm
.. I get nothing.
Strange!
I'll keep you posted if I have any further success.
Many thanks for your efforts,
All the best
Hugh
==========================================================================
Hugh C. Pumphrey, Dept. of - | Tel. 0131-650-6026,Fax:0131-650-5780
Meteorology, Univ. of Edinburgh | Replace 0131 with +44-131 if outside U.K
EDINBURGH EH9 3JZ, Scotland | Email hcp@met.ed.ac.uk
======P=l=e=a=s=e==N=o=t=e==t=h=e==N=e=w==F=A=X==N=u=m=b=e=r==============
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com