Subject: Trouble with USB scanner
To: None <current-users@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: current-users
Date: 06/08/2007 18:00:03
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

Today I tried my USB scanner, an Epson Perfection 2480, again on
NetBSD-4.99.20/amd64 (built on June 5). It has trouble downloading its
firmware.

The last try before that was on May 12 on NetBSD-4.99.19/amd64 built
on May 1, where the scanner still worked.

I'm not sure if I should suspect flaky hardware or NetBSD
problems. Between the two tries, the scanner was just put in a dark
corner and fetched again.

Attached is the log of xsane with SANE_DEBUG_SNAPSCAN set.

Any ideas?
 Thomas

--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=xsane-output

# SANE_DEBUG_SNAPSCAN=255 xsane
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_usb_device(libusb:/dev/usb1:/dev/ugen0)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:/dev/usb1:/dev/ugen0)
[snapscan] add_usb_device: Checking if 0x04b8 is a supported USB vendor ID
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x7f7fffffcaa0,6,0x7f7fffffca70,0x7f7fffffca98 (36))
[snapscan] atomic_usb_cmd(0,0x7f7fffffcaa0,6,0x7f7fffffca70,0x7f7fffffca98 (36))
[snapscan] usb_cmd(0,0x7f7fffffcaa0,6,0x7f7fffffca70,0x7f7fffffca98 (36))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x24 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x45 0x50 ...
[snapscan] Read 36 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] snapscani_check_device: Is vendor "EPSON" model "EPSON Scanner" a supported scanner?
[snapscan] snapscani_get_model_id(EPSON Scanner, 0, 2)
[snapscan] snapscani_get_model_id: looking up scanner for ID 0x04b8,0x0121.
[snapscan] snapscani_get_model_id: scanner identified
[snapscan] snapscani_check_device: Autodetected driver: Perfection 2480
[snapscan] snapscani_usb_close(0)
[snapscan] 1st read 3 write 1
[snapscan] snapscani_usb_cmd(0,0x7f7fffffcb00,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0x7f7fffffcb00,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0x7f7fffffcb00,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] 2nd read 4 write 2
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0x7f7fffffd090, 0)
[snapscan] sane_snapscan_open (libusb:/dev/usb1:/dev/ugen0, 0x7f7fffffc8f0)
[snapscan] find_device
[snapscan] sane_snapscan_open: Allocating 129024 bytes as scanner buffer.
[snapscan] sane_snapscan_open: allocated scanner structure at 0x6e6000
[snapscan] open_scanner
[snapscan] snapscani_usb_open(libusb:/dev/usb1:/dev/ugen0)
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x7f7fffffc6d0,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0x7f7fffffc6d0,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0x7f7fffffc6d0,6,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] sane_snapscan_open: performing scanner self test.
[snapscan] send_diagnostic
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x7f7fffffc870,6,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0x7f7fffffc870,6,0x0,0x0 (0))
[snapscan] usb_cmd(0,0x7f7fffffc870,6,0x0,0x0 (0))
[snapscan] sane_snapscan_open: self test passed.
[snapscan] inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x6e6038,6,0x708000,0x6e6158 (120))
[snapscan] atomic_usb_cmd(0,0x6e6038,6,0x708000,0x6e6158 (120))
[snapscan] usb_cmd(0,0x6e6038,6,0x708000,0x6e6158 (120))
[snapscan] usb_cmd: cmdlen=6, datalen=0
[snapscan] usb_write: writing:  0x12 0x00 0x00 0x00 0x78 0x00
[snapscan] Written 6 bytes
[snapscan] usb_read: reading:  0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] usb_read: reading:  0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00 0x45 0x50 ...
[snapscan] Read 120 bytes
[snapscan] usb_read: reading:  0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] inquiry: exposure time: 0.0 ms
[snapscan] inquiry: ms per line: 0.000000
[snapscan] inquiry: G2R_DIFF: 0
[snapscan] inquiry: B2R_DIFF: 0
[snapscan] inquiry: Chroma offsets=0; Red=0, Green:=0, Blue=0
[snapscan] inquiry: hardware config = 0x00
[snapscan] inquiry: bits per pixel = 14
[snapscan] inquiry: pixels per scan line = 0
[snapscan] inquiry: bytes per scan line = 0
[snapscan] inquiry: number of scan lines = 0
[snapscan] inquiry: effective buffer size = 0 bytes, 0 lines
[snapscan] inquiry: expected total scan data: 0 bytes
[snapscan] Looking up 33
[snapscan] Downloading /etc/scanner/Esfw41.bin
[snapscan] Size of firmware: 57024
[snapscan] snapscan_cmd
[snapscan] snapscani_usb_cmd(0,0x728000,57034,0x0,0x0 (0))
[snapscan] atomic_usb_cmd(0,0x728000,57034,0x0,0x0 (0))
[snapscan] usb_cmd(0,0x728000,57034,0x0,0x0 (0))
[snapscan] usb_cmd: cmdlen=10, datalen=57024
[snapscan] usb_write: writing:  0x2a 0x00 0x87 0x00 0x00 0x00 0x00 0xde 0xc0 0x00
[snapscan] Written 10 bytes
[snapscan] usb_read: reading:  0xf8 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 8 bytes
[snapscan] usb_write: writing:  0x02 0xda 0xc0 0x32 0xff 0xff 0xff 0xff 0xff 0xff ...
[snapscan] Written 57024 bytes
[snapscan] usb_read Only 0 bytes read
[snapscan] usb_read: reading:  0xf8 0x00 0x00 0x00 0x00 0x00 0x00 0x00
[snapscan] Read 0 bytes
[snapscan] sane_snapscan_open: download_firmware command failed: Error during device I/O
[snapscan] sane_snapscan_exit

--wRRV7LY7NUeQGEoC--