[sane-devel] niash: HP 4300C with a different usb vendor / product id

Bertrik Sikken bertrik@zonnet.nl
Fri, 15 Apr 2005 09:34:50 +0200


Juergen Raschke wrote:
> Hi,
> 
> I have an HP 4300C scanner but the usb vendor / product id is
> "0x047b  0x1002" and not "0x03f0  0x0305".
> 
> #>sane-find-scanner
> found USB scanner (vendor=0x047b, product=1002) at libusb:002:004
> 
> 
> 
> 
> After  changing line 40 in the file backends/niash_xfer.c
> from
> {"Hewlett-Packard", "ScanJet 4300C", 0x3f0,0x305, eHp4300c}
> to
> {"Hewlett-Packard", "ScanJet 4300C", 0x47b,0x1002, eHp4300c}

A fix like this is already in CVS and will be included in the
next release of sane-backends :)
Except in the CVS version, this scanner is treated as a HP3400
instead of a HP4300.
The HP3400 and HP4300 are basically the same anyway;
the HP4300 has some extra buttons and a display
(which we don't use yet).

> and line 31 in the file tools/hotplug/libsane.usermap
> from
> libusbscanner    0x0003    0x03f0    0x0305   [....]
> to
> libusbscanner    0x0003    0x047b    0x1002   [....]
> 
> and recompiling the source everything seems to work fine.

Also already in CVS.

> Sytem:
> debian sarge i386
> kernel 2.6.8-2-386
> libsane-1.0.15.8_i386.deb
> 
> 
> From
> http://user-contributions.org/projects/lshwd/tables/usbtable
> 
> 0x047b    0x1002    "unknown"    "Silitek Corp.|HP ScanJet 4300c
> Parallel Port"
> 0x03f0    0x0305    "scanner"    "Hewlett-Packard|ScanJet 4300C"

FYI, Silitek is the manufacturer of the 'niash' scanner control
chips.

Regards,
Bertrik