sane-project-website/old-archive/2000-08/0048.html

403 wiersze
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<TITLE>sane-devel: SnapScan 1236s troubles</TITLE>
<META NAME="Author" CONTENT="Oleg Baranov (obaranov@yahoo.com)">
<META NAME="Subject" CONTENT="SnapScan 1236s troubles">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>SnapScan 1236s troubles</H1>
<!-- received="Fri Aug 4 10:29:15 2000" -->
<!-- isoreceived="20000804172915" -->
<!-- sent="Fri, 04 Aug 2000 21:20:41 +0400" -->
<!-- isosent="20000804172041" -->
<!-- name="Oleg Baranov" -->
<!-- email="obaranov@yahoo.com" -->
<!-- subject="SnapScan 1236s troubles" -->
<!-- id="398AFB69.8821CADD@yahoo.com" -->
<!-- charset="koi8-r" -->
<STRONG>From:</STRONG> Oleg Baranov (<A HREF="mailto:obaranov@yahoo.com?Subject=Re:%20SnapScan%201236s%20troubles&In-Reply-To=&lt;398AFB69.8821CADD@yahoo.com&gt;"><EM>obaranov@yahoo.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Aug 04 2000 - 10:20:41 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: quick note from the TWAIN/SANE meeting at OLS"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0047.html">David Mosberger-Tang: "Re: quick note from the TWAIN/SANE meeting at OLS"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#48">[ date ]</A>
<A HREF="index.html#48">[ thread ]</A>
<A HREF="subject.html#48">[ subject ]</A>
<A HREF="author.html#48">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
There are some troubles with Agfa SnapScan 1236s.
<BR>
<P>I use it with aha-1505 (the card scanner shipped with)
<BR>
controller seems to initialise an work ok:
<BR>
<P>-------------
<BR>
aha152x: resetting bus...
<BR>
aha152x0: vital data: rev=3, io=0x140 (0x140/0x140), irq=11, scsiid=7,
<BR>
reconnect=enabled, parity=enabled, synchronous=enabled, delay=100,
<BR>
extended translation=enabled
<BR>
aha152x0: trying software interrupt, ok.
<BR>
scsi0 : Adaptec 152x SCSI driver; $Revision: 2.0 $
<BR>
scsi : 1 host.
<BR>
(scsi0:2:0) Synchronous Data Transfer Request was rejected
<BR>
&nbsp;&nbsp;Vendor: AGFA Model: SNAPSCAN 1236 Rev: 1.50
<BR>
&nbsp;&nbsp;Type: Scanner ANSI SCSI revision: 02
<BR>
Detected scsi generic sg0 at scsi0, channel 0, id 2, lun 0, type 6
<BR>
scsi : detected total.
<BR>
------------
<BR>
<P>then I try out scanner list and it seems to all right too:
<BR>
<P>------------
<BR>
[oleg@WS oleg]$ scanimage -L
<BR>
[sanei_init_debug]: Setting debug level of snapscan to 128.
<BR>
[snapscan] sane_snapscan_init
<BR>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<BR>
[sanei_scsi] searched device is /dev/sga
<BR>
[snapscan] add_device(/dev/sga)
<BR>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<BR>
[sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
<BR>
[sanei_scsi] sanei_scsi_open: SG driver version: 30115
<BR>
[sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer
<BR>
<P>[sanei_scsi] trying to enable low level command queueing
<BR>
[sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
<BR>
[sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run
<BR>
time
<BR>
[snapscan] mini_inquiry
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 72 bytes
<BR>
[snapscan] add_device: Is vendor &quot;AGFA&quot; model &quot;SNAPSCAN 1236&quot; a
<BR>
supported scanner?
<BR>
[snapscan] sane_snapscan_get_devices (0xbffff604, 0)
<BR>
device `snapscan:/dev/sga' is a AGFA SNAPSCAN 1236 flatbed scanner
<BR>
------------
<BR>
<P>but the next step allways fails:
<BR>
<P>------------
<BR>
[oleg@WS oleg]$ scanimage -d snapscan:/dev/sga -h
<BR>
Usage: scanimage [OPTION]...
<BR>
<P>Start image acquisition on a scanner device and write PNM image data to
<BR>
standard output.
<BR>
<P>-b, --batch=FORMAT working in batch mode
<BR>
-d, --device-name=DEVICE use a given scanner device
<BR>
-h, --help display this help message and exit
<BR>
-L, --list-devices show available scanner devices
<BR>
-T, --test test backend thoroughly
<BR>
-v, --verbose give even more status messages
<BR>
-V, --version print version information
<BR>
[sanei_init_debug]: Setting debug level of snapscan to 128.
<BR>
[snapscan] sane_snapscan_init
<BR>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<BR>
[sanei_scsi] searched device is /dev/sga
<BR>
[snapscan] add_device(/dev/sga)
<BR>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<BR>
[sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
<BR>
[sanei_scsi] sanei_scsi_open: SG driver version: 30115
<BR>
[sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer
<BR>
<P>[sanei_scsi] trying to enable low level command queueing
<BR>
[sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
<BR>
[sanei_scsi] sanei_scsi_open: SG driver can change buffer size at run
<BR>
time
<BR>
[snapscan] mini_inquiry
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 72 bytes
<BR>
[snapscan] add_device: Is vendor &quot;AGFA&quot; model &quot;SNAPSCAN 1236&quot; a
<BR>
supported scanner?[snapscan] sane_snapscan_open (/dev/sga, 0xbffff5d0)
<BR>
[snapscan] find_device
<BR>
[snapscan] sane_snapscan_open: allocated scanner structure at 0x804dc08
<BR>
[snapscan] open_scanner
<BR>
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
<BR>
[sanei_scsi] sanei_scsi_open: SG driver version: 30115[snapscan]
<BR>
wait_scanner_ready
<BR>
[snapscan] test_unit_ready
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[snapscan] request_sense
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 56 bytes
<BR>
[snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
<BR>
[snapscan] sense_handler: sense key is invalid.
<BR>
[snapscan] sane_snapscan_open: performing scanner self test.
<BR>
[snapscan] send_diagnostic
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_open_extended: using 262144 bytes as SCSI buffer
<BR>
<P>[sanei_scsi] trying to enable low level command queueing
<BR>
[sanei_scsi] sanei_scsi_open: Host adapter queue depth: 1
<BR>
[sanei_scsi] sanei_scsi_open: SG driver ca[snapscan] wait_scanner_ready
<BR>
[snapscan] test_unit_ready
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[snapscan] request_sense
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 56 bytes
<BR>
[snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
<BR>
[snapscan] sense_handler: sense key is invalid.
<BR>
[snapscan] sane_snapscan_open: performing scanner self test.
<BR>
[snapscan] send_diagnostic
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008 n change buffer size at
<BR>
run time
<BR>
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
<BR>
[snapscan] wait_scanner_ready
<BR>
[snapscan] test_unit_ready
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
<BR>
[snapscan] request_sense
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] sanei_scsi_req_wait: read 56 bytes
<BR>
[snapscan] sense_handler(5, 0xbffff408, 0x804dc08)
<BR>
[snapscan] sense_handler: sense key is invalid.
<BR>
[snapscan] sane_snapscan_open: performing scanner self test.
<BR>
[snapscan] send_diagnostic
<BR>
[sanei_scsi] scsi_req_enter: entered 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
<BR>
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x4017d008
<BR>
[sanei_scsi] sanei_scsi.issue: 0x4017d008
<BR>
-------------
<BR>
and that's all. after this program &quot;hangs&quot; (it can be interrupted by
<BR>
ctrl-C, but it doesn't reply anything)
<BR>
the same configuration works under MustDie'95 fine....
<BR>
so what's wrong?
<BR>
<P><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?Subject=Re:%20SnapScan%201236s%20troubles&In-Reply-To=&lt;398AFB69.8821CADD@yahoo.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: quick note from the TWAIN/SANE meeting at OLS"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0047.html">David Mosberger-Tang: "Re: quick note from the TWAIN/SANE meeting at OLS"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#48">[ date ]</A>
<A HREF="index.html#48">[ thread ]</A>
<A HREF="subject.html#48">[ subject ]</A>
<A HREF="author.html#48">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri Aug 04 2000 - 10:30:54 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>