[sane-devel] Bug with ADF/Epson 1640SU in MacOSX

cat52 cat52test@fastmail.fm
Thu, 29 Apr 2004 14:01:33 -0500


I tested the sane-backends-1.0.14-pre3 in MacOSX 10.3.3 using the ADF 
with an Epson 1640SU Office, fails with a timeout after feed():

> $ scanimage -x 128 -y 128 --source 'Automatic Document Feeder' > 
> ccc.pbm
> [sanei_debug] Setting debug level of sanei_usb to 255.
> usb_set_debug: Setting debugging level to 255 (on)
> usb_os_find_busses: Found 001
> usb_os_find_busses: Found 002
> usb_os_find_busses: Found 003

[...cut...]

> read/write completed: no error, size=42
> [sanei_usb] 0000: 01 C0 40 6A 00 AF 00 00 00 00 00 00 00 00 00 00 
> ..@j............
> [sanei_usb] 0010: 00 00 00 00 00 00 00 00 00 00 50 65 72 66 65 63 
> ..........Perfec
> [sanei_usb] 0020: 74 69 6F 6E 31 36 34 30 20 20                   
> tion1640  ......
> [sanei_usb] sanei_usb_read_bulk: wanted 42 bytes, got 42 bytes
> [epson] receive buf, expected = 42, got = 42
> [epson] feed()
> [epson] send buf, size = 1
> [sanei_usb] sanei_usb_write_bulk: trying to write 1 bytes
> [sanei_usb] 0000: 19                                              
> ................
> usb_bulk_write: ep addr = 0x02
> Converting ep address to pipeRef.
> ep_to_pipeRef: Pipe 1: DIR: 1 number: 1
> ep_to_pipeRef: Pipe 2: DIR: 0 number: 2
> ep_to_pipeRef: pipeRef for ep address 0x02 found: 0x02
> usb_bulk_write: endpoint=0x02 size=1 timeout=30000 ms
> read/write completed: no error, size=1
> [sanei_usb] sanei_usb_write_bulk: wanted 1 bytes, wrote 1 bytes
> [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> usb_bulk_read: ep addr = 0x81
> Converting ep address to pipeRef.
> ep_to_pipeRef: Pipe 1: DIR: 1 number: 1
> ep_to_pipeRef: pipeRef for ep address 0x81 found: 0x01
> usb_bulk_read: endpoint=0x81 size=1 timeout=30000 ms
> read/write completed: transaction timed out, size=0
> USB error: usb_bulk_read: error reading from endpoint 81
> [sanei_usb] sanei_usb_read_bulk: read failed: No such file or directory
> Converting ep address to pipeRef.
> ep_to_pipeRef: Pipe 1: DIR: 1 number: 1
> ep_to_pipeRef: pipeRef for ep address 0x81 found: 0x01
> [epson] receive buf, expected = 1, got = 0
> [epson] close_scanner(fd = 0)
> [sanei_usb] sanei_usb_close: closing device 0
> usb_os_close: 04b8:010a
> [epson] close_scanner(fd = -1)
> scanimage: sane_start: Error during device I/O

This bug was in sane-backends-10.3.0 and remains in this pre3 version.
I am also using libusb-0.1.8-macosx (patched) from 
http://www.ellert.se/twain-sane/.

Javier Diaz-Reinoso
Web: http://homepage.mac.com/javier_diaz_r/