[sane-devel] Problem with AGFA Snapscan 1212U-2

Linus Lotz linus at lotz.li
Wed Aug 31 23:15:00 UTC 2016


Hello,
I have problems setting up my Snapscan 1212U-2 with sane. I extracted
the firmware file from the CD and put it to
"/usr/share/sane/snapscan/1212U2.bin".
In /etc/sane.d/snapscan.conf I set the firmware setting as follows:
firmware /usr/share/sane/snapscan/1212U2.bin

When I try to scan I get an "Error during device I/O". Scanning for the
scanner with "scanimage -L" only works the first time, I have to unplug
it for it to be found again. The LED also changes from blinking to
steady light during the first scanner detection.

This is the debug output for two runs of "scanimage -L":
 # SANE_DEBUG_SNAPSCAN=255 scanimage -L
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_usb_device(libusb:002:029)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:002:029)
[snapscan] snapscani_mutex_open: using IPC key 0xe64c09cc for device
libusb:002:029
[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(1,0x7ffeee3e92b0,6,0x7ffeee3e92c0,0x7ffeee3e92a8 (36))
[snapscan]
atomic_usb_cmd(1,0x7ffeee3e92b0,6,0x7ffeee3e92c0,0x7ffeee3e92a8 (36))
[snapscan] usb_cmd(1,0x7ffeee3e92b0,6,0x7ffeee3e92c0,0x7ffeee3e92a8 (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00
0x41 0x47 ...
[snapscan] Read 36 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN" a
supported scanner?
[snapscan] snapscani_get_model_id(SNAPSCAN, 1, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID 0x06bd,0x2061.
[snapscan] snapscani_check_device: Autodetected driver: SnapScan
[snapscan] snapscani_usb_close(1)
[snapscan] 1st read 3 write 1
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0x7ffeee3ea520, 0)
device `snapscan:libusb:002:029' is a AGFA SNAPSCAN flatbed scanner
[snapscan] sane_snapscan_exit
 # SANE_DEBUG_SNAPSCAN=255 scanimage -L
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_usb_device(libusb:002:029)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:002:029)
[snapscan] snapscani_mutex_open: using IPC key 0xe64c09cc for device
libusb:002:029
[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(1,0x7ffe742f18c0,6,0x7ffe742f18d0,0x7ffe742f18b8 (36))
[snapscan]
atomic_usb_cmd(1,0x7ffe742f18c0,6,0x7ffe742f18d0,0x7ffe742f18b8 (36))
[snapscan] usb_cmd(1,0x7ffe742f18c0,6,0x7ffe742f18d0,0x7ffe742f18b8 (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read Only 0 bytes read
[snapscan] usb_read: reading:  0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 0 bytes
[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(1)
[snapscan] 1st read 0 write 1
[snapscan] sane_snapscan_get_devices (0x7ffe742f2b30, 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

Sane version:
 # scanimage --version
scanimage (sane-backends) 1.0.25; backend version 1.0.25


What could be the problem?

Kind Regards,
Linus Lotz



More information about the sane-devel mailing list