Subject: Re: ioctls for dev/usb/uscanner.c
To: Charles M. Hannum <abuse@spamalicious.com>
From: None <brook@biology.nmsu.edu>
List: current-users
Date: 06/24/2004 08:47:03
Charles M. Hannum writes:
 > Please update your libusb from -current pkgsrc and try it again.  I fixed an 
 > important bug yesterday (which was also causing "timeouts" with PTP cameras 
 > and gphoto).

Thank you for fixing that bug.  However, it still doesn't resolve the
basic problem I am having, which is illustrated by the following error
messages:

     [epson] attach_one_usb(libusb:/dev/usb1:/dev/ugen0)
     [epson] SANE Epson Backend v0.2.41 - 2004-02-01
     [epson] attach(libusb:/dev/usb1:/dev/ugen0, 3)
     [epson] attach: opening libusb:/dev/usb1:/dev/ugen0
     [sanei_usb] sanei_usb_open: trying to open device `libusb:/dev/usb1:/dev/ugen0'
     [sanei_usb] sanei_usb_open: found bulk-in endpoint (address 1)
     [sanei_usb] sanei_usb_open: found bulk-out endpoint (address 2)
     [sanei_usb] sanei_usb_open: opened usb device `libusb:/dev/usb1:/dev/ugen0' (*dn=0)
     [sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x04b8, productID: 0x011b
     [epson] Found valid EPSON scanner: 0x4b8/0x11b (vendorID/productID)
     [epson] reset()
     [epson] send buf, size = 2
     [epson] buf[0] 1b .
     [epson] buf[1] 40 @
     [sanei_usb] sanei_usb_write_bulk: trying to write 2 bytes
     [sanei_usb] 0000: 1B 40                                           .@..............
     [sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 2 bytes
     [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
     USB error: error reading from bulk endpoint /dev/ugen0.01: Connection timed out
     [sanei_usb] sanei_usb_read_bulk: read failed: Connection timed out

Thus, it seems that there remain issues with the interaction between
libusb and ugen that will be difficult to solve.  In the meantime, the
uscanner interface remains the only option.  As a fallback option it
seems counterproductive to have a driver (uscanner) that could work
but is purposely made useless for its intended application.  I remain
hopeful that this one ioctl will be supported.

Cheers,
Brook