[sane-devel] Problems with libusb and Snapscan 1236U (maybe similar to others)

D. Winkler winkler@skynet-it.de
Sat, 28 Feb 2004 16:34:51 +0100


Hello together,

my current system:
Debian unstable (with the corresponding sane packages)
Kernel 2.6.3
Agfa SnapScan 1236U

With my older Kernel 2.4.x and scanner.o everything went fine. After
switching to 2.6.3, xsane and Co. arent able to use the scanner via
libusb.

Some effects:
sane-find-scanner does its job and ALWAYS reports the correct data
scanimage -L works ONCE. But it is not able to detect it a second time.

Here is the debug output of "SANE_DEBUG_SNAPSCAN=255 scanimage -L" (as
root, so no permission problems can occur), started two times:

The FIRST time:

[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.35
[snapscan] add_usb_device(libusb:001:010)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:001:010)
[snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor
ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] atomic_usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00
0x41 0x47 ...
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN
1236U" a supported scanner?
[snapscan] snapscani_get_model_id(SNAPSCAN 1236U, 0, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID
0x06bd,0x0002.
[snapscan] snapscani_check_device: Autodetected driver: SnapScan1236
[snapscan] snapscani_usb_close(0)
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0xbfffe928, 0)
device `snapscan:libusb:001:010' is a AGFA SNAPSCAN 1236U flatbed
scanner
[snapscan] sane_snapscan_exit


* * *

The SECOND time:

[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.35
[snapscan] add_usb_device(libusb:001:010)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:001:010)
[snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor
ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] atomic_usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] usb_cmd(0,0xbfffd730,6,0xbfffd700,0xbfffd6fc (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00

/* ... time goes by ... */

[snapscan] usb_read Only 0 bytes read
[snapscan] usb_read: reading:  0x32 0x00 0x00 0x00 0xff 0x00 0x00 0x00
[snapscan] mini_inquiry: snapscan_cmd command failed: Error during
device I/O
[snapscan] snapscani_check_device: mini_inquiry failed with Error during
device I/O.
[snapscan] snapscani_usb_close(0)
[snapscan] sane_snapscan_get_devices (0xbfffe928, 0)

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[snapscan] sane_snapscan_exit

* * *


I read of some similar problems on this mailing list, but they werent
exactly the same or it was a different model. Maybe its a more general
problem, so I posted it here.


It would be very nice, if someone already had a solution what to do ...


Sincerely
Daniel Winkler