[sane-devel] Failed to open device 'hp:/dev/scanner': Error duringdevice I/O

Jochen Streicher jstreich@stud.fh-heilbronn.de
Fri, 12 Oct 2001 10:55:02 +0200 (CEST)


Hi,

On Fri, 12 Oct 2001, Peter Kirchgessner wrote:

> Hi,
>
> to see if the hp-backend can open the device you can run (x)scanimage
> after an
>
> export SANE_DEBUG_HP=17
>
> The logs should show at which place the communication failed.
>
> --Peter
>

Ok, this is what I got:

[sanei_debug] Setting debug level of hp to 17.
[hp] sane_init called
[hp] sane_init will finish with Success
[hp] sane_get_devices called
[hp] hp_read_config: hp backend v0.93 starts reading config file
[hp] hp_read_config: processing line <scsi HP>
[hp] hp_read_config: processing line </dev/scanner>
[hp] hp_read_config: attach scsi HP
[hp] hp_get_dev: New device /dev/sg2, connect-scsi, scsi-request=1
[hp] sanei_hp_device_new: /dev/sg2
[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] scl_inq: read failed (Error during device I/O)
[hp] scl_errcheck: Can't read SCL error stack: Error during device I/O
[hp] sanei_hp_device_new: SCL reset failed
[hp] scsi_close: closing fd 23
[hp] hp_read_config: attach /dev/scanner
[hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1
[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] scl_inq: read failed (Error during device I/O)
[hp] scl_errcheck: Can't read SCL error stack: Error during device I/O
[hp] sanei_hp_device_new: SCL reset failed
[hp] scsi_close: closing fd 23
[hp] sane_get_devices will finish with Success
[xscanimage] No scanners were identified. If you were expecting something
          different, check that the scanner is plugged in, turned on and
          detected by the find-scanner tool (if appropriate). Please read
          the documentation which came with this software (README, FAQ,
          manpages).
[hp] sane_exit called
[hp] sane_exit will finish

I use sane 1.05 compiled out of tarball to /usr/local ; and kernel 2.4.12
(also out of tarball) at the moment.

Jochen