Bug#879719: libsane-hpaio: Does not recognize OfficeJet Pro 8710
On Wed 29 Nov 2017 at 17:17:54 +0100, Gedalya wrote:
> On 11/23/2017 09:08 PM, Brian Potkin wrote:
> >
> >>> So where does scanimage get the uri from when cups is running? From the
> >>> Bonjour broadcasts? What happens when you deactivate broadcasting on the
> >>> printer?
> >> I don't know how to do that.
> > Go to http://192.168.9.238 with a browser. Look under Networking for
> > bonjour/AirPrint.
> >
>
> OK, I managed to find it.
>
> After turning off Bonjour, scanimage -L does not find the scanner,
> whether cupsd is running or not.
This shows 'scanimage -L' has been locating the scanner via Bonjour. The
preference is to use the printer device_uri (when cups is running and
Bonjour stopped) but, for some reason or other, it appears not to regard
it as suitable, in spite of the output of lpoptions showing a correct
device-uri=hp:/net/HP_OfficeJet_Pro_8710?ip=192.168.9.238
This not is what happens here.
I can set up this print queue:
lpadmin -p 8710 -v hp:/net/HP_OfficeJet_Pro_8710?ip=192.168.7.238 -E -m drv:///hpcups.drv/hp_officejet_pro_8710.ppd
Not having the actual printer does not prevent 'scanimage -L' happily
telling me
device `hpaio:/net/HP_OfficeJet_Pro_8710?ip=192.168.7.238' is a Hewlett-Packard Officejet_Pro_8710 all-in-one
when cups is running. No errors in 'journalctl' either. I wonder how you
would go on with the queue
lpadmin -p 4500 hp:/net/envy_4500_series?ip=192.168.9.238 -E -m drv:///hpcups.drv/hp_envy_4500_series.ppd
and 'scanimage -L'?
> After re-enabling Bonjour, I noticed something new.
> With the original models.dat, I get in syslog, regardless or cupsd running or not:
>
> scanimage: io/hpmud/model.c 532: no officejet_pro_8710 attributes found in /usr/share/hplip/data/models/models.dat
>
> with cupsd running, the output is:
>
> device `hpaio:/net/HP_OfficeJet_Pro_8710?ip=192.168.9.238' is a Hewlett-Packard HP_OfficeJet_Pro_8710 all-in-one
>
> with cupsd stopped, the scanner is not found, as before.
>
>
> now, with the edited file hp_ removed, cupsd running:
>
> device `hpaio:/net/officejet_pro_8710?ip=192.168.9.238&queue=false' is a Hewlett-Packard officejet_pro_8710 all-in-one
>
> and syslog:
>
> scanimage: io/hpmud/model.c 532: no HP_OfficeJet_Pro_8710 attributes found in /usr/share/hplip/data/models/models.dat
>
> cupsd stopped:
>
> device `hpaio:/net/officejet_pro_8710?ip=192.168.9.238&queue=false' is a Hewlett-Packard officejet_pro_8710 all-in-one
>
> nothing in syslog.
>
> >> There is, the other printer was HP AIO too, but it's a different model.
> > I'm a little lost here, but if libsane-hpaio and libhpmud are on the
> > system then the 8710 scanning function should be detectable from its
> > Bonjour broadcasts wih 'scanimage -L'
>
> Yes, and it's not working, that's what this bug is about.
I thought you had shown at the beginning of this mail that scanning is
being done due to Bonjour?
Incidently. how do you on with
scanimage -vv -d hpaio:/net/HP_OfficeJet_Pro_8710?ip=192.168.9.238 > image.pnm ?
Bonjour is not involved with this command and a print queue is not
necessary for it to be successful.
Cheers,
Brian.
Reply to: