<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
I want to connect my scanner to laptop and use the sane library to actually scan an image. However, there seems to be a problem, i.e. scanimage and xsane are not able to startup and give this error code :<BR>
scanimage: open of device gt68xx:libusb:004:012 failed: Invalid argument<BR>
<BR>
At the same time, following log message appears :<BR>
Jan 4 10:36:41 localhost kernel: [4299192.689000] usb 4-2: USB disconnect, address 12<BR>
Jan 4 10:36:41 localhost kernel: [4299192.884000] usb 4-2: new full speed USB device using uhci_hcd and address 13<BR>
<BR>
I know that the scanner (MD9459) has no onboard firmware and that a small firware file needs to be downloaded before the scanner actually is able to work. So, my guess, from the traces, is that scanimage (xsane) :<BR>
-find out the usb bus/device of the scanner (4/12 in the example above)<BR>
-download the firware file<BR>
-disconnect the usb to kick start the firware in the scanner<BR>
-try to connect to the scanner again, on the same bus/device (4/12)<BR>
<BR>
However, after disconnecting the scanner (3rd point above), the scanner driver (uhci_hcd?) enumerates all usb devices again, and for some reason, it gives the scanner a new device number (13). This is not known to scanimage, which still tries to access the scanner via the previous device number... and fails <IMG SRC="cid:1136367992.13042.12.camel@localhost.localdomain" ALIGN="middle" ALT=":-(" BORDER="0"><BR>
I can imagine that incrementing the device number is something from the usb spec, so the problem lies more on the sane level...<BR>
Anyway, any suggestions?<BR>
<BR>
I'm using the latest sane, xsane, libusb drivers (did an update this morning), but the problem persists...<BR>
<BR>
Regards,<BR>
<BR>
Manuel
</BODY>
</HTML>