I tracked down
this  problem to  the file:
scan/sane/hpaio.c

The function DevDiscovery(int localOnly)
skips the detection of cups connected  devices if localOnly is set. This 
flag is passed as TRUE by scaned, probably to
avoid a loop with itself.
I think that hplip is misunderstanding this flag.
I just commented out the respective "if" (line 291 of hpaio.c in  
hplip-1.7.4a)
and now it works.

This is very crude but in this way saned is working with libsane-hpaio 
again.

I hope this helps.

Hernan


This is the patch:


diff -rup hplip-1.7.4a/scan/sane/hpaio.c hplip-1.7.4/scan/sane/hpaio.c
--- hplip-1.7.4a/scan/sane/hpaio.c      2007-03-16 21:09:04.000000000 -0300
+++ hplip-1.7.4b/scan/sane/hpaio.c 2007-07-20 16:17:38.000000000 -0300
@@ -288,7 +288,7 @@ static int DevDiscovery(int localOnly)
       }
    }
 
-   if (!localOnly)
+   if (1)
    {
       cnt = GetCupsPrinters(&cups_printer);
       for (i=0; i<cnt; i++)






> I've discovered a bug in hplip which makes it impossible to share the 
> scanner
> of a networked HP Photosmart C5180 using the sane network daemon (saned).
>
> In theory saned is supposed to provide access to a connected scanner 
> (using
> e.g. the hpaio backend). Each client on the network which supports 
> sane should
> now be able to connect to the server running the sane network daemon and
> access the server's scanners - without needing any special drivers 
> (because
> the driver, hplip in my case is installed on the server).
> And this setup worked well with all hplip versions up to 1.6.10.
>
> I've tried many different distros now to get this feature to work with 
> newer
> versions of hplip, but I was not successful:
> Ubuntu 7.04 - hplip 2.7.6 - saned not working
> Gentoo 2006.1 - hplip 1.6.12 & 1.7.3 - saned not working
> Debian 4.0 - hplip 1.7.3 - saned not working
> openSuSE 10.2 - hplip 1.7.3 - saned not working
>
> Scanning (locally, on the server) and printing (locally and over the 
> net using
> cups) works fine in all cases.
> Of course I am not using any firewall or other related 
> software/hardware which
> could block the saned functionality (and it works with 1.6.10).
>
> For further details (output of saned, etc.) you might want to take a 
> look at:
> http://www.mail-archive.com/hplip-help%40lists.sourceforge.net/msg02867.html
>
> I am definitely _not_ the only user who is annoyed by this terrible bug.
>
> Please try to investigate this. I would be willing to provide you with 
> debug
> information etc.
>
>
> Regards,
> Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to