[sane-devel] 1.0.25 won't find epson 10000xl.

Olaf Meeuwissen paddy-hack at member.fsf.org
Thu Nov 19 12:00:26 UTC 2015


Hi Tom,

Tom Lists writes:

> I did a clean install of El Capitan. So no it didn’t as the 1.0.24
> wouldn’t install.  It works fine on this same computer and 1.0.24
> running Yosemite however.

OK, so that changes two things at a time, making the debugging a bit
more speculative.

>> On Nov 13, 2015, at 4:19 AM, Olaf Meeuwissen <paddy-hack at member.fsf.org> wrote:
>> [...]
>> 
>> Can you retry with SANE_DEBUG_SANEI_USB=127 and SANE_DEBUG_EPSON2=10?

I'll be snipping the "uninteresting" bits and comment on the log as I
walk through it.

> LadyLex-i7:sane-backends-1.0.25 tmyers$ 
>   [Restored Nov 13, 2015, 11:42:50 AM]
> SANE_DEBUG_SANEI_USB=127 SANE_DEBUG_EPSON2=10 scanimage -d epson2 --format=tiff > /tmp/ix.tiff
> [...]
> usb_set_debug: Setting debugging level to 255 (on)

That's libusb-0.1.

> [sanei_usb] sanei_usb_scan_devices: marking existing devices
> [sanei_usb] libusb_scan_devices: Looking for libusb devices

And that too.

> [... looping over busses and devices ...]
> libusb/darwin.c usb_os_find_devices: Found 022-04b8-0129-ff-ff on 003 at location 0x336592896x

That's an Epson Expression 10000XL.

> usb_os_open: 04b8:0129
> libusb/darwin.c usb_control_msg (device: 022-04b8-0129-ff-ff): 128 6 512 0 0x7fff502ce7d0 8 1000
> libusb/darwin.c usb_control_msg (device: 022-04b8-0129-ff-ff): 128 6 512 0 0x7fea02d01040 32 1000
> usb_os_close: 04b8:0129
> [...]
> [sanei_usb] libusb_scan_devices: found libusb device (0x04b8/0x0129) interface 0  at libusb:003:022-04b8-0129-ff-ff
> [sanei_usb] store_device: add dn 2 with libusb:003:022-04b8-0129-ff-ff
> [sanei_usb] sanei_usb_scan_devices: device 00 is libusb:001:006-0b95-1790-ff-ff
> [sanei_usb] sanei_usb_scan_devices: device 01 is libusb:002:006-05ac-8286-ff-01
> [sanei_usb] sanei_usb_scan_devices: device 02 is libusb:003:022-04b8-0129-ff-ff
> [sanei_usb] sanei_usb_scan_devices: found 3 devices

Of which one is your Epson Expression 10000XL.

> [epson2] sane_epson2_open: name =

The epson2 backend starts looking for the first supported scanner.

> [...]
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x0129
> [epson2] attach_one_usb: dev = libusb:003:022-04b8-0129-ff-ff
> [epson2] attach: devname = libusb:003:022-04b8-0129-ff-ff, type = 3
> [epson2] e2_dev_init
> [epson2] open_scanner: libusb:003:022-04b8-0129-ff-ff
> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:022-04b8-0129-ff-ff'
> usb_os_open: 04b8:0129
> usb_claim_interface: called for interface 0
> Interface 0 of device is 0x000010bb
> claim_interface: Interface 0 of device from QueryInterface is 0x7fea05201900
> USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access
> USB error: usb_claim_interface: couldn't claim interface
> [sanei_usb] sanei_usb_open: libusb complained: usb_claim_interface: couldn't claim interface
> usb_os_close: 04b8:0129
> [epson2] libusb:003:022-04b8-0129-ff-ff open failed: Invalid argument

It found the Epson Expression 10000XL but something else has already
claimed exclusive access.

> [...]
> [epson2] attach_one_config: len = 17, line = usb 0x04b8 0x0129
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x0129

Yes, we found one ...

> [epson2] attach_one_usb: dev = libusb:003:022-04b8-0129-ff-ff
> [epson2] attach: devname = libusb:003:022-04b8-0129-ff-ff, type = 3
> [epson2] e2_dev_init
> [epson2] open_scanner: libusb:003:022-04b8-0129-ff-ff
> [sanei_usb] sanei_usb_open: trying to open device `libusb:003:022-04b8-0129-ff-ff'
> usb_os_open: 04b8:0129
> usb_claim_interface: called for interface 0
> Interface 0 of device is 0x000011ab
> claim_interface: Interface 0 of device from QueryInterface is 0x7fea05201850
> USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access
> USB error: usb_claim_interface: couldn't claim interface
> [sanei_usb] sanei_usb_open: libusb complained: usb_claim_interface: couldn't claim interface
> usb_os_close: 04b8:0129
> [epson2] libusb:003:022-04b8-0129-ff-ff open failed: Invalid argument

... but, like before, it's been claimed exclusively by something else.

> [epson2] attach_one_config: len = 17, line = usb 0x04b8 0x014b
> [sanei_usb] sanei_usb_find_devices: vendor=0x04b8, product=0x014b

Huh?  Where's this coming from?  Your epson2.conf?
This is an Epson Expression 11000XL, by the way.

> [epson2] attach_one_config: len = 17, line = net autodiscovery

Oh, great :-|  Let's look for network attached devices.

> [epson2] e2_network_discovery, sent discovery packet
> [epson2]  response from 192.168.44.90
> [...]
> [epson2]  model name      : PID 08B9

Okay so you have a WorkForce 76x0 on your network somewhere.

> [...]
> [epson2] open_scanner: net:192.168.44.90

Let's use this then.

> [...]
> [epson2] e2_send: FS G
> [...]
> [epson2] e2_scan_finish
> [epson2] * sane_epson2_cancel
> [epson2] * sane_epson2_close
> [epson2] close_scanner: fd = 3
> [epson2] sanei_epson_net_unlock
> [epson2] sane_epson2_exit

So, what went wrong?

>From the subject, I assume you expected this to scan from your 10000XL.
Instead, it scanned from a WorkForce 76x0.  I have no idea where that
11000XL is coming from.

You can disable the networked device in epson2.conf easily enough but
that still does not allow you to scan with the 10000XL.  The log quite
clearly indicates that some other application already grabbed exclusive
access.  Any idea which application that might be?

Would you happen to have saned running (or started by xinetd on demand)?
Maybe some monitoring application for TWAIN getting in the way.  I have
zero experience with running SANE-TWAIN on a Mac so I'm just shooting in
the dark.  Maybe you can provide a list of *all* processes that are
running when you run this scanimage command?  That might shed some light
on this.  Have a look at the ps manual page.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
Support Free Software               Support the Free Software Foundation
https://my.fsf.org/donate                        https://my.fsf.org/join
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9




More information about the sane-devel mailing list