[sane-devel] connecting to Epson PX-A550 (CX4600)

Olaf Meeuwissen olaf.meeuwissen@avasys.jp
Fri, 08 Apr 2005 10:11:34 +0900


davidsmith@acm.org (David D. Smith) writes:

> I am attempting to use an Epson PX-A550 (US model CX4600) using the
> epkowa backend (1.0.195 in sane-backends 1.0.15) from an IBM ThinkPad

Please note that the epkowa backend is NOT part of sane-backends.  It
is part of Image Scan! for Linux (and Debian's libsane-extras package
>= 1.0.15.8).  From your log it looks like you're using the latter.

> X40 laptop using kernel 2.6.11 and libusb 0.1.10a both from Debian
> GNU/Linux. sane-find-scanner finds the scanner but when I try to use
> it e.g. with scanimage -L, it fails. Attached is a debug log captured
> with `SANE_DEBUG_SANEI_USB=128 SANE_DEBUG_DLL=128
> SANE_DEBUG_EPKOWA=128 scanimage -L` and my /proc/bus/usb/devices file
> at that time. My dll.conf file only contains the single entry for
> epkowa as this scanner is supported only by that driver. The error

It should also work with the epson backend in CVS or by adding

  usb 0x04b8 0x080e

to your epson.conf.

> point is the first time epkowa attempts to send the initialize command
> to the device; the command apparently never reaches the scanner
> because libusb returns a "No such file or directory" error immediately
> when trying to talk to the found endpoint. I can't tell if something
> is failing earlier in the initialization.
>
> Any advice greatly appreciated,
>
> {snip}
> [epkowa] SANE EPSON KOWA Backend 1.13.1 - 2005-01-07
> [epkowa] attach(libusb:002:014, 3)
> [epkowa] attach: opening libusb:002:014
> [sanei_usb] sanei_usb_open: trying to open device `libusb:002:014'
> [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:002:014' (*dn=0)
> [sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x04b8, productID: 0x080e
> [epkowa] Found valid EPSON scanner: 0x4b8/0x80e (vendorID/productID)

Everything up to here looks fine.

> [epkowa] send buf, size = 2
> [epkowa] buf[0] 1b .
> [epkowa] buf[1] 40 @
> [sanei_usb] sanei_usb_write_bulk: trying to write 2 bytes
> [sanei_usb] 0000: 1B 40                                           .@..............
> USB error: error submitting URB: No such file or directory

Looks like there is something fishy with your USB.  Does the device
listed above (in this log libusb:002:014) exist?  That is, does
/proc/bus/usb/002/014 exist?
What permissions are set on /proc/bus/usb/002?

FYI, on Debian testing, your scanner works fine with this version of
the epkowa backend and kernel version 2.6.8.
# Compiled from the Image Scan! for Linux sources.

Hope this helps,
-- 
Olaf Meeuwissen                          EPSON AVASYS Corporation, LAN
FSF Associate Member #1962           sign up at http://member.fsf.org/
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97  976A 16C7 F27D 6BE3 7D90
Penguin's lib!       -- I hack, therefore I am --               LPIC-2