[sane-devel] Umax Astra 2200, USB, SuSE 9.0. Sometimes (!) scanning/preview fails.

Peter Kindermann mail@peterkindermann.de
Fri, 31 Oct 2003 15:49:15 +0100


Hi,

I use Umax 2200 (SU) with USB under SuSE 9.0 (Kernel
2.4.21-99). sane backend version 1.0.12. xscanimage (sane-frontends)
1.0.10.

I have problem with scanning which some others in this list had too
[1], but the answers do not solve my problems. So I am verbose.

At first good news: The scanner is recognized by the system :-)


~> sane-find-scanner
found USB scanner (vendor=3D0x1606, product=3D0x0230) at /dev/usb/scanner=
0
found USB scanner (vendor=3D0x1606, product=3D0x0230) at /dev/usbscanner
found USB scanner (vendor=3D0x1606, product=3D0x0230) at libusb:001:081


~> scanimage -L
device `umax:/dev/usb/scanner0' is a UMAX     Astra 2200       flatbed sc=
anner
device `umax:/dev/usbscanner' is a UMAX     Astra 2200       flatbed scan=
ner


~> l /dev/usb/scanner0 /dev/usbscanner
crw-rw----    1 pete     scanner  180,  48 2003-09-23 20:01 /dev/usbscann=
er
crw-rw----    1 pete     scanner  180,  48 2003-09-23 20:01 /dev/usb/scan=
ner0


# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 080: ID 03eb:3301 Atmel Corp. 4-port Hub
Bus 001 Device 081: ID 1606:0230 Umax [hex] Astra 2200/2200SU


So far everything is fine!


BUT sometimes (!) I get PROBLEMS while scanning. :-(
I use ~> xscanimage (e.g.)

Sometimes while getting the preview the scanner stops and xscanimage
freezes. But sometimes I get the preview with the same settings
without problems. I cannot see any rule behind it.


Aquiring the preview:

,----[no problem]
| [umax]   SCSI command successfully executed
| [umax] do_calibration
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got 08)
| [umax] mini_init_scanner
| [umax] scanner reports Error during device I/O, waiting ...
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] sane_get_parameters
| [umax] sane_set_io_mode: non_blocking=3D1
| [umax] sane_get_select_fd
| [umax] reader_process started
| [umax] reader_process: starting to READ data
| [umax] trim_rowbufsize: row_bufsize =3D 8910 bytes =3D 10 lines
| [umax] reading 364419 bytes in blocks of 8910 bytes
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] umax_queue_read_image_data_req for buffer[0], length =3D 8910
| [umax] Sending SCSI cmd 0x28 cdb len 10, param len 0, result len 8910
| [umax]   SCSI cmd returned 8910 bytes
| [umax]   SCSI command successfully executed
| [...]
| [umax] sane_read: read -1 bytes
| [umax] sane_read: EAGAIN
| [umax] reader_process: finished reading data
| [umax] sane_read: read 3971 bytes
| [umax] sane_read: read 0 bytes
| [umax] do_cancel
`----

1min later: aquiring the preview with exact the same settings, but the
scanning fails
,----[problem]
|=20
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got 08)
| [umax] mini_init_scanner
| [umax] scanner reports Error during device I/O, waiting ...
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] reader_process started
| [umax] reader_process: starting to READ data
| [umax] trim_rowbufsize: row_bufsize =3D 8910 bytes =3D 10 lines
| [umax] reading 364419 bytes in blocks of 8910 bytes
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax] sane_get_parameters
| [umax] sane_set_io_mode: non_blocking=3D1
| [umax] sane_get_select_fd
|=20
`----
Scanner stops.



BTW: [ ] Quality calibration is deactivated


If I scan a picture sometimes the scanner stops while scanning:

,----[problems while scanning]
| [umax] error in sanei_pv8630_bulkread (got a5)
| [umax] umax_queue_read_image_data_req: command returned status Error du=
ring device I/O
| [umax] ERROR: umax_reader_process: unable to queue read image data requ=
est!
| [umax] reader_process: finished reading data
| [umax] sane_read: read 0 bytes
| [umax] do_cancel
| [umax] killing reader_process
| [umax] reader_process killed
| [umax] trying to release scanner ...
| [umax] Sending SCSI cmd 0x17 cdb len 6, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got a5)
| [umax] umax_give_scanner: command returned status Error during device I=
/O
| [umax] trying to reposition scanner ...
| [umax] Sending SCSI cmd 0x31 cdb len 10, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got a5)
| [umax] umax_reposition_scanner: command returned status Error during de=
vice I/O
| [umax] closing scannerdevice filedescriptor
| [umax] closing read end of pipe
| [umax] sane_cancel
`----

Scanner stops. "Recieving RGB data for 'bild.pnm" hangs. No process.

but 1 min later after plugging the scanner from the usb-Port off and
then again in I get (with exact the same settings!):

,----[No problem while scanning same setting as above]
| [umax] PV8630 initialized
| [umax] sane_start: umax_scsi_open_extended returned scsi buffer size =3D=
 32768
| [umax] grab_scanner
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] Sending SCSI cmd 0x16 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner reserved
| [umax] set_window_param
| [umax] window descriptor block created with 82 bytes
| [umax] Sending SCSI cmd 0x24 cdb len 10, param len 254, result len 0
| [umax]   SCSI command successfully executed
| [umax] window(s) set
| [umax] start_scan
| [umax] starting scan
| [umax] Sending SCSI cmd 0x1b cdb len 6, param len 1, result len 0
| [umax]   SCSI command successfully executed
| [umax] do_calibration
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got 08)
| [umax] mini_init_scanner
| [umax] scanner reports Error during device I/O, waiting ...
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax] error in sanei_pv8630_bulkread (got 08)
| [umax] mini_init_scanner
| [...]
| [umax] error in sanei_pv8630_bulkread (got 08)
| [umax] mini_init_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] [umax] sane_get_parameters
| [umax] sane_set_io_mode: non_blocking=3D1
| [umax] sane_get_select_fd
| reader_process started
| [umax] reader_process: starting to READ data
| [umax] trim_rowbufsize: row_bufsize =3D 360 bytes =3D 40 lines
| [umax] reading 189 bytes in blocks of 360 bytes
| [umax] wait_scanner
| [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner ready
| [umax] umax_queue_read_image_data_req for buffer[0], length =3D 189
| [umax] Sending SCSI cmd 0x28 cdb len 10, param len 0, result len 189
| [umax]   SCSI cmd returned 189 bytes
| [umax]   SCSI command successfully executed
| [umax] umax_queue_read_image_data_req: id for buffer[0] is 0x812a2d8
| [umax] umax_reader_process: read image data queued for buffer[0]
| [umax] umax_wait_queued_image_data for buffer[0] (id=3D0x812a2d8)
| [umax] umax_reader_process: buffer of 189 bytes read; 0 bytes to go
| [umax] sane_read: read 189 bytes
| [umax] reader_process: finished reading data
| [umax] sane_read: read 0 bytes
| [umax] do_cancel
| [umax] killing reader_process
| [umax] reader_process killed
| [umax] trying to release scanner ...
| [umax] Sending SCSI cmd 0x17 cdb len 6, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] scanner released
| [umax] trying to reposition scanner ...
| [umax] Sending SCSI cmd 0x31 cdb len 10, param len 0, result len 0
| [umax]   SCSI command successfully executed
| [umax] not waiting for finishing reposition scanner
| [umax] closing scannerdevice filedescriptor
| [umax] closing read end of pipe
| [umax] sane_cancel
`----




,----[/var/log/messages scanning is ok!]
| Okt 31 14:51:47 galilei xscanimage: resmgr: server response code 502
| Oct 31 14:51:47 galilei resmgr[1288]: disconnect from pete
| Oct 31 14:51:58 galilei resmgr[1288]: accepted connection from user pet=
e
| Oct 31 14:51:58 galilei resmgr[1288]: disconnect from pete
`----

Mostly no other messages, if scanning fails. Mhm.


I am helpless. Du you have any ideas?
Thanks, at least for reading.

Peter

[1]
http://lists.alioth.debian.org/pipermail/sane-devel/2003-July/008437.html=
=20