[sane-devel] sane fails to recognize my nikon coolscan IV

Stef stef.dev at free.fr
Wed Dec 28 08:17:25 UTC 2011


Le jeudi 15 décembre 2011 22:04:35 Travis Parker a écrit :
> On Wed, Dec 14, 2011 at 08:01:39PM -0800, Travis Parker wrote:
> 
> I narrowed it down to being in a libusb_set_configuration, and
> specifically in libusb/os/linux_usbfs.c:op_set_configuration an error
> from the ioctl(), but couldn't find any reason that it might come back
> with EPIPE (errno 32), that's never mentioned in the manpages.
> 
> I ran the scanimage with more debugging output (below). It also came out
> exactly this way when I configured sane with --enable-libusb_1_0, so
> that rules out the compatibility layer at least. Is there anything else
> I can provide to help diagnose the issue?
> 
> --travis
> 
> [teepark at spaceghost ~]$ SANE_DEBUG_COOLSCAN3=255 SANE_DEBUG_SANEI_USB=255
> scanimage -L [sanei_debug] Setting debug level of coolscan3 to 255.
> [coolscan3] coolscan3 backend, version 1.0.0 initializing.
> [sanei_debug] Setting debug level of sanei_usb to 255.
> [sanei_usb] sanei_usb_init: marking existing devices
> [sanei_usb] sanei_usb_init: Looking for kernel scanner devices
> [sanei_usb] sanei_usb_init: can't stat /dev/usb/: No such file or directory
> [sanei_usb] sanei_usb_init: Looking for libusb devices
> [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002, interface 0 doesn't look
> like a scanner (9/9) [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002: no
> suitable interfaces [sanei_usb] sanei_usb_init: device 0x8087/0x0024,
> interface 0 doesn't look like a scanner (9/9) [sanei_usb] sanei_usb_init:
> device 0x8087/0x0024: no suitable interfaces [sanei_usb] sanei_usb_init:
> device 0x04f2/0xb217, interface 0 doesn't look like a scanner (239/14)
> [sanei_usb] sanei_usb_init: device 0x04f2/0xb217, interface 1 doesn't look
> like a scanner (239/14) [sanei_usb] sanei_usb_init: device 0x04f2/0xb217:
> no suitable interfaces [sanei_usb] sanei_usb_init: device 0x1d6b/0x0002,
> interface 0 doesn't look like a scanner (9/9) [sanei_usb] sanei_usb_init:
> device 0x1d6b/0x0002: no suitable interfaces [sanei_usb] sanei_usb_init:
> device 0x8087/0x0024, interface 0 doesn't look like a scanner (9/9)
> [sanei_usb] sanei_usb_init: device 0x8087/0x0024: no suitable interfaces
> [sanei_usb] sanei_usb_init: found libusb device (0x04b0/0x4000) interface 0
>  at libusb:002:009 [sanei_usb] store_device: add dn 0 with libusb:002:009
> [sanei_usb] sanei_usb_init: found 1 devices
> [sanei_usb] sanei_usb_init: device 00 is libusb:002:009
> [coolscan3] sane_coolscan3_get_devices
> [coolscan3] sane_get_devices(): Reading config file.
> [coolscan3] cs3_open, device = auto, interface = 0
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b0, product=0x4000
> [coolscan3] cs3_open, device = libusb:002:009, interface = 2
> [coolscan3] cs3_open, trying to open libusb:002:009, assuming USB interface
> [sanei_usb] sanei_usb_open: trying to open device `libusb:002:009'
> libusb:error [op_set_configuration] failed, error -1 errno 32
> [sanei_usb] sanei_usb_open: libusb complained: Numerical result out of range
> [coolscan3]  ...failed: Invalid argument.
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b0, product=0x4001
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b0, product=0x4002
> [coolscan3] sane_coolscan3_get_devices: 0 device(s) detected.
> 
> 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).
> [coolscan3] sane_coolscan3_exit

	Hello,

	I have faced the same kind of issues. Depending on kernel/hardware 
combination, I sometime meet the same libusb error. Compiling with libusb-1.0 
solves it for me. Maybe in your case you could try the "old" libusb, without 
the compatibility layer ? What kernel version are you running ?

Regards,
	Stef


	



More information about the sane-devel mailing list