[sane-devel] ScanJet 4c, scanimage hangs

Nathan Cassano nathan@cjhunter.com
Wed, 7 Nov 2001 15:35:28 -0800


Hi folks,
	I'm working on installing a hp scanjet 4c scanner, attached to a
Symbios Logic 53c416 SCSI card on a Suse Linux 2.2.16 box. Everything
relating to the kernel appears to be setup correctly (isapnp, modules,
scsi). The scanner is set to the ID of 1, is the only device attached
and is terminated. My problem is whenever I execute "scanimage" the
systems creeps . The operation executes succeeds but it takes ~20
minutes.

So I set SANE_DEBUG_HP to 255 and ran "scanimage -L". The following is
the program output.

# scanimage -L
[sanei_debug] Setting debug level of hp to 255.
[hp] sane_init called
[hp] sane_init will finish with Success
[hp] sane_get_devices called
[hp] hp_read_config: hp backend v0.95 starts reading config file [hp]
hp_read_config: processing line </dev/scanner> [hp] hp_read_config:
processing line <option connect-device> [hp] hp_read_config: processing
line <option connect-scsi> [hp] hp_read_config: attach /dev/scanner [hp]
hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=0 [hp]
sanei_hp_device_new: /dev/scanner [hp] scsi_inquire: sending INQUIRE
[hp] scsi_new: sending TEST_UNIT_READY [hp] scsi_flush: writing 2 bytes:
[hp]  0x0000  1B 45                                            .E
[hp] scsi_flush: writing 7 bytes:
[hp]  0x0000  1B 2A 73 32 35 37 45                             .*s257E
[hp] scsi_read:  16 bytes:
[hp]  0x0000  1B 2A 73 32 35 37 64 30 56 50 20 20 20 20 20 20
.*s257d0VP [hp] probe_scanner: Probing /dev/scanner [hp] probing ScanJet
Plus [hp] scsi_flush: writing 5 bytes:
[hp]  0x0000  1B 2A 73 33 45                                   .*s3E
[hp] scsi_read:  24 bytes:
[hp]  0x0000  1B 2A 73 33 64 35 57 39 31 39 35 41 20 20 20 20
.*s3d5W9195A
[hp]  0x0010  43 32 35 32 30 41 20 20                          C2520A
[hp] probe_scanner: ScanJet Plus compatible
[hp] probing ScanJet IIc
[hp] scsi_flush: writing 6 bytes:
[hp]  0x0000  1B 2A 73 31 30 45                                .*s10E
[hp] scsi_read:  24 bytes:
[hp]  0x0000  1B 2A 73 31 30 64 35 57 31 37 35 30 41 20 20 20
.*s10d5W1750A
[hp]  0x0010  43 32 35 32 30 41 20 20                          C2520A
[hp] probe_scanner: ScanJet IIc compatible
[hp] probing ScanJet IIp
[hp] scsi_flush: writing 5 bytes:
[hp]  0x0000  1B 2A 73 39 45                                   .*s9E
[hp] scsi_read:  24 bytes:
[hp]  0x0000  1B 2A 73 39 64 4E 35 57 31 37 35 30 41 20 20 20
.*s9dN5W1750A
[hp]  0x0010  43 32 35 32 30 41 20 20                          C2520A
[hp] scl_inq: parameter 9 unsupported
[hp] probing ScanJet IIcx
[hp] scsi_flush: writing 6 bytes:
[hp]  0x0000  1B 2A 73 31 31 45                                .*s11E
[hp] scsi_read:  24 bytes:
[hp]  0x0000  1B 2A 73 31 31 64 35 57 32 35 30 30 41 20 20 20
.*s11d5W2500A
[hp]  0x0010  43 32 35 32 30 41 20 20                          C2520A
[hp] probe_scanner: ScanJet IIcx compatible
[hp] probing ScanJet 3c/4c/6100C
[hp] scsi_flush: writing 6 bytes:
[hp]  0x0000  1B 2A 73 31 32 45                                .*s12E
...
This goes on for a very long time doing a bunch of testing.
And finally ends with.
...
device `hp:/dev/sg0' is a Hewlett-Packard C2520A flatbed scanner
device `hp:/dev/scanner' is a Hewlett-Packard C2520A flatbed scanner


My dll.conf reads
hp

My hp.conf reads
scsi HP
/dev/scanner

Does anyone know whats going on?