[sane-devel] Microtek Phantom 336 CX USB vs Linux 2.4
Richard Huxton
dev at archonet.com
Sun Nov 4 14:55:30 GMT 2001
I've worked through the FAQs, HOWTOs and man pages and think I've reached the
stage where I need to ask here. It's not a brilliant scanner (used to lock
sometimes in Windows), but I thought I'd see if it works. It isn't listed
anywhere, but that applies to the net in general, not just sane. I'm working
on the assumption it's the USB version of their 330CX parport scanner.
It's being detected (via linux "microtek" usb module) and the microtek2
backend seems to be the best hope. I can get details of it with "scanimage
-L" but then the output goes:
[microtek2] scsi_read_attributes: mi=0x80510fc, device='/dev/sg2', source=3
[sanei_debug] Setting debug level of sanei_scsi to 30.
[sanei_scsi] sanei_scsi_open: SG driver version: 30120
[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
[microtek2] [scannerattributes]
[microtek2] 28,00,82,00,00,03,00,00,28,00,
[sanei_scsi] scsi_req_enter: entered 0x8052550
[sanei_scsi] sanei_scsi.issue: 0x8052550
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8052550
[sanei_scsi] sanei_scsi.issue: 0x8052550
At this point scanimage just hangs. strace shows:
write(4, "S\0\0\0\375\377\377\377\n@\0\0(\0\0\0\0\364\377\2770\364"..., 64) =
64rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
write(2, "[sanei_scsi] ", 13) = 13
write(2, "scsi_req_enter: queue_used: 1, q"..., 44) = 44
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
write(2, "[sanei_scsi] ", 13) = 13
write(2, "sanei_scsi_req_wait: waiting for"..., 43) = 43
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
write(2, "[sanei_scsi] ", 13) = 13
write(2, "sanei_scsi.issue: 0x8052550\n", 28) = 28
select(5, [4], NULL, NULL, NULL
It looks like sane is issuing a command the scanner doesn't recognize, but I
thought I'd check there's nothing obvious I've missed.
I'm using linux kernel 2.4.9-0.18 and the sane RPMs from RedHat 7.2
(1.0.5-2). I have the full output of scanimage and strace should the rest be
needed.
TIA
--
Richard Huxton
More information about the sane-devel
mailing list