[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#853783: ping



tags 853783 moreinfo
thanks


[Quite a bit of snipping here and there].


On Tue 28 Feb 2017 at 13:18:11 +0000, Brian Potkin wrote:

> On Mon 27 Feb 2017 at 17:58:18 +0100, Svante Signell wrote:
> 
> > Comments on the printer driver setup:
> > - Setting up the printer with socket://192.168.1.4, as detected when setting up
> > from localhost:631 makes the printer work, but the scanner is not found. Printer
> > works.

That is because the scanner URI (hpaio:/...)is obtained from the printer
URI (hp:/...). That is, the hp:/ is simply replaced by hpaio:/. Other
URIs like socket:// cannot be used to form hpaio:/net/printer_name?ip=.

> > - Setting up the printer with hp-makeuri (from hplip) and using
> > hp:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4 as connection makes the
> > scanner detectable. Printer works, scanner detected. Works with 3.16.7 not
> > 3.16.9/3.16.11.

Indeed. Please see above.

> > (In both cases I use the same ppd-file, downloaded from HP:hp-
> > color_laserjet_pro_mfp_m277-ps.ppd.gz)

The PPD is really of no importance here. It is having an hp:/... URI for
the print queue which allows xsane to automatically work because it is
given the correct URI.

> As mentioned previously your device does bonjour broadcasting and both
> printer and scanner will be advertised in this way without the device
> being connected to a computer. In your very first mail you had:
> 
>  scanimage -L
>  device `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4' is a Hewlett-Packard HP_Color_LaserJet_MFP_M277dw all-in-one
> 
> This is a net URI and could only have come from a Bonjour broadcast.

That statement is nonsense. It can also be derived from the printer URI.
(Your comments on the printer driver setup lead me to believe you had
AirPrint turned off on the HP device).
 
> There is also a twist to this. If an HP device is connected via USB to a
> computer with SANE on it the scanner will not be visible to client
> machines. Please see #807427 and #838212.

That is also a nonsense statement. The two bugs do not arise from having
a USB connected machine.

> > [dll] sane_get_devices: found 1 devices
> > [dll] sane_open: trying to open `hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4'
> > scanimage: open of device hpaio:/net/HP_Color_LaserJet_MFP_M277dw?ip=192.168.1.4 failed: Error during device I/O
> > [dll] sane_exit: exiting

The URI for the scanner is correct; the scanner is found but cannot be
opened by SANE and hpaio.
 
> I get
> 
>   [dll] load: searching backend `hpaio' in`/usr/lib/i386-linux-gnu/sane:/usr/lib/sane'
>   [dll] load: trying to load`/usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1'
>   [dll] load: dlopen()ing`/usr/lib/i386-linux-gnu/sane/libsane-hpaio.so.1'
>   [dll] init: initializing backend `hpaio'
>   [dll] init: backend `hpaio' is version 1.0.0
>   [dll] sane_get_devices: found 1 devices
>   [dll] sane_open: trying to open `hpaio:/net/envy_4500_series?ip=192.168.7.235&queue=false'
>   [dll] sane_open: open successful
> 
> The only thing I can think of is the plugin your device needs for
> scanning. The minimum version required is 3.15.4. Later versions are at
> 
>  https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
> 
> Download and install with hp-plugin.

So how are going on with this suggestion, Svante? As Odyx says, there
have been no changes in hplip to account for such behaviour. Also, I
have tested an HP aio with success.

(If I understand what you are doing, your setup does not require changes
in saned.conf, dll.conf or net.conf).
 
Cheers,
 
-- 
Brian.


Reply to: