Hi,

Why would you use saned with a networked PS C5180? Since the PS C5180 is
networked, you can use xsane from any PC without saned.

According to SANE Standard v1.04, when localOnly is true during
sane_get_devices, no remote devices are returned. This means only
USB/Parallel devices are returned.

I would use saned if the all-in-one was USB connected only. Then the
hpaio.c code should work correctly. 

-dave


> -----Original Message-----
> From: Hernan Pastoriza [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 20, 2007 2:14 PM
> To: hplip-devel@lists.sourceforge.net
> Cc: [EMAIL PROTECTED]
> Subject: Re: Bug: hplip >=1.6.12 breaks support for the sane 
> network daemon
> 
> 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/msg0286
> > 7.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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to