[sane-devel] device not recognised

Bertrik Sikken bertrik@zonnet.nl
Tue, 01 Oct 2002 18:59:37 +0200


SteveC wrote:

>from a trawl thru the mailing list it seems the first step with sane is to 
>get the scanner module to detect my scanner. I get:
>
>Oct  1 11:44:25 fang kernel: usb.c: new USB bus registered, assigned bus 
>number 2
>Oct  1 11:44:25 fang kernel: hub.c: USB hub found
>Oct  1 11:44:25 fang kernel: hub.c: 2 ports detected
>Oct  1 11:44:30 fang kernel: usb.c: registered new driver usbscanner
>Oct  1 11:44:30 fang kernel: scanner.c: 0.4.6:USB Scanner Driver
>Oct  1 11:45:21 fang kernel: hub.c: new USB device 10:19.0-1, assigned 
>address 2Oct  1 11:45:21 fang kernel: usb.c: USB device 2 (vend/prod 
>0x3f0/0x1105) is not claimed by any active driver.
>
>The scanner is a HP Scanjet 5470c with USB. My kernel is:
>
>Linux fang 2.4.20-pre7-ben0 #19 Thu Sep 19 15:40:05 BST 2002 ppc unknown 
>unknown GNU/Linux
>
>on an iBook2.
>
>Looking at scanner.h I see:
>
>/* Hewlett Packard */
>        { USB_DEVICE(0x03f0, 0x0205) }, /* 3300C */
>        { USB_DEVICE(0x03f0, 0x0405) }, /* 3400C */
>        { USB_DEVICE(0x03f0, 0x0101) }, /* 4100C */
>        { USB_DEVICE(0x03f0, 0x0105) }, /* 4200C */
>
>and:
>
>//      { USB_DEVICE(0x03f0, 0x0701) }, /* 5300C - NOT SUPPORTED - see 
>http://www.neatech.nl/oss/HP5300C/ */
>
>so does that rule out the 5470 too? is it worth hacking the avision driver 
>and see if anything magic happens?
>

As far as I know, the HP54xx is not similar to the HP53xx.
I did some analysis on a USB snoopy log file of a HP5470
and wrote a simple tool that reads out the scanner version
string. It's at
http://home.kabelfoon.nl/~bertrik/hp3300c/hp5400.zip
This tool makes use of libusb, but I think it should in
principle also be possible to use it with the scanner.c
module, either by modifying scanner.c or by passing the
vendor id and product id directly when insmodding scanner.
(vendor=0x3f0 product=0x1005)

I don't have a HP5400 myself, so I won't continue with
development. It does not seem that the scanner is controlled
at the hardware register level, so there I think that there
is already some intelligence (like a microcontroller or processor)
built into scanner. Figuring out how to control the scanner should
be relatively easy by studying more USB snoopy logs.

All the best,
Bertrik Sikken