[sane-devel] Followup: Kernel claiming device?

Kerry Menzel kmenzel at rx30.com
Fri Jun 30 15:27:30 UTC 2006


I did some more reading and found other people had problems with this.
Especially in multi-function devices. Their solution was to comment out some
code in the backend or remove a usb module from the kernel.

I did an lsmod and found hpusbscsi was loaded whenever I plugged in my
Avision 220 scanner. I did a modeprob -r hpusbscsi and scanimage -L now
returns with my scanner.

But I still can't scan. When I do a scanimage, it waits for a long time and
then times out. I get some read errors: " Value too large for
defined data type" followed by some write errors.

Any ideas on the module load problem or the timeouts would be greatly
appreciated.

Thanks,
Kerry


-----Original Message-----
From: root [mailto:root at cstest.rx30.com] 
Sent: Friday, June 30, 2006 11:16 AM
To: kmenzel at rx30.com
Subject: Avision

[dll] load: trying to load `/usr/local/lib/sane/libsane-net.so.1'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-net.so.1'
[dll] init: initializing backend `net'
[dll] init: backend `net' is version 1.0.17
[dll] sane_get_devices: found 1 devices
[dll] sane_open: trying to open `avision:libusb:002:007'
[avision] sane_open:
[avision] attach:
[avision] sane_open: using open_extended
[sanei_usb] sanei_usb_open: trying to open device `libusb:002:007'
[sanei_usb] sanei_usb_open: configuration nr: 0
[sanei_usb] sanei_usb_open:     interface nr: 0
[sanei_usb] sanei_usb_open:   alt_setting nr: 0
[sanei_usb] sanei_usb_open: endpoint nr: 0
[sanei_usb] sanei_usb_open: direction: 0
[sanei_usb] sanei_usb_open: address: 1 transfertype: 2
[sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x01)
[sanei_usb] sanei_usb_open: we already have a bulk-out endpoint
(address: 0x01), ignoring the new one
[sanei_usb] sanei_usb_open: endpoint nr: 1
[sanei_usb] sanei_usb_open: direction: 128
[sanei_usb] sanei_usb_open: address: 2 transfertype: 3
[sanei_usb] sanei_usb_open: found interrupt-in endpoint (address 0x02)
[sanei_usb] sanei_usb_open: we already have a int-in endpoint (address:
0x82), ignoring the new one
[sanei_usb] sanei_usb_open: endpoint nr: 2
[sanei_usb] sanei_usb_open: direction: 128
[sanei_usb] sanei_usb_open: address: 3 transfertype: 2
[sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x03)
[sanei_usb] sanei_usb_open: we already have a bulk-in endpoint (address:
0x83), ignoring the new one
[sanei_usb] sanei_usb_open: opened usb device `libusb:002:007' (*dn=0)
[avision] sane_open: got 1048576 scsi_max_request_size
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
[sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
[avision] wrote 10 bytes
[avision] avision_usb_status: timeout 2500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
[sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
[avision] wrote 10 bytes
[avision] avision_usb_status: timeout 2500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
USB error: error writing to bulk endpoint 1: Connection timed out
[sanei_usb] sanei_usb_write_bulk: write failed: Connection timed out
[avision] wrote 0 bytes
[avision] === Got error 9 trying to write, wrote: 0. ===
[avision] try to read status to clear the FIFO
[avision] avision_usb_status: timeout 500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] === Got error 9 trying to read status. ===
[avision] wait_ready: test unit ready failed (Error during device I/O)
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
USB error: error writing to bulk endpoint 1: Connection timed out
[sanei_usb] sanei_usb_write_bulk: write failed: Connection timed out
[avision] wrote 0 bytes
[avision] === Got error 9 trying to write, wrote: 0. ===
[avision] try to read status to clear the FIFO
[avision] avision_usb_status: timeout 500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] === Got error 9 trying to read status. ===
[avision] wait_ready: test unit ready failed (Error during device I/O)
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
USB error: error writing to bulk endpoint 1: Connection timed out
[sanei_usb] sanei_usb_write_bulk: write failed: Connection timed out
[avision] wrote 0 bytes
[avision] === Got error 9 trying to write, wrote: 0. ===
[avision] try to read status to clear the FIFO
[avision] avision_usb_status: timeout 500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] === Got error 9 trying to read status. ===
[avision] wait_ready: test unit ready failed (Error during device I/O)
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................
USB error: error writing to bulk endpoint 1: Connection timed out
[sanei_usb] sanei_usb_write_bulk: write failed: Connection timed out
[avision] wrote 0 bytes
[avision] === Got error 9 trying to write, wrote: 0. ===
[avision] try to read status to clear the FIFO
[avision] avision_usb_status: timeout 500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
USB error: error reading from bulk endpoint 0x83: Value too large for
defined data type
[sanei_usb] sanei_usb_read_bulk: read failed: Value too large for
defined data type
[avision] <== (bulk read) got: 0, status: 0
[avision] === Got error 9 trying to read status. ===
[avision] wait_ready: test unit ready failed (Error during device I/O)
[avision] wait_ready: sending TEST_UNIT_READY
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
[sanei_usb] 0000: 00 00 00 00 00 00 00 00 00
00                   ................





More information about the sane-devel mailing list