[sane-devel] (no subject)

wulywuly wuly12345 at hotmail.com
Thu Jul 27 03:50:44 UTC 2006


Hi,
I have been trying to use the latest saned trough busybox inetd. And I have ran across some serious problems, if i run "saned -d" it works just fine both to find and use the scanner, but as soon as i try to use it trough inetd it refuses.
I running a cross compiler for saned.My run environment is:i386,Uclibc 0.9.18,kernel linux 2.4.25.

I have followed the saned guide on the website, this is what i have added:

/etc/services:
sane            6566/tcp        saned   # scanning service

/etc/inetd.conf:
sane    stream  tcp     nowait  root    /usr/sbin/saned saned


/etc/sane.d/net.conf:
localhost
192.168.0.1(my computer IP)

/etc/sane.d/saned.conf:
+
(when i tried without tcpd i used localhost and the IP of my workstation)

When i try to run "SANE_DEBUG_NET=128 scanimage -L"
from my workstation (or from the server itself) i get:
"[sanei_debug] Setting debug level of net to 128.
[net] sane_init: authorize = 0x8049260, version_code = 0xbffff548
[net] sane_init: SANE net backend version 1.0.6 from sane-backends-1.0.7
[net] sane_init: Client has little endian byte order
[net] sane_init: determining sane service port
[net] sane_init: found port 6566
[net] sane_init: searching for config file
[net] sane_init: trying to add 192.168.0.1
[net] add_device: adding backend 192.168.0.1
[net] add_device: backend 192.168.0.1 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: done
[net] sane_get_devices: local_only = 0
[net] connect_dev: trying to connect to 192.168.0.1
[net] connect_dev: connection succeeded
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=(null), local version=1.0.3)
[net] connect_dev: argument marshalling error (Connection reset by peer)
[net] connect_dev: closing connection to 192.168.0.1
[net] sane_get_devices: ignoring failure to connect to 192.168.0.1
[net] sane_get_devices: finished (0 devices)

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[net] sane_exit: exiting
[net] sane_exit: closing dev 0x805e5b8, ctl=-1
[net] sane_exit: finished."

When i try to run telnet 192.168.0.1 from other PC.
[root at localhost ~]# telnet 192.168.0.1 6566
Trying 192.168.0.1...
Connected to 192.168.0.1 (192.168.0.1).
Escape character is '^]'.
Connection closed by foreign host.
But I run ./busybox telnet 127.0.0.1 6566 on my PC .It is  fine.The saned can run.
why ?
Thanks for a great app anyways.
Jacket


_________________________________________________________________
ÂÊÏȳ¢ÊÔ Windows Live Mail¡£
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d



More information about the sane-devel mailing list