Re: ScanJet 4c on (DEC Alpha) NetBSD problem

Peter Kirchgessner (peter@kirchgessner.net)
Tue, 27 Jul 1999 21:56:51 +0200

Major A wrote:
>
> Hello,
>
> I have problems getting a HP scanner working on a DEC Alpha 3000 running
> NetBSD release 1.4. The scanner is a ScanJet 4c (SCSI). It is recognized
> by cdrecord 1.6.1:
>
> ~ #cdrecord dev=/dev/uk0 -inq
> Cdrecord release 1.6.1 Copyright (C) 1995-1998 Jrg Schilling
> scsidev: '/dev/uk0'
> devname: '/dev/uk0'
> scsibus: -2 target: -2 lun: -2
> Device type : Processor
> Version : 2
> Response Format: 2
> Capabilities :
> Vendor_info : 'HP '
> Identifikation : 'C2520A '
> Revision : '3503'
> Device seems to be: unknown.
>
> The find-scanner tool of SANE 1.0.1 says:
>
> ~ #/scratch/sane-1.0.1/tools/find-scanner
> find-scanner: found processor " " at device /dev/uk0

Hi Anndras,

this should say: found processor "HP C2520A 3503"
So the find-scanner tool may also encounter the problems.

>
> Nevertheless, scanimage refuses to recognize the scanner. The output of
> scanimage is:
>
> ~ #export SANE_DEBUG_HP=128
> ~ #scanimage -L
> [sanei_init_debug]: Setting debug level of hp to 128.
> [hp] init called
> [hp] get_devices called
> [hp] hp_read_config: hp backend v0.82 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_read_config: attach /dev/scanner
> [hp] hp_get_dev: New device /dev/scanner, connect-scsi, scsi-request=1
> [hp] scsi_inquire: sending INQUIRE
> [hp] scsi_new: sending TEST_UNIT_READY
> [hp] scsi_flush: writing 2 bytes:
> 0x0000 1B 45 .E
> [hp] scsi_flush: writing 7 bytes:
> 0x0000 1B 2A 73 32 35 37 45 .*s257E
> [hp] scsi_read: 9 bytes:
> 0x0000 1B 2A 73 32 35 37 64 30 00 .*s257d0.

The 00-character is definitely wrong. The scanner should respond with a
'V' at that place like:

[hp] scsi_read: 16 bytes:
0x0000 1B 2A 73 32 35 37 64 30 56 50 20 20 20 20 20 20 .*s257d0VP

> [hp] scl_inq: malformed response: expected 'V', got ''
> [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 5
> [hp] exit called
>
> I would appreciate any help. Thanks in advance,
>
> Andras (CIP-Service, Universitaet Stuttgart)
>
> ===========================================================================
> Major Andras
> e-mail: 1. andras@sticks.phy.bris.ac.uk
> 2. andras@physcip.uni-stuttgart.de
> www: http://wwwcip.rus.uni-stuttgart.de/~phy10296/
> ===========================================================================

There could be several problems:
- the backend has problems with the DEC-Alpha architecture. But I think
there are other Alpha-users which use HP-scanners.
- Timing problems with read operations. It seems that the scanner has
recognized the Reset (EscE) and the inquire error stack command
(Esc*s257E). The beginning of the response is ok. But it is incomplete.
I have posted this to the sane-devel mailing list. Maybe someone knows a
solution to that problem.

Sincerely

Peter

-- 
Peter Kirchgessner
WWW:    http://www.kirchgessner.net
e-mail: peter@kirchgessner.net

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com