[sane-devel] mac osx with epson usb backend

Ricky Charlet rcharlet@speakeasy.net
Sat, 11 Jan 2003 09:24:33 -0800


Howdy,

Thanks for your help!!

So I had:
   Mac OSX 10.2.3
   libusb-0.1.7
   sane-backends-1.0.9
------------------------------
gtk+    1.2.10-10   (via fink)
the apple beta release of x11
sane-frontends-1.0.9
xsane-0.90
gimp  1.2.3-9 (via fink)



BUT!!!!!
from your advice in the previous post, I replaced my sane-backends with 
the sane-backends-2003-01-11 snapshot. (I did a make uninstall; make 
distclean in sane-backends-1.0.9 and compiled then compiled and 
installed the sane-backends snapshot. )

This has solved my problem I reported in my last post. Yeah! scanimage 
now succeeds in recognizing the existance of my scanner.

But I still can't scan. :-(

I'll insert an output dump of scanimage with SANE_DEBUG_USB=255, 
SANE_DEBUG_SANEI_USB=255, SANE_DEBUG_EPSON=255.  My read of this dump 
is that there is a libusb call (usb_bulk_read) failing. But what 
confuses me is that during this dump there are some previous points at 
which usb_bulk_read was called and apparently succeeded.

Anyway here is the dump
=============================

<<I had to delete the dump to get this message past the 40K limit of 
the list processor. I'll leave a bit of what I hope is relevant>>



below is the output of `scanimage`
with the environment vars
SANE_DEBUG_EPSON=255
SANE_DEBUG_USB=255
SANE_DEBUG_SANEI_USB=255

<<snip>>
[sanei_debug] Setting debug level of epson to 255.
[epson] sane_init: sane-backends 1.0.9-cvs
[epson] sane_init, ># epson.conf<
[epson] sane_init, >#<
[epson] sane_init, ># here are some examples for how to configure the 
EPSON backend<
[epson] sane_init, >#<
[epson] sane_init, ># SCSI scanner:<
[epson] sane_init, >#scsi EPSON<
[epson] sane_init, >#<
[epson] sane_init, ># Parallel port scanner:<
[epson] sane_init, >#pio 0x278<
[epson] sane_init, >#pio 0x378<
[epson] sane_init, >#pio 0x3BC<
[epson] sane_init, >#<
[epson] sane_init, ># USB scanner - only enable this if you have an 
EPSON scanner. It could<
[epson] sane_init, >#               otherwise block your non-EPSON 
scanner from being<
[epson] sane_init, >#               recognized.<
[epson] sane_init, >#		Depending on your distribution, you may need 
either the<
[epson] sane_init, >#		first or the second entry.<
[epson] sane_init, >#usb /dev/usbscanner0<
[epson] sane_init, >usb libusb:-08:005<
[epson] attach_one_usb(libusb:-08:005)
[epson] SANE Epson Backend v0.2.32 - 2002-12-28
[epson] attach(libusb:-08:005, 3)
[epson] attach: opening libusb:-08:005
[sanei_debug] Setting debug level of sanei_usb to 255.
usb_set_debug: Setting debugging level to 255 (on)
[sanei_usb] sanei_usb_open: trying to open device `libusb:-08:005'
usb_os_open: 04b8:0101
[sanei_usb] sanei_usb_open: chosing first altsetting (0) without 
checking
[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:-08:005' (*dn=0)
[sanei_usb] sanei_usb_get_vendor_product: device 0: vendorID: 0x04b8, 
productID: 0x0101
[epson] Found valid EPSON scanner: 0x4b8/0x101 (vendorID/productID)
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 40 @
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
USB error: error reading from bulk endpoint 81
[sanei_usb] sanei_usb_read_bulk: read failed: No such file or directory
USB error: error clearing pipe stall
[epson] receive buf, expected = 1, got = 0
[epson] get_identity_information()
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 49 I
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=4 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 4 bytes, got 4 bytes
[epson] receive buf, expected = 4, got = 4
[epson] buf[0] 02 .
[epson] buf[1] 00 .
[epson] buf[2] 61 a
[epson] buf[3] 00 .
[epson] code   02
[epson] status 00
[epson] count  97
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=97 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 97 bytes, got 97 bytes
[epson] receive buf, expected = 97, got = 97
<<snip>>
[epson] resolution (dpi): 2400
[epson] maximum scan area: x 20400 y 28080
[epson] fbf tlx 0.000000 tly 0.000000 brx 215.899994 bry 297.179993 [mm]
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 10 .
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=1 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0e .
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=1 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 06 .
[epson] send buf, size = 1
[epson] buf[0] 0c .
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=1 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
[epson] receive buf, expected = 1, got = 1
[epson] buf[0] 15 .
[epson] Max. supported color depth = 8
[epson] request_focus_position()
[epson] Disabling 'Set Focus' support
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 66 f
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=4 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 4 bytes, got 4 bytes
[epson] receive buf, expected = 4, got = 4
<<snip>>
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=42 TO=60000
[sanei_usb] sanei_usb_read_bulk: wanted 42 bytes, got 42 bytes
[epson] receive buf, expected = 42, got = 42
<<snip>>
[sanei_usb] sanei_usb_close: closing device 0
USB error: error clearing pipe stall
usb_os_close: 04b8:0101
[epson] sane_get_devices()
<<snip>>
[epson] sane_open(libusb:-08:005)
[epson] set = 215.899994
[epson] set = 297.179993
[epson] open_scanner()
[sanei_usb] sanei_usb_open: trying to open device `libusb:-08:005'
usb_os_open: 04b8:0101
[sanei_usb] sanei_usb_open: chosing first altsetting (0) without 
checking
[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:-08:005' (*dn=0)
[epson] sane_start: Setting data format to 1 bits
[epson] send buf, size = 2
[epson] buf[0] 1b .
[epson] buf[1] 44 D
Converting ep address to pipeRef.
pipeRef for ep 0x02 found: 0x02
usb_bulk_write: endpoint=0x02 size=2 TO=60000
write completed
CFLoopRun returned
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 0 bytes
Converting ep address to pipeRef.
pipeRef for ep 0x81 found: 0x01
usb_bulk_read: endpoint=0x81 size=1 TO=60000
USB error: error reading from bulk endpoint 81
[sanei_usb] sanei_usb_read_bulk: read failed: No such file or directory
USB error: error clearing pipe stall
[epson] receive buf, expected = 1, got = 0
[epson] sane_start: set_data_format failed: Error during device I/O
scanimage: sane_start: Error during device I/O
[sanei_usb] sanei_usb_close: closing device 0
USB error: error clearing pipe stall
usb_os_close: 04b8:0101