<div dir="ltr">Great clarification, it's very interesting stuff. Thanks a lot. I got another pi to use with the second 9000f; other combinations of scanners on a single pi should be more successful.<div><br></div><div>

- Joel</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 5:31 PM, Olaf Meeuwissen <span dir="ltr"><<a href="mailto:olaf.meeuwissen@avasys.jp" target="_blank">olaf.meeuwissen@avasys.jp</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
Joel Penner writes:<br>
<br>
> With both 9000f scanners connected, it's:<br>
><br>
> pi@raspberrypi ~/sambashare2 $ sudo LD_LIBRARY_PATH=/usr/lib/:/lib<br>
> scanimage -L<br>
> device `pixma:04A91908' is a CANON Canoscan 9000F multi-function peripheral<br>
> device `pixma:04A91908' is a CANON Canoscan 9000F multi-function peripheral<br>
> pi@raspberrypi ~/sambashare2 $<br>
<br>
</div>The "pixma:04A91908" bit is what you pass to scanimage's --device-name<br>
option.  This is then used by the pixma backend to decide which device<br>
it should use.  Unfortunately, this backend is not (yet) able to tell<br>
the two devices apart.<br>
<div class=""><br>
>> On Sun, Feb 23, 2014 at 12:15 AM, Joel Penner <<a href="mailto:joelcpenner@gmail.com">joelcpenner@gmail.com</a>><br>
>> wrote:<br>
>> > Using lsusb -t I get this feedback:<br>
>> ><br>
>> > pi@raspberrypi ~ $ lsusb -t<br>
>> > /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M<br>
>> >     |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M<br>
>> >         |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M<br>
>> >         |__ Port 3: Dev 11, If 0, Class=vend., Driver=usbfs, 480M<br>
<br>
</div>So the USB layer has no problems telling your two devices apart.  One<br>
reason that many backends do not want to expose the Dev part of this<br>
output is that it changes every time you reconnect or power-cycle your<br>
scanner.  That leads to changing device names, something that confuses<br>
many users.  The pixma backend is one of those backends and it has opted<br>
to exposo a device name that does *not* changes across reconnections,<br>
power-cycling and system reboots.  It does so at the expense of not<br>
supporting two or more devices of the same make.<br>
<div class=""><br>
>> > I do notice how sane-find-scanner returns the bus/port data:<br>
>> ><br>
>> > sudo sane-find-scanner<br>
</div><div class="">>> > found USB scanner (vendor=0x04a9 [Canon], product=0x1908 [CanoScan]) at<br>
>> > libusb:001:011<br>
>> > found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003<br>
>> ><br>
>> > How would I use the libusb:001:011 identifier for the 9000f with<br>
>> > scanimage?<br>
<br>
</div>This would require changes to the pixma backend code.  It could for<br>
example add support for "pixma:libusb:001:011" style device name,<br>
possibly as aliases for "pixma:04A91908".  That way, user with only one<br>
device don't have to bother with the changing device names, but users<br>
like yourself with more than one would be able to pick one or the other<br>
with the libusb "alias".<br>
<br>
The drawback of this is that it would show twice as many device names as<br>
are connected.<br>
<div class=""><br>
>> > If I try to tell scanimage to use one of those with the -device option, I<br>
>> > get this feedback:<br>
>> ><br>
>> > pi@raspberrypi ~/sambashare $ sudo LD_LIBRARY_PATH=/usr/lib/:/lib<br>
>> scanimage<br>
>> > --progress --verbose --batch --format=tiff --resolution=2400 -x 240 -y<br>
>> 135<br>
>> > -d libusb:001:011 --batch-start=110000 > /home/pi/sambashare/myco%5d.tif<br>
>> > scanimage: open of device libusb:001:011 failed: Invalid argument<br>
<br>
</div>This tells scanimage to look for a libusb SANE backend.  Such a backend<br>
does not exist so you get the invalid argument error.<br>
<br>
Hope this clarifies,<br>
<div class="HOEnZb"><div class="h5">--<br>
Olaf Meeuwissen, LPIC-2           FLOSS Engineer -- AVASYS CORPORATION<br>
FSF Associate Member #1962               Help support software freedom<br>
                 <a href="http://www.fsf.org/jf?referrer=1962" target="_blank">http://www.fsf.org/jf?referrer=1962</a><br>
<br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>
</div></div></blockquote></div><br></div>