Hello,

Henning Meier-Geinitz wrote:
>
>On Wed, Jun 18, 2003 at 08:53:17PM -0700, Sopho
wrote:
>> I've had all sorts of trouble. Here is my output
from
>> "scanimage -L" with all debug turned on:
>
>You can enable additinal SCSI debugging by setting
>SANE_DEBUG_SANEI_SCSI=255. It's a SCSI-over-USB
scanner, so you should
>use only the microtek, not the kernel USB scanner
module.

Yes I only use the microtek module. I have attached a
small sample of the error log after I enabled SCSI
debugging at the end of this email. I can send the
whole file if it will be more helpful but it's big.
Also after that I have a snippet from the same output
from sane-find-scanner around when it looks at
/dev/sg5. You may find something interesting there.
(also similar data appears for /dev/sgf?)

I should say that I have "Probe all LUNs on each SCSI
device" enabled for my card reader. I don't know if
that has anything to do with this.

>> [microtek2] attach: device='/dev/sg0'
>> [microtek2] scsi_inquiry: mi=0x805d194,
>> device='/dev/sg0'
>> [microtek2] scsi_inquiry: 'Error during device I/O'
>
>Looks like even the first access fails.
>
>> I'm willing to help debug this. If you need more
info
>> or some log file please ask. According the man page
>> this scanner works. FYI I have a USB mass storage
card
>> reader that works great and the scanner does show
up
>> in /proc/bus/usb/devices.
>
>Is it found in /proc/scsi/scsi?

Yes It looks like it. Here is the relevant entry:

Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor:          Model: Scanner 600A4    Rev: 1.10
  Type:   Scanner                          ANSI SCSI
revision: 02

>> I can also see the scanner
>> in /var/log/messages and sane-find-scanner sorta
finds
>> it. It just shows the vendor and product ID.
>
>Probably found by libusb. It should be also found at
/dev/sg0. If it
>isn't, maybe the microtek module hasn't detected it
correctly?
>
>Please show us the output of sane-find-scanner -q.

Yes you are right:
found USB scanner (vendor=0x05da, product=0x009a) at
libusb:001:003

>
>The SCSI generic module ("sg") is loaded? 

yes module is loaded

>Permissions for /dev/sg0 are
>ok? 
Yep, I'm doing this as root while I set this system
up. I have rw.

>Try to comment out everything but microtek2 in
dll.conf to make
>sure no other backend makes trouble.

Ok I tried that. (only having microtek2 in dll.conf).
It didn't seem to make much of a difference.

>
>Bye,
>  Henning


Thanks for your help,

Sopho



PS:

The following is part of the output of scanimage -L
with both microtek2 and scsi debugging turned on.
Following this is a snippet from sane-find-scanner.

[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: open of `/dev/scanner'
failed: No such file or directory
[sanei_debug] Setting debug level of microtek2 to 30.
[microtek2] sane_init: Microtek2 (v0.95 build
20020127) says hello...
[microtek2] parse_config_file: fp=0x805be00
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[microtek2] attach_one: name='/dev/sg5'
[microtek2] add_device_list: device='/dev/sg5'
[microtek2] attach: device='/dev/sg5'
[microtek2] scsi_inquiry: mi=0x805c124,
device='/dev/sg5'
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_find_devices: vendor=(null)
model=(null) type=Scanner
        bus=2 chan=0 id=0 lun=0  num=5
[sanei_scsi] lx_chk_id: 2,2  0,0  0,0  0,0
[sanei_scsi] lx_chk_devicename: matched
device(direct): /dev/sg5
[sanei_scsi] get_max_buffer_size for /dev/sg5: 131072
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open:
sanei_scsi_max_request_size=131072 bytes
[sanei_scsi] sanei_scsi_open: SG driver version: 30125
[sanei_scsi] sanei_scsi_open_extended: using 131072
bytes as SCSI buffer
[sanei_scsi] trying to enable low level command
queueing
[sanei_scsi] sanei_scsi_open: Host adapter queue
depth: 1
[sanei_scsi] sanei_scsi_open: SG driver can change
buffer size at run time
[sanei_scsi] sanei_scsi_open: using new SG header
structure
[sanei_scsi] scsi_req_enter: entered 0x4034a008
[sanei_scsi] sanei_scsi.issue: 0x4034a008
dev_max(currently)=11 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=160 sg_pool_secs_aval=320
def_reserved_size=32768
 >>> device=sg5 scsi2 chan=0 id=0 lun=0   em=1
sg_tablesize=255 excl=1
   FD(1): timeout=120000ms bufflen=131072 (res)sgat=4
low_dma=0
   cmd_q=1 f_packid=0 k_orphan=0 closed=0
     rb>> rcv: id=0 blen=5 dur=0ms sgat=0 op=0x12
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max:
1
[sanei_scsi] sanei_scsi_req_wait: waiting for
0x4034a008
[sanei_scsi] sanei_scsi.issue: 0x4034a008
dev_max(currently)=11 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=160 sg_pool_secs_aval=320
def_reserved_size=32768
 >>> device=sg5 scsi2 chan=0 id=0 lun=0   em=1
sg_tablesize=255 excl=1
   FD(1): timeout=120000ms bufflen=131072 (res)sgat=4
low_dma=0
   cmd_q=1 f_packid=0 k_orphan=0 closed=0
     rb>> rcv: id=0 blen=5 dur=0ms sgat=0 op=0x12
[sanei_scsi] sanei_scsi_req_wait: read 64 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command
complained: Success
[sanei_scsi] sense buffer: 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
[sanei_scsi] target status: 00 host status: 0007
driver status: 0000
[microtek2] scsi_inquiry: 'Error during device I/O'
[microtek2] attach: 'Error during device I/O'
[microtek2] sane_get_devices: local_only=0
[microtek2] attach: device='/dev/sg5'
[microtek2] scsi_inquiry: mi=0x805c124,
device='/dev/sg5'
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open: SG driver version: 30125
[sanei_scsi] sanei_scsi_open_extended: using 131072
bytes as SCSI buffer
[sanei_scsi] trying to enable low level command
queueing
[sanei_scsi] sanei_scsi_open: Host adapter queue
depth: 1
[sanei_scsi] sanei_scsi_open: SG driver can change
buffer size at run time
[sanei_scsi] sanei_scsi_open: using new SG header
structure
[sanei_scsi] scsi_req_enter: entered 0x40348008
[sanei_scsi] sanei_scsi.issue: 0x40348008
dev_max(currently)=11 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=160 sg_pool_secs_aval=320
def_reserved_size=32768
 >>> device=sg5 scsi2 chan=0 id=0 lun=0   em=1
sg_tablesize=255 excl=1
   FD(1): timeout=120000ms bufflen=131072 (res)sgat=4
low_dma=0
   cmd_q=1 f_packid=0 k_orphan=0 closed=0
     rb>> rcv: id=1 blen=5 dur=0ms sgat=0 op=0x12
...

The following is from sane-find-scanner with scsi
debug enabled, right at the are of /dev/sg5 (which is
where my scanner is poking it's head this time)

...
[sanei_scsi] sanei_scsi_open: The device found for
/dev/sg4 does not look like a scanner
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open: SG driver version: 30125
[sanei_scsi] sanei_scsi_open_extended: using 131072
bytes as SCSI buffer
[sanei_scsi] trying to enable low level command
queueing
[sanei_scsi] sanei_scsi_open: Host adapter queue
depth: 1
[sanei_scsi] sanei_scsi_open: SG driver can change
buffer size at run time
[sanei_scsi] sanei_scsi_open: using new SG header
structure
[sanei_scsi] scsi_req_enter: entered 0x401a2008
[sanei_scsi] sanei_scsi.issue: 0x401a2008
dev_max(currently)=11 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=160 sg_pool_secs_aval=320
def_reserved_size=32768
 >>> device=sg5 scsi2 chan=0 id=0 lun=0   em=1
sg_tablesize=255 excl=1
   FD(1): timeout=120000ms bufflen=131072 (res)sgat=4
low_dma=0
   cmd_q=1 f_packid=0 k_orphan=0 closed=0
     rb>> rcv: id=0 blen=5 dur=0ms sgat=0 op=0x12
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max:
1
[sanei_scsi] sanei_scsi_req_wait: waiting for
0x401a2008
[sanei_scsi] sanei_scsi.issue: 0x401a2008
dev_max(currently)=11 max_active_device=6 (origin 1)
 scsi_dma_free_sectors=160 sg_pool_secs_aval=320
def_reserved_size=32768
 >>> device=sg5 scsi2 chan=0 id=0 lun=0   em=1
sg_tablesize=255 excl=1
   FD(1): timeout=120000ms bufflen=131072 (res)sgat=4
low_dma=0
   cmd_q=1 f_packid=0 k_orphan=0 closed=0
     rb>> rcv: id=0 blen=5 dur=0ms sgat=0 op=0x12
[sanei_scsi] sanei_scsi_req_wait: read 64 bytes
[sanei_scsi] sanei_scsi_req_wait: SCSI command
complained: Success
[sanei_scsi] sense buffer: 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
[sanei_scsi] target status: 00 host status: 0007
driver status: 0000
[sanei_debug] Setting debug level of sanei_scsi to
255.
[sanei_scsi] sanei_scsi_open: open of `/dev/sg6'
failed: No such device or address
...

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to