lindalion, dccharacter, I have same problem with Samsung SCX-3185.
It's because sane 1.0.22 have an issue in xerox_mfp module. I have applied patch from (it can be downloaded from http://anonscm.debian.org/gitweb/?p=...3fa63e0a25b3f7), recompiled xerox_mfp using toolchain (file attached) and placed it into /opt/lib/sane.
After that my scanner is detected by xerox_mfp module, but now i have timeout error in sanei_usb.
Most interesting log fragment:
Code:
[sanei_usb] sanei_usb_open: opened usb device `libusb:003:003' (*dn=0)
[xerox_mfp] :: dev_command(INQUIRY[0x12], 70)
[sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes
[sanei_usb] 000 1B A8 12 00 ....
[sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes
[sanei_usb] sanei_usb_read_bulk: trying to read 1024 bytes
USB error: error reading from bulk endpoint 0x84: Connection timed out
[sanei_usb] sanei_usb_read_bulk: read failed: Connection timed out
[xerox_mfp] usb_dev_request: sanei_usb_read_bulk: Error during device I/O
[xerox_mfp] dev_command: dev_request: Error during device I/O
[xerox_mfp] usb_dev_close: closing dev 0x41dda0
[sanei_usb] sanei_usb_close: closing device 0
[xerox_mfp] list_one_device: dev_inquiry(libusb:003:003): Error during device I/O
strace log:
Code:
open("/proc/bus/usb/003/003", O_RDWR) = 4
ioctl(4, USBDEVFS_SETCONFIGURATION, 0x7fff49d4) = 0
ioctl(4, USBDEVFS_CLAIMINTERFACE, 0x7fff49d4) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0
gettimeofday({1326197756, 621351}, NULL) = 0
ioctl(4, USBDEVFS_SUBMITURB, 0x7fff481c) = 0
ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fff4800) = 0
ioctl(4, USBDEVFS_BULK, 0x7fff4900) = 70
ioctl(4, USBDEVFS_BULK, 0x7fff4900) = -1 ETIMEDOUT (Connection timed out)
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff493c) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0
ioctl(4, USBDEVFS_RELEASEINTERFACE, 0x7fff4a2c) = 0
close(4) = 0
Same error in rtn-r3702 (2.6 kernel) and d-r2624 (2.4 kernel).
I belive the problem can be in sanei_usb or libusb, but I can't recompile it yet.