PDA

Bekijk de volledige versie : [HowTo] Sane Scanner-Server with XSane Frontend



carterb
15-09-2009, 18:55
Here (http://wl500g.info/showthread.php?t=21081) you find the german translation of this How-To.


-------------------------------------------------------------------------
News around the How-To:

2010-10-15:
Added section "4. Known problems with some printers"
Therefor I need your support. So please post your experiences!
The How-To is updated.

2010-07-08:
I compiled hplip 3.9.2-1. HP-Scanners sould now be well supported!!!
The How-To is updated.

2009-10-26 ipkg package from optware server:
Since I am official Maintainer of the sane-backends optware package, you can use the optware package of sane-backends now.
I will update the package with every revision.
The HowTo is updated for use with the optware package :D
-------------------------------------------------------------------------


Hi everybody,

after months of working, I finally succeeded in setting up a Sane Scanner-Server on my Asus Wl500gP. I so often found help in this forum, so I decided to give something back and write this Tutorial. There are some Threads about this topic, sadly the Threads are not that helpfull. Thats why I decided to compile the latest stable version of sane-backends for our routers. It works fine!!


About Sane:

A Scanner-Server makes it possible, to share a scanner, that is connected to your router, to every person who has access to your network. Like you know it from networkprinters. Unlike printservers (like they are used in printers) scanner-servers are not that popular and they are also very expensive. With the help of the Sane scanner-server your asus router is a adequate scanner-server.
To control your scanner from a PC, I use the XSane frontend. If you like to know, how the frontend looks like, take a look at the attached image.

For further information on Sane and XSane, take a look at the following links.
Sane-Project (http://www.sane-project.org/)
Xsane (http://www.xsane.org/)

First of all, you have to check (http://www.sane-project.org/sane-mfgs.html) if your scanner/multifunction printer is supported by the Sane-server. Status should be at least "basic". If everything is fine, you can go on.


Parts of the How-To:

1. Firmware-Update (you need the newest router firmware, otherwise your router isn't able to talk to many printers).

2. Installation and configuration of the Sane scanner-server on your asus router.

3. Installation and configuration of the Xsane frontend.


Basic requirement is, that your router is installed on wengi's HowTo (http://wl500g.info/showthread.php?t=10307).
Thanks to wengi!

So lets start!


1. Firmware-Update

Here (http://code.google.com/p/wl500g/downloads/list) you get the latest firmware for your router.
For those of you, who do not know the project yet, its a further development of the oleg firmware. It has the same functionality like Oleg's firmware, but its build on a newer kernel.
If you wanna learn more about the project, look here (http://code.google.com/p/wl500g/).
Please note: You can try it with your current firmware (e.g. oleg's 1.9.2.7-10) but it will not work with many printers. Especially many Canon and HP printers will not be supported.


2. Installation of the Sane scanner-server

Attention: If you worked with sane-backends before, you have to remove all older versions of the sane-backends on your mashine.
So to be sure:

ipkg remove sane-backends
ipkg remove sane-backends-wl500


2.1 Install some libraries

The Sane Scanner-Server needs some additional libraries.

ipkg install libusb
ipkg install libtiff
ipkg install libjpeg
ipkg install libieee1284


2.2 Install the package from optware

Just do a:

ipkg update
ipkg install sane-backends


2.3 Edit the config-file

After installing the Sane server, you can start with the configuration.
Therefor, open the Sane config file:

vi /opt/etc/sane.d/saned.conf
Customize the following line at the end of the file, so it fits to your network:

192.168.1.0/24 #grant access to scanner from network 192.168.1.x


2.4 Edit the xinetd-script

You have to change the user and group in the xinetd-script to your root-user.
My root-user is "admin".

vi /opt/etc/xinetd.d/saned

service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
}



2.5 Restart the router and check if the server is running

Reboot:

flashfs save && flashfs commit && flashfs enable && reboot

The following command checks, if the scanner was found:

sane-find-scanner
That has to be the output:

found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:004
Now the following command:

scanimage -L
That has to be the output now.

device `pixma:04A91713_19E40D' is a CANON Canon PIXMA MP830 multi-function peripheral
If both outputs are correct, your Sane-server is working fine :)


3. HPLIP

Most HP-Scanner uses hplip. I compiled a working ipkg-package.
Take a look at this post (http://wl500g.info/showpost.php?p=199955&postcount=119).


4. Known issues with some printers

4.1 HP PhotoSmart c5283

Refer to the following post (http://wl500g.info/showpost.php?p=213637&postcount=154). Thanks to electropanda!


5. Installation and configuration of XSane on Windows

5.1 Download the software

Here (ftp://ftp.sane-project.org/pub/sane/xsane/xsane-win32-0.991.zip) you get the latest version of XSane.


5.2 Installation of XSane

There is not that much to "install".
Extract the archiv and copy the folder "sane" to C:\
Attention: The storage position is important, otherwise the software will not work.


5.3 Configuration of XSane

The coniguration is also not that difficult. You only have to edit the following file:

C:\sane\etc\sane.d\net.conf
At the end of the file, you have to paste your router ip-adress. That's how my config file looks like:

# This is the net config file. Each line names a host to attach to.
# If you list "localhost" then your backends can be accessed either
# directly or through the net backend. Going through the net backend
# may be necessary to access devices that need special privileges.
# localhost
192.168.1.1 #Thats my router-ip


5.4 Starting XSane

You can start the program by executing the following file:

C:\sane\bin\xsane.exe

Now you can scan images with XSane :)

There are some more frontends available, look here (http://www.sane-project.org/sane-frontends.html) for an overview.


For all Linux users:

There is also a linux version of XSane available. For more information look at the XSane-homepage (http://www.xsane.org/).


If you have any problems during installation/configuration post in this thread.
If you like the How-To and your Sane scanner-server works, please also make a short post :)

Regards
Oliver

Kemmon
17-09-2009, 08:57
Dear Oliver,

I'll give it a try!
Thanks for this How-To.

Kemmon!

carterb
22-09-2009, 15:12
Hi,

I compiled an ipgk-package of the sane-server. Just take a look at the How-To.
Installation is now much easier :D.

Bye
Oliver

bananax0r
27-09-2009, 08:44
From the Samsung there is only one MFP, and that is not supported, and what with others?

carterb
27-09-2009, 09:31
Hi,

which model do you use?
Maybe you can take another backend?!

Regards
Oliver

bananax0r
27-09-2009, 18:50
Hi,

which model do you use?
Maybe you can take another backend?!

Regards
Oliver

I use SCX-4200

rm_fontes
27-09-2009, 21:11
does this work also with hp psc-1510?
it's a printer scanner copier. i know that it's simple to work with the printing part and i wanted to know if it also work as scanner through the router

carterb
28-09-2009, 11:21
Hi,

because the two devices (samsung SCX-4200, hp psc-1510) are not listed and I do not know one of them, I have to ask at the sane-mailing-list.
Will take some time until we get answer, maybe a day.

Regards
Oliver

carterb
28-09-2009, 14:52
Hi,

for samsung SCX-4200 you have to edit the following config-file after step 2.3 of the How-To (before you restart your router).

/opt/etc/sane.d/xerox_mfp.conf
You have to insert the following lines at the end of the file:

#Samsung SCX-4200
# vendor product
usb
Now you must figure out, what is the vendor-id and product-id of your device.
You can do this, by using the following command:

sane-find-scanner

On the output, you find your vendor-id and product-id.


# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
So in this special case, the config-file would look like that:

#xerox_mfp.conf

#Dell MFP Laser Printer 1815dn
usb 0x413c 0x5124

#Xerox Phaser 6110MFP
usb 0x0924 0x3d5d

#Samsung SCX-4200
# vendor product
usb 0x04a9 0x1713

Please give me a short acknowledgment if this works for you!


I'm looking for a solution for hp psc-1510.

carterb
01-10-2009, 10:40
Hi,

I now have a solution for hp psc-1510.

You have to install package hplip. I compiled it on the Asus and you can download the ipkg package here (http://rapidshare.com/files/287272548/hplip-wl500gp_2.8.9-1_for_AsusWL500gP_mipsel.zip).
Attention: Do not use the ipkg-package from the ipkg-server. It will not work with sane-backends-wl500.

After you downloaded the file, unpack and copy it anywhere at the router. Install it with the following command:

ipkg install /your/storage/location/hplip-wl500gp_2.8.9-1_for_AsusWL500gP_mipsel.ipk
Finally you have to edit a sane-config-file. Open the following file:

vi /opt/etc/sane.d/dll.conf
and paste the following entry at the end of the file:
Attention: My new compiled version (available at rapidshare from 2009-09-03) of sane-backends-wl500 already has this entry. With this command, you can check if the entry is already in:

grep "hpaio" /opt/etc/sane.d/dll.conf
If its not in (the output is empty), open the file and paste the following:

hpaio

Please give a short acknowledgment if this works for you!
I will take the hplip into the howto, because many hp-scanner need this lib.

Regards
Oliver

rm_fontes
05-10-2009, 18:02
I've followed the how to for the hp psc 1500.

I nedded to install also libusb-0.1.so.4 (ipkg install libusb) and libtiff.so.3 (ipkg install libtiff) to make sane-find-scanner and scanimage -L to work.

With the sane-find-scanner code I got

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [HP], product=0x4c11 [PSC 1500 series]) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
but with scanimage -L I got
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).

Can you help me?

edit:
I also saw this in the system log:

Oct 5 17:30:17 xinetd[187]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Oct 5 17:30:17 xinetd[187]: Service saned missing attribute user - DISABLING

I removed xinetd and the result is the same.

carterb
05-10-2009, 18:24
Hi,

first of all, you have to enter a valid user to

/opt/etc/xinetd.d/saned
Enter the root-user. On my mashine its

admin
After you did so, please do a

flashfs save && flashfs commit && flashfs enable && reboot
to restart your router.

Then open

/tmp/syslog.log
and post the output of xinetd.

Also look for the following lines and post them:

Jan 1 01:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 01:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 01:00:03 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 01:00:03 kernel: hub.c: USB hub found
Jan 1 01:00:03 kernel: hub.c: 2 ports detected
Jan 1 01:00:04 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 01:00:04 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: irq 12, pci mem c0145000
Jan 1 01:00:04 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 01:00:04 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 01:00:04 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
Jan 1 01:00:04 kernel: hub.c: USB hub found
Jan 1 01:00:04 kernel: hub.c: 4 ports detected
Jan 1 01:00:04 kernel: usb.c: registered new driver usblp
Jan 1 01:00:04 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:05 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan 1 01:00:05 kernel: usb.c: USB device 2 (vend/prod 0xc0b/0xb159) is not claimed by any active driver.
Jan 1 01:00:05 kernel: usb.c: registered new driver audio
Jan 1 01:00:05 kernel: audio.c: v1.0.1:USB Audio Class driver
Jan 1 01:00:05 kernel: Linux video capture interface: v1.00
Jan 1 01:00:06 kernel: hub.c: new USB device 01:03.2-2, assigned address 3
Jan 1 01:00:06 kernel: printer.c: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1713
Jan 1 01:00:06 kernel: printer.c: usblp0 Device ID string [115]='MFG:Canon;CMD:BJL,BJRaster3,BSCCe;SOJ:TXT01;MDL: MP830;CLS:PRINTER;DES:Canon MP830;VER:1.15;STA:10;FSI:03;
Jan 1 01:00:06 kernel: printer.c: usblp1: USB Bidirectional printer dev 3 if 3 alt 0 proto 2 vid 0x04A9 pid 0x1713
Jan 1 01:00:06 kernel: printer.c: usblp1 Device ID string [76]='MFG:Canon;CMD:MultiPASS 2.1;MDL:MP830 FAX;CLS:PRINTER;DES:Canon MP830 FAX;'

And again:

scanimage -L

Regards
Oliver

rm_fontes
06-10-2009, 21:15
I changed the root-user and the problem is still the same

hereґs what appears when i plugged the hp psc 1500:

Oct 6 20:50:44 kernel: hub.c: new USB device 01:03.0-2, assigned address 2
Oct 6 20:50:44 kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4C11
Oct 6 20:50:44 kernel: printer.c: usblp0 Device ID string [208]='MFG:HP;MDL:PSC 1500 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:6 543;SN:MY5ADD13KM0498;S:038000C4800F1021012c178004 4c288003e;J: ;Z:0102
Oct 6 20:51:09 kernel: printer.c: usblp0 Device ID string [208/max 1552]='MFG:HP;MDL:PSC 1500 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:6 543;SN:MY5ADD13KM0498;S:038000C480001021002c178004 4c288003e;J:
Oct 6 20:51:09 kernel: printer.c: Parsing USBLPID...

i removed xinetd

edit: i installed xinetd and I saw that a had to change something. the file /opt/etc/xinetd.conf to
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Sample configuration file for xinetd

defaults
{
only_from = localhost 10.0.0.0/8 172.16.0.0/12 192.168.1.0/16
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /opt/etc/xinetd.d

still the same so I added
#HP psc 1500
usb 0x03f0 0x4c11 to the file /opt/etc/sane.d/xerox_mfp.conf and still nothing...

carterb
07-10-2009, 08:09
Hi,

@rm_fontes:

still the same so I added
#HP psc 1500
usb 0x03f0 0x4c11

Why did you do this? That was the hint for Samsung-Scanners. Delete this entry, please.

Why did you remove xinetd? Did you have any other problems with it?
Your xinetd.conf looks fine.

Please do a:

killall xinetd
and after that a:

xinetd -d
and post the output.

Firstly we have to look why your saned-service does not wotk.

Regards
Oliver

rm_fontes
07-10-2009, 11:47
I was just trying different things. I deleted the entry. I removed xinetd because I saw an error but now it's installed and ok.


[rmfontes@WL-500gp root]$ killall xinetd
[rmfontes@WL-500gp root]$ xinetd -d
09/10/7@11:21:39: DEBUG: 217 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ns [file=/opt/etc/xinetd.conf] [line=15]
09/10/7@11:21:39: DEBUG: 217 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ssn [file=/opt/etc/xinetd.d/netbios-ssn] [line=1 1]
09/10/7@11:21:40: DEBUG: 217 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.d/saned] [line=11]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0 .0(NET) 192.168.1.1/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ns
id = netbios-ns
flags = IPv4
socket_type = dgram
Protocol (name,number) = (udp,17)
port = 137
wait = yes
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/nmbd
Server argv = nmbd
Only from: localhost(HOST) 192.168.1.1/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ssn
id = netbios-ssn
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 139
wait = no
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/smbd
Server argv = smbd
Only from: localhost(HOST) 192.168.1.1/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0 .0(NET) 192.168.1.1/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

09/10/7@11:21:40: DEBUG: 217 {cnf_start_services} Started service: netbios-ns
09/10/7@11:21:40: DEBUG: 217 {cnf_start_services} Started service: netbios-ssn
09/10/7@11:21:40: DEBUG: 217 {cnf_start_services} Started service: saned
09/10/7@11:21:40: DEBUG: 217 {cnf_start_services} mask_max = 8, services_started = 3
09/10/7@11:21:40: NOTICE: 217 {main} xinetd Version 2.3.14 started with no optio ns compiled in.
09/10/7@11:21:40: NOTICE: 217 {main} Started working: 3 available services
09/10/7@11:21:40: DEBUG: 217 {main_loop} active_services = 3
09/10/7@11:22:06: NOTICE: 217 {general_handler} Unexpected signal 20 (Window chan
09/10/7@11:22:06: DEBUG: 217 {main_loop} active_services = 3
09/10/7@11:22:08: NOTICE: 217 {general_handler} Unexpected signal 20 (Window chan
09/10/7@11:22:08: DEBUG: 217 {main_loop} active_services = 3
09/10/7@11:22:20: NOTICE: 217 {general_handler} Unexpected signal 20 (Window chan ged)
09/10/7@11:22:20: DEBUG: 217 {main_loop} active_services = 3
09/10/7@11:22:24: NOTICE: 217 {general_handler} Unexpected signal 20 (Window chang ed)
09/10/7@11:22:24: DEBUG: 217 {main_loop} active_services = 3
09/10/7@11:23:26: NOTICE: 217 {general_handler} Unexpected signal 20 (Window changed)
09/10/7@11:23:26: DEBUG: 217 {main_loop} active_services = 3

carterb
07-10-2009, 11:53
I saw an error but now it's installed and ok.

What is ok, only xinetd or the scanner-server ;) ??

xinetd now looks good.

rm_fontes
07-10-2009, 18:48
xinetd works without errors. the problem about scanimage -L is the same. the sane-find-scanner detect the scanner but the other doesn't

carterb
07-10-2009, 22:11
Hi,

please execute the following command and post the log-file:

scanimage -T >> /tmp/sane-log.log

Regards
Oliver

rm_fontes
07-10-2009, 22:35
[rmfontes@WL-500gp root]$ scanimage -T >> /tmp/harddisk/sane-log.log
scanimage: no SANE devices found

the log file is empty

carterb
08-10-2009, 07:23
Hi,

are you sure that hpaio is listed in:

/opt/etc/sane.d/dll.conf

Post the output of:

grep "hpaio" /opt/etc/sane.d/dll.conf

Regards
Oliver

carterb
08-10-2009, 13:45
Hi,

I have another idea, how to solve the problem:

I compiled a new version of the sane-backends-wl500.
Download it here (http://rapidshare.com/files/290252104/sane-backends_1.0.20_V1.1_for_AsusWL500gP_mipsel.zip). Its just a beta for testing!

Remove your old version with:

ipkg remove sane-backends-wl500

And install the new version like it is explaint in the HowTo.
Attention: Package-name is now:

sane-backends_1.0.20_V1.1_for_AsusWL500gP_mipsel
so you have to customise the install-command.

This version works togehter with the hplip from ipkg-server.

Now remove your hplip-wl500gp:

ipkg remove hplip-wl500gp

And install the version from ipkg-server:

ipkg install hplip

If the following message appears, type "n" for "NO":

Configuration file '/opt/etc/sane.d/dll.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installed)
The default action is to keep your current version.
*** dll.conf (Y/I/N/O/D) [default=N] ?n
Configuring hplip


Again check if the entry hpaio is in /opt/etc/sane.d/dll.conf:

grep "hpaio" /opt/etc/sane.d/dll.conf

if the output is empty just type:

echo "hpaio" >> /opt/etc/sane.d/dll.conf

And again:

grep "hpaio" /opt/etc/sane.d/dll.conf

Now it should be in :rolleyes:

Restart and test if it works.

Regards
Oliver

rm_fontes
08-10-2009, 21:35
i followed the new how to and the problem is the same

carterb
08-10-2009, 21:49
Hi,

just to be sure, you have the latest router firmware installed?

Regards
Oliver

rm_fontes
09-10-2009, 12:07
I have the oleg 1.9.2.7-d-r617.
Do I nedd to configure xinetd? yesterday I configured because in the installation process I was told and I tested and the result was the same. Today I saw an error:

Jan 1 00:00:53 xinetd[174]: missing service keyword [file=/opt/etc/xinetd.d/saned] [line=1]
Jan 1 00:00:53 xinetd[174]: 174 {init_services} no services. Exiting...

Today I erased the information on the /opt/etc/xinetd.d/saned file and tested and the result is still the same

carterb
09-10-2009, 12:37
Hi,

open the file:

/opt/etc/xinetd.d/saned
and add the following line at the top of the file.

service saned

It should look someting like this but with your "root"-user in it:

service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
}


Restart the router and try again.

Regards
Oliver

rm_fontes
09-10-2009, 17:31
with
service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
} i get
Oct 9 16:54:29 xinetd[187]: Port not specified and can't find service: saned with getservbyname
Oct 9 16:54:29 xinetd[187]: 187 {init_services} no services. Exiting...
If I add the port = 6566 on the file I get
Oct 9 16:58:59 xinetd[187]: service/protocol combination not in /etc/services: saned/tcp
Oct 9 16:58:59 xinetd[187]: 187 {init_services} no services. Exiting...

so I checked the /etc/services file and I have at the end

# Local services

sane-port 6566/tcp # SANE network scanner daemon



I also got
[rmfontes@WL-500gp root]$ scanimage -L
scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file
scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file

carterb
09-10-2009, 17:35
Hi yes, you have to change the service name to "saned":

# Local services

saned 6566/tcp # SANE network scanner daemon

And do a restart.

Regards
Oliver

carterb
09-10-2009, 17:43
Hi,

you also have to change the following file:

/opt/etc/init.d/S01sane-backends

Has to look like that:

#!/bin/sh

PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin

if !( grep -q ^saned /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/serv
fi


Restart.

Regards
Oliver

rm_fontes
09-10-2009, 18:07
Hi yes, you have to change the service name to "saned":

# Local services

saned 6566/tcp # SANE network scanner daemon

And do a restart.

Regards
Oliver

I change this and I save the file and then the flashfs and I reboot but after the reboot the name backs to sane-port. I don't know what to do

carterb
09-10-2009, 18:10
Hi, did you also do that:

http://wl500g.info/showpost.php?p=163772&postcount=28

Regards
Oliver

rm_fontes
09-10-2009, 18:15
Hi, did you also do that:

http://wl500g.info/showpost.php?p=163772&postcount=28

Regards
Oliver

yes. the problem is the file /etc/services that after a reboot changes back to the sane-server instead of saned

carterb
09-10-2009, 18:22
Hi,

then you did not change /opt/etc/init.d/S01sane-backends.
This file looks at startup if the right service/port configuration is in /etc/services.

Regards
Oliver

rm_fontes
09-10-2009, 19:11
I changed /opt/etc/init.d/S01sane-backends

Now I have 2 problems.
I change /etc/services to
# Local services

saned 6566/tcp # SANE network scanner daemon but after the reboot it backs to sane-port. How that happens? Is it possible to have some file automatically doing that?

I changed that and instead of rebooting I shut down xinetd and started it again and after that I run the code scanimage -L and I got
[rmfontes@WL-500gp root]$ scanimage -L
scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file
scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file

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).

carterb
10-10-2009, 09:08
Hi,


libsane-hpaio.so.1
ok thats some problem with hplip-library. I have to figure out how to solve it.

Please post the file:

/opt/etc/init.d/S01sane-backends
after a restart.


but after the reboot it backs to sane-port. How that happens? Is it possible to have some file automatically doing that?

The reason is a wrong "/opt/etc/init.d/S01sane-backends" because this file is looking for the right entry and if its not in, it will becreated. In your case, "sane-port" is created and not "saned". So as I told you, please post the file.

Regards
Oliver

rm_fontes
10-10-2009, 11:49
I checked the /opt/etc/init.d/S01sane-backends file and it was sane-port. I don't know how it changed but it's ok now after the reboot. No error on the xinetd.
The only thing that does't work is scanimage -L.

carterb
10-10-2009, 12:39
Hi,

good!


scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file
scanimage: '/opt/lib/sane/libsane-hpaio.so.1' is not an ELF file


I'm looking for a solution for the other problem.

Regards
Oliver

carterb
11-10-2009, 22:24
Hi,

do the following for a test:

rm /opt/lib/sane/libsane-hpaio.so.1
ipkg remove hplip
flashfs save && flashfs commit && flashfs enable && reboot

After restart do:

ipkg install hplip

restart and try it again with:

scanimage -L

Regards
Oliver

rm_fontes
12-10-2009, 21:23
hplip problem solved

scanimage -L still doesn't detect the scanner

wiert
15-10-2009, 23:26
Many thanks for the HowTo!

I followed the whole thing and my Epson all-in-one RX520 is now connected to the ASUS WL-500 g Premium.

What is working:

printing ubuntu Karmic & Jaunty
printing Windows XP
sane-find-scanner detects the scanner
scanimage -L detects the scanner after adding "0x04b8 0x081a" to epson2.conf

I scanned an image (with scanimage) locally on the router and was able to save to the external storage device.

What is not working:
scanning over the network with xsane (Ubuntu and Windows XP)

I double checked with the instructions in the HowTo
what am I doing wrong - have missed something
how to analyse - logs - commands ?

carterb
16-10-2009, 07:43
Hi,

whats the error message of XSane?

Could be a network problem.

After a restart pleaso post the output of the following commands:

grep "saned" /etc/services

grep "saned" /opt/etc/init.d/S01sane-backends

#Restart xinetd
killall xinetd
xinetd -d
Post the complete output of xinetd.

From your Windows-Commandline (cmd), type

telnet ip.of.your.router 6566
If the output is a black screen, well! Otherwise post the error-message.

Regards
Oliver

wiert
16-10-2009, 22:20
Thanks for the quick reply, here my answers:

Output of Xsane: no devices available


grep "saned" /etc/services

saned 6566/tcp # SANE network scanner daemon

grep "saned" /opt/etc/init.d/S01sane-backends

if !( grep -q ^saned /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services


#Restart xinetd
killall xinetd
xinetd -d

sh: xinetd: not found

telnet 192.168.1.1 6566

Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused

I suppose a xinetd and/or connection problem? My answers made me thinking:
due to some reason "xinetd" was not installed (not seen in HowTo, forgotten, ...), but

ipkg install xinetd
and

flashfs save && flashfs commit && flashfs enable && reboot
Did help me one step further
Now Xsane is starting remotely, but gives the following error:

Unknown SANE status code -1081075667
I'll keep searching?

I tried scanimage both on Ubuntu and Windows and the output of

scanimage -L
on Ubuntu gives:

WARNING: Unhandled message: interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect
device `net:192.168.1.1:epson2:libusb:003:003' is a Epson generic flatbed scanner

Thx

carterb
17-10-2009, 08:28
Hi,

are you sure, xinetd is installed correctly now??

please again (now with xinetd installed) post the output of:

#Restart xinetd
killall xinetd
xinetd -d

And post your xinetd-sane-file:

vi /opt/etc/xinetd.d/saned

I'm looking for the error message on sane-support, because I do not know it.

Regards
Oliver

wiert
17-10-2009, 11:13
Hi,

Part II:
The output of

#Restart xinetd
killall xinetd
xinetd -d
looks like


70/1/1@13:19:03: DEBUG: 1662 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.0.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.0.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

70/1/1@13:19:03: DEBUG: 1662 {cnf_start_services} Started service: saned
70/1/1@13:19:03: DEBUG: 1662 {cnf_start_services} mask_max = 6, services_started = 1
70/1/1@13:19:03: NOTICE: 1662 {main} xinetd Version 2.3.14 started with no options compiled in.
70/1/1@13:19:03: NOTICE: 1662 {main} Started working: 1 available service
70/1/1@13:19:03: DEBUG: 1662 {main_loop} active_services = 1

and my xinetd-sane-file:


service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
}


If nothing wrong with the above output, probably a backend problem?

I had to put manufacturer ID and device ID manually in epson2.conf to let scanimage recognise the scanner?



Thx!

ram32
19-10-2009, 17:50
Hello!
Great thanks for you howto, carterb!
But I have the same problem as weirt with my Epson Stylus Photo RX640. The output of all commands are the same as weirt's. Except two things.
1) xsane gave me a segmentation fault.
2) I am able to get scan using simple scanimage > temp.png on my PC running Ubuntu Linux.

carterb
19-10-2009, 18:19
Hi,


But I have the same problem as weirt with my Epson Stylus Photo RX640. The output of all commands are the same as weirt's. Except two things.
1) xsane gave me a segmentation fault.
2) I am able to get scan using simple scanimage > temp.png on my PC running Ubuntu Linux.

this seems to be a problem with the epson2 backend.
I'm working on a solution.

Regards
Oliver

ram32
21-10-2009, 21:43
Hi,



this seems to be a problem with the epson2 backend.
I'm working on a solution.

Regards
Oliver

Maybe you can share some thoughts so I can help you too :)

carterb
24-10-2009, 13:51
Hi,

problem with epson2-backend:

Please try the following on a Linux mashine (Ubuntu e.g.)
On the command line type:

SANE_DEBUG_NET=10
xsane 2>net.log
and post thge logfile.


Network scanning?
Many thanks for the HowTo!

I followed the whole thing and my Epson all-in-one RX520 is now connected to the ASUS WL-500 g Premium.

What is working:

* printing ubuntu Karmic & Jaunty
* printing Windows XP
* sane-find-scanner detects the scanner
* scanimage -L detects the scanner after adding "0x04b8 0x081a" to epson2.conf

I scanned an image (with scanimage) locally on the router and was able to save to the external storage device.

What is not working:
scanning over the network with xsane (Ubuntu and Windows XP)

* I double checked with the instructions in the HowTo
* what am I doing wrong - have missed something
* how to analyse - logs - commands ?

Reply With Quote

Could you also please try to scan a image on Ubuntu with scanimage?
I think the problem is related to xsane with epson2-backend because like ram32 told us, scanimage works.
Please also try to scan with scanimage from Windows.

If my suspicion is right, I have to ask the developer of XSane if he has an solution.

Only for testing: Comment the line

epson2
and uncomment the line

epson
in:

/opt/etc/sane.d/dll.conf

Restart and try again.

Regards
Oliver

ram32
24-10-2009, 15:44
Hello carterb :)
I have tryed to do this already, here is the output:

[sanei_debug] Setting debug level of net to 10.
[net] sane_init: authorize = 0x413a70, version_code = 0x7fff8a519aa4
[net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from sane-backends 1.0.19
[net] sane_init: Client has little endian byte order
[net] sane_init: searching for config file
[net] net_avahi_browse_callback: CACHE_EXHAUSTED
[net] sane_init: trying to add 192.168.1.1
[net] add_device: adding backend 192.168.1.1
[net] add_device: backend 192.168.1.1 added
[net] sane_init: done reading config
[net] sane_init: evaluating environment variable SANE_NET_HOSTS
[net] sane_init: evaluating environment variable SANE_NET_TIMEOUT
[net] sane_init: done
[net] sane_get_devices: local_only = 0
[net] connect_dev: trying to connect to 192.168.1.1
[net] connect_dev: [0] connection succeeded (IPv4)
[net] connect_dev: sanei_w_init
[net] connect_dev: net_init (user=ram32, local version=1.0.3)
[net] connect_dev: freeing init reply (status=Success, remote version=1.0.3)
[net] connect_dev: done
[net] net_avahi_browse_callback: ALL_FOR_NOW
[net] sane_get_devices: got 192.168.1.1:epson2:libusb:002:004
[net] sane_get_devices: finished (1 devices)
[net] sane_open("192.168.1.1:epson2:libusb:002:004")
[net] sane_open: host = 192.168.1.1, device = epson2:libusb:002:004
[net] sane_open: device found in list
[net] sane_open: net_open
[net] sane_open: getting option descriptors
[net] fetch_options: 0x2782510
[net] fetch_options: get_option_descriptors
[net] fetch_options: creating 45 local option descriptors
[net] fetch_options: copying 45 option descriptors
[net] fetch_options: 45 options fetched
[net] sane_open: success
[net] sane_control_option: option 0, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 1
[net] sane_get_option_descriptor: option 2
[net] sane_get_option_descriptor: option 2
[net] sane_control_option: option 2, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 3
[net] sane_get_option_descriptor: option 4
[net] sane_get_option_descriptor: option 5
[net] sane_get_option_descriptor: option 5
[net] sane_control_option: option 5, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 6
[net] sane_get_option_descriptor: option 7
[net] sane_get_option_descriptor: option 8
[net] sane_get_option_descriptor: option 8
[net] sane_control_option: option 8, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 9
[net] sane_get_option_descriptor: option 10
[net] sane_get_option_descriptor: option 10
[net] sane_control_option: option 10, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 11
[net] sane_get_option_descriptor: option 12
[net] sane_get_option_descriptor: option 13
[net] sane_get_option_descriptor: option 14
[net] sane_get_option_descriptor: option 15
[net] sane_get_option_descriptor: option 15
[net] sane_control_option: option 15, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 16
[net] sane_get_option_descriptor: option 17
[net] sane_get_option_descriptor: option 18
[net] sane_get_option_descriptor: option 19
[net] sane_get_option_descriptor: option 19
[net] sane_control_option: option 19, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 20
[net] sane_get_option_descriptor: option 21
[net] sane_get_option_descriptor: option 22
[net] sane_get_option_descriptor: option 23
[net] sane_get_option_descriptor: option 24
[net] sane_get_option_descriptor: option 25
[net] sane_get_option_descriptor: option 26
[net] sane_get_option_descriptor: option 27
[net] sane_get_option_descriptor: option 28
[net] sane_get_option_descriptor: option 29
[net] sane_get_option_descriptor: option 30
[net] sane_get_option_descriptor: option 31
[net] sane_get_option_descriptor: option 32
[net] sane_get_option_descriptor: option 33
[net] sane_get_option_descriptor: option 33
[net] sane_control_option: option 33, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 34
[net] sane_get_option_descriptor: option 34
[net] sane_control_option: option 34, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 35
[net] sane_get_option_descriptor: option 35
[net] sane_control_option: option 35, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 36
[net] sane_get_option_descriptor: option 36
[net] sane_control_option: option 36, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 37
[net] sane_get_option_descriptor: option 38
[net] sane_get_option_descriptor: option 38
[net] sane_control_option: option 38, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 39
[net] sane_get_option_descriptor: option 40
[net] sane_get_option_descriptor: option 41
[net] sane_get_option_descriptor: option 42
[net] sane_get_option_descriptor: option 43
[net] sane_get_option_descriptor: option 44
[net] sane_get_option_descriptor: option 38
[net] sane_get_option_descriptor: option 38
[net] sane_control_option: option 38, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: remote done (Success, info 0)
[net] sane_control_option: done (Success, info 0)
[net] sane_get_option_descriptor: option 2
[net] sane_get_option_descriptor: option 2
[net] sane_control_option: option 2, action 0
[net] sane_control_option: remote control option
[net] sane_control_option: auth required
[net]

It only seems to be the auth problem, but when I put my login, password and backend in saned.users file on router, and xsane prompts me for login/pw, there is the same segmentation fault...
I even tried strace xsane, but it didn't give it to me any clues.
Also, with epson backend (not epson2!), the scanning module in my RX640 all-in-one cannot be recognized. It seems that this scanner is not supported by epson backend (it is supported with epkowa backend however, but this backend doesn't included in sane-backends package).

carterb
25-10-2009, 08:17
Hi,

no that should not be the problem.
Please try with epson2-debug instead and post the logfile.


SANE_DEBUG_EPSON2=128
xsane 2>ep2.log

I need all these logs with epson2 entry uncommented and epson commented!!!

Regards
Oliver

ram32
25-10-2009, 09:30
Hi carterb,
here is the log:

[sanei_debug] Setting debug level of epson2 to 128.
[epson2] sane_epson2_init: sane-backends 1.0.19
[epson2] sane_epson2_init: reading config file, epson2.conf
[epson2] scsi EPSON
[epson2] usb
[epson2] attach_one_usb: dev =
[epson2] SANE Epson 2 Backend v0.1.16 - 2007-12-30
[epson2] attach: devname = , type = 3
[epson2] attach: opening , type = 3
[epson2] net autodiscovery
[epson2] attach_one_net: dev = autodiscovery
[epson2] SANE Epson 2 Backend v0.1.16 - 2007-12-30
[epson2] attach: devname = autodiscovery, type = 4
[epson2] attach: opening autodiscovery, type = 4
[epson2] e2_network_discovery, sent discovery packet
[epson2] e2_network_discovery, end
[epson2] close_scanner: fd = -1
[epson2] sane_epson2_get_devices

P.S. Done :)

carterb
25-10-2009, 13:29
Hi,

oh sorry, it will not work in that way. Please do the following on your routers command line:

killall xintd
SANE_DEBUG_EPSON2=128 saned -d128 2> /tmp/epson2.log

Now on your computer start XSane and wait for a minute.
After that, go back to your routers command line and type:

Ctrl + c
to stop the sane server.

Post the log file. Please attach it to your post, don't paste the lines :)

Regards
Oliver

ram32
25-10-2009, 14:38
Now on your computer start XSane and wait for a minute.
I can not wait, because it gives me segmentation fault :)

carterb
26-10-2009, 07:30
Hi,

how did you install XSane on your Ubuntu?
What version do you use.

Regards
Oliver

ram32
26-10-2009, 10:05
It was installed by default, version 0.996.

carterb
27-10-2009, 07:36
Hi at all,

NEWS about sane-backends:

Since I am official Maintainer of the sane-backends optware package, you should use the optware package of sane-backends now.
I will update the package with every revision.
The HowTo is updated for use with the optware package :)

For all people who have my old version installed (zip-File from rapidshare), please uninstall this version and install the one from the optware-server.
The old version will not get supported by me anymore:
Just do a:

ipkg remove sane-backends
ipkg remove sane-backends-wl500
And install the optware-package like its explained in the How-To.


Regards
Oliver

carterb
27-10-2009, 19:54
Hi,

@ram32: At this moment I have no idea what could be the reason for the problem with epson2. I have asked the developer of XSane and also the sane-devil-mailinglist. I will post as soon as I get answer.

Regards
Oliver

carterb
28-10-2009, 08:49
Hi,

@ram32: Please update to the optware-version of sane-backends and try again.

Regards
Oliver

ram32
28-10-2009, 13:01
Hmm, strange. I removed previous sane-backends installation, installed it from optware, configured it, and now I've got:

[admin@WL-001FC642402C root]$ sane-find-scanner
sane-find-scanner: can't load library 'libieee1284.so.3'
[admin@WL-001FC642402C root]$ scanimage -L
scanimage: can't load library 'libieee1284.so.3'

carterb
28-10-2009, 14:00
Hi,


ipkg install libieee1284
will help!

I updatet the How-To, Thanks for this information :)

Regards
Oliver

ram32
28-10-2009, 14:33
Wow! It works! :cool: :cool: :cool:
Great thanks to you, craterb!
But what was wrong with previous version of sane-backends ipkg?

carterb
28-10-2009, 20:09
Hi,

nice to hear :)

I included a new git snapshot of sane-backends. Developer changed something in epson2 backend.

Essential is, it works!!!!

Please do some testing and report your results.

Regards
Oliver

ram32
28-10-2009, 20:22
It works great for now. If I find some bugs, I'll write it here :)

rm_fontes
28-10-2009, 21:39
Hi.
sane-find-scanner detects the scanner:

found USB scanner (vendor=0x03f0 [HP], product=0x4c11 [PSC 1500 series]) at libusb:001:002
scanimage -L detects the scanner:

device `hpaio:/usb/PSC_1500_series?serial=MY5ADD13KM0498' is a Hewlett-Packard PSC_1500_series all-in-one

I followed the how to for XSane for Windows but it doesn't detect any scanner. I use windows 7.
I have it on C: and I changed the IP for my router

I saw this error on the log:

Oct 28 21:06:45 syslog: scan/sane/io.c 53: dBus Connection Error (Failed to connect to socket /opt/var/run/dbus/system_bus_socket: No such file or directory)!

wiert
28-10-2009, 23:29
Hi,

It works yesterday (27/10) with the older backends (after manual install of libieee1284).

Today I upgraded sane-backends:

ipkg update

ipkg upgrade
And it keeps on working - many, many thanks!

I am prepared now for a complete switch to linux, I don't need m$ anymore on my own PC's.

Tested with:

ASUS wl500g Premium
Epson Stylus Photo RX 520
Windows XP with Xsane on AMD Athlon desktop
Ubuntu Netbook Remix (Karmic) with Xsane on Hercules EC-900

carterb
29-10-2009, 07:16
Hi,

@wiert:
Good news :)
Thanks for your report!!

Regards
Oliver

carterb
29-10-2009, 07:37
Hi,

@rm_fontes: Try a:

ipkg install dbus
ipkg install dbus-glib

Regards
Oliver

rm_fontes
29-12-2009, 23:43
Hi. Sorry I only had time to work on this project now... sane-find-scanner detects the scanner but scanimage -L doesn't... ( I have an HP psc 1500)

I have the sane from post http://wl500g.info/showpost.php?p=163609&postcount=21 and hplip from ipkg

I checked on all thread for info and I have the xinetd working with no errors

I have hplip version 2.8.12-1.

Any help? thanks

edit: I have sane server from ipkg because when i install hplip, sane installs too. if i have sane from the post installed i can't install hplip

carterb
30-12-2009, 10:40
Hi,

please remove all packages , that are not from ipkg-server.
The packages I posted in this Thread were only for testing. You have to use the optware-package from ipkg-server now.
So please:

ipkg remove sane-backends
ipkg remove sane-backends-wl500
ipkg remove hplip
ipkg remove hplip-wl500
ipkg remove hplip-wl500gp

And now make a clean install of sane-backends and hplip:

ipkg install sane-backends
ipkg install hplip
ipkg install dbus
ipkg install dbus-glib
After that, restart your router and check again, if the scanner gets found.

Regards
Oliver

corwin_x
15-01-2010, 14:20
I did it exactly as your howto says, but without success - I get this from sane-find-scanner:


found USB scanner (vendor=0x04b8 [Language Error], product=0x083f [Language Error]) at libusb:001:002

scanimage -L :


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).

I have an Epson DX 4400 scanner/printer combo, printing (somehow - printer mustn't be in standby mode, otherwise > printer shutdown) works...

EDIT:
here is the output of xinetd -d

10/1/15@14:21:50: DEBUG: 132 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
10/1/15@14:21:50: ERROR: 132 {find_next_entry} missing service keyword [file=/opt/etc/xinetd.d/saned] [line=11]
10/1/15@14:21:50: ERROR: 132 {service_fill} Port not specified and can't find service: saned with getservbyname
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/1/15@14:21:50: DEBUG: 132 {cnf_start_services} mask_max = 0, services_started = 0
10/1/15@14:21:50: CRITICAL: 132 {init_services} no services. Exiting...

EDIT 2
I made the xinetd + saned running (well, I'm so brilliant that I forgot to chmod +x the post-boot and other scripts), thus eliminated the problem in 1st EDIT, but outputs from sane-find-scanner and scanimage -L remains unchanged. I tried commenting the epson2 backend and using epson, but no improvement. Is there a compiled epkowa backend available? :confused:

carterb
18-01-2010, 11:05
Hi,

please post your xinetd-saned file:

vi /opt/etc/xinetd.d/saned
Seems to me that the reason for the error lies there...

Regards
Oliver

adek24
08-02-2010, 13:12
Hi
I install sane - server but my scaner espon dx4450 don't work mayby how have idea ?

please help

carterb
08-02-2010, 13:20
Hi,

please post the output of the following commands:

sane-find-scanner
scanimage -L

Regards
Oliver

adek24
08-02-2010, 13:22
sane-find-scanner:

found USB scanner (vendor=0x04b8 [Language Error], product=0x083f [Language Error]) at libusb:002:004

scanimage -L:

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).

carterb
08-02-2010, 13:28
Hi,

I also need the output of the following commands:

killall xinetd
xinetd -d # <--- Thats where I need the output from

You can Exit with ctrl + c and restart xinetd in deamon mode with:

xinetd

Regards
Oliver

adek24
08-02-2010, 13:31
ok this output

[admin@Adek root]$ xinetd -d
10/2/8@13:17:49: DEBUG: 529 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ns [file=/opt/etc/xinetd.conf] [line=15]
10/2/8@13:17:49: ERROR: 529 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ns] [line=9]
10/2/8@13:17:49: DEBUG: 529 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ssn [file=/opt/etc/xinetd.d/netbios-ssn] [line=11]
10/2/8@13:17:49: ERROR: 529 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ssn] [line=9]
10/2/8@13:17:49: DEBUG: 529 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.d/saned] [line=11]
10/2/8@13:17:49: ERROR: 529 {service_fill} Port not specified and can't find service: saned with getservbyname
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.0.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ns
id = netbios-ns
flags = IPv4
socket_type = dgram
Protocol (name,number) = (udp,17)
port = 137
wait = yes
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/nmbd
Server argv = nmbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ssn
id = netbios-ssn
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 139
wait = no
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/smbd
Server argv = smbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/2/8@13:17:49: DEBUG: 529 {cnf_start_services} Started service: netbios-ns
10/2/8@13:17:49: DEBUG: 529 {cnf_start_services} Started service: netbios-ssn
10/2/8@13:17:49: DEBUG: 529 {cnf_start_services} mask_max = 7, services_started = 2
10/2/8@13:17:49: NOTICE: 529 {main} xinetd Version 2.3.14 started with no options compiled in.
10/2/8@13:17:49: NOTICE: 529 {main} Started working: 2 available services
10/2/8@13:17:49: DEBUG: 529 {main_loop} active_services = 2

carterb
08-02-2010, 13:37
Oh, there is no sane service running??

Did you install sane from ipgk-Package "ipkg install sane-backends" and did you follow the Tutorial?

How does the following file look like:

vi /opt/etc/xinetd.d/saned

Regards
Oliver

adek24
08-02-2010, 13:46
yes I install from tutorial with ipkg install sane-backends

output:

service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
}

carterb
08-02-2010, 13:51
Hi,

did you restart the router after installation?
Please post the output of the following command:

tail /etc/services | grep saned
And post the file:

vi /opt/etc/init.d/S01sane-backends

Try it after a restart:

flashfs save && flashfs commit && flashfs enable && reboot

Regards
Oliver

adek24
08-02-2010, 13:56
yes I resert router afret install

I use
tail /etc/services | grep saned
but not changed

output :

#!/bin/sh

PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin

if !( grep -q ^saned.*6566 /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >
fi

carterb
08-02-2010, 14:01
What Firmware are you using?

Please attach the following file:


etc/services

Regards
Oliver

adek24
08-02-2010, 14:03
I use WL500gpv2-1.9.2.7-d-r1087

carterb
08-02-2010, 14:19
Hi,

please post the file:

vi /etc/services
You can better attach it as a textfile.

Regards
Oliver

corwin_x
08-02-2010, 16:02
Hi,

please post your xinetd-saned file:

vi /opt/etc/xinetd.d/saned
Seems to me that the reason for the error lies there...

Regards
Oliver

Hello,

sorry for the delay.

Here is the code you requested.


service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = admin
group = root
wait = no
disable = no
}

carterb
08-02-2010, 16:10
Hi,

@corwin_x

Please post the output of:

tail /etc/services | grep saned

Regards
Oliver

corwin_x
08-02-2010, 16:33
Hi,

@corwin_x

Please post the output of:

tail /etc/services | grep saned

Regards
Oliver

Wow, that was a swift reply :)

Here you go:


saned 6566/tcp # SANE network scanner daemon

carterb
08-02-2010, 16:39
Hi,

looks good.

Now do the following:

I also need the output of the following commands:

killall xinetd
xinetd -d # <--- Thats where I need the output from

You can Exit with ctrl + c and restart xinetd in deamon-mode with:

xinetd

Regards
Oliver

corwin_x
08-02-2010, 17:23
Here it is, I'm still working on the Cups, so please don't look at the cups-related errors (first 3 lines) :o

10/2/8@15:43:39: DEBUG: 150 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/cups-lpd [file=/opt/etc/xinetd.conf] [line=15]
10/2/8@15:43:39: ERROR: 150 {server_parser} Server /opt/lib/cups/daemon/cups-lpd is not executable [file=/opt/etc/xinetd.d/cups-lpd] [line=11]
10/2/8@15:43:39: ERROR: 150 {identify_attribute} Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/cups-lpd] [line=11]
10/2/8@15:43:39: DEBUG: 150 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.d/saned] [line=13]
10/2/8@15:43:39: ERROR: 150 {fix_server_argv} Must specify a server in printer
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/2/8@15:43:39: DEBUG: 150 {cnf_start_services} Started service: saned
10/2/8@15:43:39: DEBUG: 150 {cnf_start_services} mask_max = 6, services_started = 1
10/2/8@15:43:39: NOTICE: 150 {main} xinetd Version 2.3.14 started with no options compiled in.
10/2/8@15:43:39: NOTICE: 150 {main} Started working: 1 available service
10/2/8@15:43:39: DEBUG: 150 {main_loop} active_services = 1

Please note that the printer/scanner is not connected at this moment, I had to print something yesterday, plugged it into my notebook and was too lazy to plug it back to router...

carterb
08-02-2010, 17:58
Hi,

looks good to me!

Plug the printer/scanner in an try a:

sane-find-scanner
scanimage -L

Maybe you have to make a restart.

Regards
Oliver

adek24
08-02-2010, 21:14
Hi,

please post the file:

vi /etc/services
You can better attach it as a textfile.

Regards
Oliver

ok how copy all file becouse I don't know how putty select all this file have 344 line.

carterb
08-02-2010, 22:04
Hi,

you can copy the file to a place on your external Harddisk, where you can access it from your PC.


cp /etc/services /tmp/harddisk # /tmp/harddisk is just an example

Regards
Oliver

adek24
08-02-2010, 22:08
thank I added this file and please help with my scan-server :)

carterb
08-02-2010, 22:15
Hi,

the needed entry is not in the file???

Just for testing:
Execute the following commands:

killall xinetd
echo "saned 6566/tcp # SANE network scanner daemon"
xinetd

And post the output of the last (xinetd) command.

Ragards
Oliver

adek24
08-02-2010, 22:18
Hi,

the needed entry is not in the file???

Just for testing:
Execute the following commands:

killall xinetd
echo "saned 6566/tcp # SANE network scanner daemon"
xinetd

And post the output of the last (xinetd) command.

Ragards
Oliver

so xinetd have blank output.. and
killall xinetd output :
killall: xinetd: no process killed
why I make wrong...

carterb
08-02-2010, 22:25
My fault :o


xinetd -d
Otherwise you wont get any output.

Regards
Oliver

adek24
08-02-2010, 22:28
ok:

10/2/8@22:15:02: DEBUG: 244 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ns [file=/opt/etc/xinetd.conf] [line=15]
10/2/8@22:15:02: ERROR: 244 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ns] [line=9]
10/2/8@22:15:02: DEBUG: 244 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ssn [file=/opt/etc/xinetd.d/netbios-ssn] [line=11]
10/2/8@22:15:03: ERROR: 244 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ssn] [line=9]
10/2/8@22:15:03: DEBUG: 244 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.d/saned] [line=11]
10/2/8@22:15:03: ERROR: 244 {service_fill} Port not specified and can't find service: saned with getservbyname
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.0.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ns
id = netbios-ns
flags = IPv4
socket_type = dgram
Protocol (name,number) = (udp,17)
port = 137
wait = yes
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/nmbd
Server argv = nmbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ssn
id = netbios-ssn
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 139
wait = no
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/smbd
Server argv = smbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/2/8@22:15:03: DEBUG: 244 {cnf_start_services} Started service: netbios-ns
10/2/8@22:15:03: ERROR: 244 {activate_normal} bind failed (Address already in use (errno = 125)). service = netbios-ssn
10/2/8@22:15:03: ERROR: 244 {cnf_start_services} Service netbios-ssn failed to start and is deactivated.
10/2/8@22:15:03: DEBUG: 244 {cnf_start_services} mask_max = 6, services_started = 1
10/2/8@22:15:03: NOTICE: 244 {main} xinetd Version 2.3.14 started with no options compiled in.
10/2/8@22:15:03: NOTICE: 244 {main} Started working: 1 available service
10/2/8@22:15:03: DEBUG: 244 {main_loop} active_services = 1
10/2/8@22:15:28: NOTICE: 244 {general_handler} Unexpected signal 2 (Interrupt)

carterb
08-02-2010, 22:36
Confusing...

please open the file:

/etc/services
scroll to the end of the file and look for the following entry:

saned 6566/tcp
if it's not in, add it. Save the file and again attach the file to your post.

Again:

xinetd -d
And post the output.


Regards
Oliver

corwin_x
08-02-2010, 22:36
Hi,

looks good to me!

Plug the printer/scanner in an try a:

sane-find-scanner
scanimage -L

Maybe you have to make a restart.

Regards
Oliver

Hello

Sorry, no luck. Scanimage -L:

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).

sane-find-scanner:

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04b8 [Language Error], product=0x083f [Language Error]) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

adek24
09-02-2010, 07:21
Confusing...

please open the file:

/etc/services
scroll to the end of the file and look for the following entry:

saned 6566/tcp
if it's not in, add it. Save the file and again attach the file to your post.

Again:

xinetd -d
And post the output.


Regards
Oliver

so output:


10/2/9@07:07:12: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:12: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:12: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:12: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:12: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:12: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:12: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:12: DEBUG: 162 {child_exit} waitpid returned = 229
10/2/9@07:07:12: DEBUG: 162 {server_end} netbios-ns server 229 exited
10/2/9@07:07:12: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:12: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:12: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:12: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:13: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:13: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:13: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:13: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:13: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:13: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:13: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:13: DEBUG: 162 {child_exit} waitpid returned = 230
10/2/9@07:07:13: DEBUG: 162 {server_end} netbios-ns server 230 exited
10/2/9@07:07:13: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:13: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:13: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:13: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:14: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:14: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:14: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:14: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:14: DEBUG: 162 {child_exit} waitpid returned = 231
10/2/9@07:07:14: DEBUG: 162 {server_end} netbios-ns server 231 exited
10/2/9@07:07:14: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:14: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:14: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:14: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:14: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:14: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:14: DEBUG: 162 {child_exit} waitpid returned = 232
10/2/9@07:07:14: DEBUG: 162 {server_end} netbios-ns server 232 exited
10/2/9@07:07:14: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:14: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:14: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:14: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:15: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:15: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:15: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:15: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:16: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:16: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:16: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:16: DEBUG: 162 {child_exit} waitpid returned = 233
10/2/9@07:07:16: DEBUG: 162 {server_end} netbios-ns server 233 exited
10/2/9@07:07:16: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:16: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:16: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:16: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:16: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:16: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:16: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:16: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:16: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:16: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:16: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:16: DEBUG: 162 {child_exit} waitpid returned = 234
10/2/9@07:07:16: DEBUG: 162 {server_end} netbios-ns server 234 exited
10/2/9@07:07:16: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:16: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:16: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:16: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:17: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:17: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:17: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:17: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:17: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:17: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:17: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:17: DEBUG: 162 {child_exit} waitpid returned = 235
10/2/9@07:07:17: DEBUG: 162 {server_end} netbios-ns server 235 exited
10/2/9@07:07:17: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:17: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:17: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:17: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:18: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:18: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:18: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:18: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:18: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:18: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:18: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:18: DEBUG: 162 {child_exit} waitpid returned = 236
10/2/9@07:07:18: DEBUG: 162 {server_end} netbios-ns server 236 exited
10/2/9@07:07:18: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:18: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:18: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:18: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:19: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:19: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:19: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:19: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:19: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:19: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:19: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:19: DEBUG: 162 {child_exit} waitpid returned = 237
10/2/9@07:07:19: DEBUG: 162 {server_end} netbios-ns server 237 exited
10/2/9@07:07:19: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:19: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:19: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:19: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:20: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:20: DEBUG: 162 {svc_suspend} Suspended service netbios-ns
10/2/9@07:07:20: DEBUG: 162 {server_start} Starting service netbios-ns
10/2/9@07:07:20: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:20: DEBUG: 162 {main_loop} active_services = 0
10/2/9@07:07:20: DEBUG: 162 {main_loop} select returned 1
10/2/9@07:07:20: DEBUG: 162 {check_pipe} Got signal 18 (Child exited)
10/2/9@07:07:20: DEBUG: 162 {child_exit} waitpid returned = 238
10/2/9@07:07:20: DEBUG: 162 {server_end} netbios-ns server 238 exited
10/2/9@07:07:20: DEBUG: 162 {drain} UDP socket should be empty
10/2/9@07:07:20: DEBUG: 162 {svc_resume} Resumed service netbios-ns
10/2/9@07:07:20: DEBUG: 162 {child_exit} waitpid returned = -1
10/2/9@07:07:20: DEBUG: 162 {main_loop} active_services = 1
10/2/9@07:07:25: NOTICE: 162 {general_handler} Unexpected signal 2 (Interrupt)

carterb
09-02-2010, 11:11
Hi,

@adek24: First you have to kill xinetd:

killall xinetd
Then restart it and post the output:

xinetd -d
But check if the following entry is in /etc/services:

saned 6566/tcp

@corwin_x: Don't know the reason yet...
I have to check, if your scanner is completely supported.


Regards
Oliver

adek24
09-02-2010, 22:28
Hi,

@adek24: First you have to kill xinetd:

killall xinetd
Then restart it and post the output:

xinetd -d
But check if the following entry is in /etc/services:

saned 6566/tcp

@corwin_x: Don't know the reason yet...
I have to check, if your scanner is completely supported.


Regards
Oliver

so it is output I add saned 6566/tcp:


10/2/9@22:09:02: DEBUG: 175 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ns [file=/opt/etc/xinetd.conf] [line=15]
10/2/9@22:09:02: ERROR: 175 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ns] [line=9]
10/2/9@22:09:02: DEBUG: 175 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/netbios-ssn [file=/opt/etc/xinetd.d/netbios-ssn] [line=11]
10/2/9@22:09:02: ERROR: 175 {addrlist_op} failed to parse 192.168.XXX.1/24 [file=/opt/etc/xinetd.d/netbios-ssn] [line=9]
10/2/9@22:09:02: DEBUG: 175 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.d/saned] [line=11]
10/2/9@22:09:02: ERROR: 175 {service_fill} Port not specified and can't find service: saned with getservbyname
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.0.0/255.255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ns
id = netbios-ns
flags = IPv4
socket_type = dgram
Protocol (name,number) = (udp,17)
port = 137
wait = yes
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/nmbd
Server argv = nmbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: netbios-ssn
id = netbios-ssn
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 139
wait = no
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /usr/sbin/smbd
Server argv = smbd
Only from: localhost(HOST)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/2/9@22:09:02: DEBUG: 175 {cnf_start_services} Started service: netbios-ns
10/2/9@22:09:02: ERROR: 175 {activate_normal} bind failed (Address already in use (errno = 125)). service = netbios-ssn
10/2/9@22:09:02: ERROR: 175 {cnf_start_services} Service netbios-ssn failed to start and is deactivated.
10/2/9@22:09:02: DEBUG: 175 {cnf_start_services} mask_max = 6, services_started = 1
10/2/9@22:09:02: NOTICE: 175 {main} xinetd Version 2.3.14 started with no options compiled in.
10/2/9@22:09:02: NOTICE: 175 {main} Started working: 1 available service
10/2/9@22:09:02: DEBUG: 175 {main_loop} active_services = 1
10/2/9@22:09:16: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:16: DEBUG: 175 {svc_suspend} Suspended service netbios-ns
10/2/9@22:09:16: DEBUG: 175 {server_start} Starting service netbios-ns
10/2/9@22:09:16: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:16: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:16: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:16: DEBUG: 175 {check_pipe} Got signal 18 (Child exited)
10/2/9@22:09:16: DEBUG: 175 {child_exit} waitpid returned = 181
10/2/9@22:09:16: DEBUG: 175 {server_end} netbios-ns server 181 exited
10/2/9@22:09:16: DEBUG: 175 {drain} UDP socket should be empty
10/2/9@22:09:16: DEBUG: 175 {svc_resume} Resumed service netbios-ns
10/2/9@22:09:16: DEBUG: 175 {child_exit} waitpid returned = -1
10/2/9@22:09:16: DEBUG: 175 {main_loop} active_services = 1
10/2/9@22:09:17: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:17: DEBUG: 175 {svc_suspend} Suspended service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {server_start} Starting service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:17: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:17: DEBUG: 175 {check_pipe} Got signal 18 (Child exited)
10/2/9@22:09:17: DEBUG: 175 {child_exit} waitpid returned = 182
10/2/9@22:09:17: DEBUG: 175 {server_end} netbios-ns server 182 exited
10/2/9@22:09:17: DEBUG: 175 {drain} UDP socket should be empty
10/2/9@22:09:17: DEBUG: 175 {svc_resume} Resumed service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {child_exit} waitpid returned = -1
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 1
10/2/9@22:09:17: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:17: DEBUG: 175 {svc_suspend} Suspended service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {server_start} Starting service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 0
10/2/9@22:09:17: DEBUG: 175 {main_loop} select returned 1
10/2/9@22:09:17: DEBUG: 175 {check_pipe} Got signal 18 (Child exited)
10/2/9@22:09:17: DEBUG: 175 {child_exit} waitpid returned = 183
10/2/9@22:09:17: DEBUG: 175 {server_end} netbios-ns server 183 exited
10/2/9@22:09:17: DEBUG: 175 {drain} UDP socket should be empty
10/2/9@22:09:17: DEBUG: 175 {svc_resume} Resumed service netbios-ns
10/2/9@22:09:17: DEBUG: 175 {child_exit} waitpid returned = -1
10/2/9@22:09:17: DEBUG: 175 {main_loop} active_services = 1
10/2/9@22:12:03: NOTICE: 175 {general_handler} Unexpected signal 2 (Interrupt)

carterb
10-02-2010, 08:45
Hi,

@corwin_x: I contact the sane-developer and I have no good news. Printer/Scanner Epson DX-4400 is not supported on Asus Wl500. It is generally supported by sane-backends but not on the router. For further support, you can contact the sane-developer on sane-devel-mailing-list (http://lists.alioth.debian.org/mailman/listinfo/sane-devel).
What Firmware are you using? Update to the actual Ily-FW (http://code.google.com/p/wl500g/downloads/list). Maybe this helps...

@adek24: Please again attach the file:

/etc/services
with your entry.

Regards
Oliver

adek24
10-02-2010, 22:24
So /etc/services in attach


Hi,

@corwin_x: I contact the sane-developer and I have no good news. Printer/Scanner Epson DX-4400 is not supported on Asus Wl500. It is generally supported by sane-backends but not on the router. For further support, you can contact the sane-developer on sane-devel-mailing-list (http://lists.alioth.debian.org/mailman/listinfo/sane-devel).
What Firmware are you using? Update to the actual Ily-FW (http://code.google.com/p/wl500g/downloads/list). Maybe this helps...

@adek24: Please again attach the file:

/etc/services
with your entry.

Regards
Oliver

carterb
11-02-2010, 10:20
Hi,

@: That's the problem. The entry:

saned 6566/tcp
I asked you to put at the end of the file, is not there. We need this service entry to start the sane-server. Please write it at the end of the file.

Maybe there is also somethin wrong in your :

/opt/etc/init.d/S01sane-backends
Please also attach this file to your next post.


Regards
Oliver

adek24
11-02-2010, 17:09
Hi,

@: That's the problem. The entry:

saned 6566/tcp
I asked you to put at the end of the file, is not there. We need this service entry to start the sane-server. Please write it at the end of the file.

Maybe there is also somethin wrong in your :

/opt/etc/init.d/S01sane-backends
Please also attach this file to your next post.


Regards
Oliver

ok add port 6566 but is not make result. I add

/opt/etc/init.d/S01sane-backends

adek24
15-02-2010, 22:21
so i find iscan-plugin-cx4400 mayby this resolve my problems with dx4450 but how install it on oleg ?
I change drivers in sane to epkowa

adek24
17-02-2010, 20:59
hi
I found that install scanner.o to modules but I have other kernel :

Using //opt/lib/modules/2.4.37.7/kernel/drivers/usb/scanner.o
//opt/lib/modules/2.4.37.7/kernel/drivers/usb/scanner.o: error reading ELF section data //opt/lib/modules/2.4.37.7/kernel/drivers/usb/scanner.o: No space left on device


but in free i have:


$ free
total used free shared buffers
Mem: 29960 27556 2404 0 720
Swap: 506008 760 505248
Total: 535968 28316 507652

carterb
23-02-2010, 09:23
Hi,

I will check that.

Regards
Oliver

rm_fontes
15-03-2010, 22:03
hi, i finally got time to do install everything from the beginning. I got from sane-find-scanner
found USB scanner (vendor=0x03f0 [HP], product=0x4c11 [PSC 1500 series]) at libusb:001:003
and from scanimage -L
device `hpaio:/usb/PSC_1500_series?serial=MY5ADD13KM0498' is a Hewlett-Packard PSC_1500_series all-in-one.
from scanimage -T i got
process 380: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3141.
This is normally a bug in some application using the D-Bus library.
D-Bus not compiled with backtrace support so unable to print a backtrace
Aborted
I searched on the forum for this and found http://wl500g.info/showthread.php?t=20098.
Is it possible to make the hp dsc 1510 work without dbus?

Radon
28-04-2010, 12:03
I also trying to get samsung scx-4200 working, first all look fine scanimage is working just fine so driver is working. But can't connect from my desktop computer to scanner, telnet to port 6566 can't connect.

added /etc/service "saned 6566/tcp" because that not been there but no help, and /opt/etc/init.d/S01sane-backends look just correct.

So now im just out of idea what im doing wrong, so little help is welcome. Only diffrence to tutorial is my firmware is koppel made if that marks anything.

EDIT: Checked all again and noticed that port again lost from /etc/service/saned file after i reboot my router, so what to do to correct this problem?

Xinetd -d Also give erros and not to start.



10/4/28@16:08:35: DEBUG: 129 {handle_includedir} Reading included configuration
file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
10/4/28@16:08:35: ERROR: 129 {service_fill} Port not specified and can't find se
rvice: saned with getservbyname
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0
.0(NET) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

10/4/28@16:08:35: DEBUG: 129 {cnf_start_services} mask_max = 0, services_started
= 0
10/4/28@16:08:35: CRITICAL: 129 {init_services} no services. Exiting...

EDIT: Full reinstall helps and scanner is working now, not know what was wrong previusly, noticed my router network connection have random dropouts (ipkg give random unknow host errors) problem is on 500gp side, network connection is working fine other computers.

carterb
02-05-2010, 21:55
Hi,


EDIT: Full reinstall helps and scanner is working now, not know what was wrong previusly, noticed my router network connection have random dropouts (ipkg give random unknow host errors) problem is on 500gp side, network connection is working fine other computers.

nice to hear :D

samsung scx-4200 is well supported!

Regards
Oliver

carterb
06-05-2010, 21:19
Hi,

@rm_fontes: I have to ask the sane-mailing-list again. Don't know whats the problem...

IgorBelii
22-05-2010, 15:52
Hi, everyone

I have installed everything like in 1st post, but when I start front-end xsane.exe i recieve answer that there is no devices.

IP of my router 192.168.1.1. I start scan from 192.168.1.31

this is my log
17:43:53 22-05-2010 (info|authpriv|xinetd) xinetd[448]: START: saned pid=1267 from=192.168.1.31
17:43:53 22-05-2010 (debug|daemon|saned) saned[1267]: saned (AF-indep+IPv6) from sane-backends 1.0.21 starting up
17:43:53 22-05-2010 (debug|daemon|saned) saned[1267]: check_host: access by remote host: 192.168.1.31
17:43:55 22-05-2010 (debug|daemon|saned) saned[1267]: check_host: getaddrinfo for local hostname failed: Name or service not known
17:43:55 22-05-2010 (debug|daemon|saned) saned[1267]: init: access by host 192.168.1.31 denied
17:43:55 22-05-2010 (debug|daemon|saned) saned[1267]: saned exiting

as far as i understand there is not enough permissions. but where??


/opt/etc/sane.d/saned.conf

#scan-client.somedomain.firm
#192.168.1.1
192.168.1.0/31
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

/opt/etc/xinetd.d/saned

service saned

socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no


attachment my net.conf from hard drive

bef
22-05-2010, 18:28
Try
192.168.1.0/24 instead of 31 (/31 means all but the last bit are fixed therefore only 192.168.1.1 is allowed to connect to the server)

IgorBelii
23-05-2010, 10:10
thanks

my /opt/etc/sane.d/saned.conf looks like:



#scan-client.somedomain.firm
#192.168.1.1
192.168.1.2/24
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64


now I can scan from all the PC and notebooks in my net.

chuckwhite
26-05-2010, 21:02
Router: RT-N16, Firmware: tomato-K26USB-1.27.9045MIPSR2-beta11-vpn3.6, Printer: HP LJ M1319f MFP
All clients connected to router can print.

Installed the following (in that sequence): libusb, libtiff, libjpeg, libpng, libieee1284, xinetd, sane-backends, hplip

Output of all diagnostic tests (..xinetd.d/saned, ../sane.d/dll.conf, ../init.d/S01sane-backends, etc.) in attached file.

== output of sane-find-scanner ==>
found USB scanner (vendor=0x03f0, product=0x5817) at libusb:001:002

== output of scanimage -L ==>
No scanners were identified.

I would appreciate any help in getting this to work. I am happy to test ideas...

carterb
27-05-2010, 19:32
Hi,

sorry I was out of town.
I will look for a solution.

Regards
Oliver

chuckwhite
27-05-2010, 22:47
Looking at the sane-devel mailing list it appears a couple of folks had their HP scanner issues go away by using a later version of HPLIP. example (http://lists.alioth.debian.org/pipermail/sane-devel/2010-May/026657.html)

The current version is 3.10.x [link (http://hplipopensource.com/hplip-web/index.html)]. The version which has been compiled for the routers is 2.8.x (link (http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/))

Would it be possible to compile the latest version?

carterb
28-05-2010, 18:59
Hi,

I will take a look on that.
Maybe I can maintain hplip (or ask the person who maintains it) and make a newer version.

Regards
Oliver

carterb
03-06-2010, 13:04
Hi,

I compiled a new version of hplip for the wl500.
Version is: 3.9.2

Would be nice if you could give it a try and post your experiences. To install it do the following:

Remove the old version of hplip:

ipkg remove hplip

Download the new version of hplip:
http://rapidshare.com/files/394843983/hplip_3.9.2-1_mipsel.ipk

Install the new version:

ipkg install /storagelocation/of_downloaded/file/hplip_3.9.2-1_mipsel.ipk

If you are asked to edit the dll.conf of sane, type:

Y

Check if the following entry is in /opt/etc/sane.d/dll.conf

grep hpaio /opt/etc/sane.d/dll.conf
If the output is empty, add the entry:

echo "hpaio">>/opt/etc/sane.d/dll.conf

Restart:

flashfs save && flashfs commit && flashfs enable && reboot

Please post your experiences!!!

Regards
Oliver

chuckwhite
03-06-2010, 14:44
Thanks for compiling this version. I used wget to download it to my router and then when I try to install, I get:
ipkg: invalid magic
Any ideas what the issue might be? Thanks.

carterb
03-06-2010, 15:56
Hi,

means that the file is damaged...
I upoaded it again, the link is updated.

http://rapidshare.com/files/394843983/hplip_3.9.2-1_mipsel.ipk

Regards
Oliver

chuckwhite
03-06-2010, 18:30
Unfortunately, I still get the same error.

here's the file I downloaded this morning
-rw-r--r-- 1 root root 47646 Jun 3 09:36 hplip_3.9.2-1_mipsel.ipk
here's the file I downloaded just now
-rw-r--r-- 1 root root 47648 Jun 3 13:28 hplip_3.9.2-1_mipsel.ipk

carterb
03-06-2010, 22:05
Hi,

I will check that tomorrow.

Regards
Oliver

necrolatry
06-06-2010, 17:20
Wow, thanks for amazing faq! I followed it to setup printer server for my RT-N16 and it works!

However the conf file for sane server was not properly generated, I had to modify it, but afterwards it works like a charm!

carterb
19-06-2010, 13:19
Hi,

what did you have to change at the config file?

Regards
Oliver

kulibin
29-06-2010, 21:00
I searched on the forum for this and found http://wl500g.info/showthread.php?t=20098.
Is it possible to make the hp dsc 1510 work without dbus?

Try use old version of dbus:
dbus_1.1.1-3_mipsel.ipk (http://wl500g.info/attachment.php?attachmentid=6673&d=1277841130)

Also, need install CUPS - all work fine with hplip_3.9.2-1_mipsel.ipk!
http://www.nslu2-linux.org/wiki/HowTo/UnslungScanWithHPLIP

Asus WL-500W + HP LaserJet 3055 All-in-One Printer

chuckwhite
03-07-2010, 22:25
kulibin -- can you please let me know from where you downloaded hplip_3.9.2-1_mipsel.ipk. Is that the version carterb put on rapidshare? Thanks.

carterb
06-07-2010, 20:41
Hi,

yes, I compiled 3.9.2-1!
Should work...

Regards
Oliver

kulibin
15-07-2010, 20:52
kulibin -- can you please let me know from where you downloaded hplip_3.9.2-1_mipsel.ipk. Is that the version carterb put on rapidshare? Thanks.

Yes, this version of carterb from rapidshare.

mvnet
16-07-2010, 22:35
I have some problems getting this to work with my Canon PIXMA MP140 device. Previously (about a half year ago) I had no trouble using the scanner of the device: the sane scanner server worked like a charm with my WL500gPV2 and I could easily use the scanner via XSane with my PC.

However, now when I had to completely reinstall all software to the router (USB stick got corrupted), I no longer can use the scanner. I did everything exactly the same as previously. The scanner is recognized and even the scanning procedure starts. However, the problem is that the scanner is never stopped. The scanner seems to really scan the paper but then it does not stop as it should: the scanning lights just keep on rolling forever.

Below are some outputs with scanimage from my router:


[root@router root]$ scanimage -L
device `pixma:04A9172B_05C0C4' is a CANON Canon PIXMA MP140 multi-function peripheral


[root@router root]$ sane-find-scanner
found USB scanner (vendor=0x04a9 [Canon], product=0x172b [MP140 series]) at libusb:002:003


[root@router root]$ scanimage -vvvv -T
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... scanimage: received signal 2
scanimage: trying to stop scanner
scanimage: received signal 2
scanimage: aborting
Above, the process hangs to the "reading one scanline, 1914 bytes". It does not stop until I press Ctrl+C when it tries to stop the scanner without luck. Finally, I have to manually power off the scanner.

The firmware is Oleg's WL500gpv2-1.9.2.7-d-r1612 (I also tried it with r1000 which I previously had but with no luck) with the full install specified in http://wl500g.info/showthread.php?t=21774.

I checked that the scanner of the device does really work by plugging it directly to my PC. I even tried a different USB cable. It seems that there is something wrong with the scanimage program: everything else works but it just can't stop the scanner. Any suggestions how to fix this? Are the previous versions of sane-backends downloadable for WL500g somewhere?

carterb
23-07-2010, 21:09
Hi,

can you scan from a remote client, XSane...?

Regards,
Oliver

mvnet
24-07-2010, 20:27
Hi,
can you scan from a remote client, XSane...?

Yes I can, but it does exactly the same as using the scanimage directly from the router. Xsane finds the scanner and starts the scanning but the scanner is never stopped. The scanning lights on the scanner just keep rolling forever. The sounds that the scanner makes indicates that it does the actual scanning but for some reason fails at the last step.

The XSane program stops to the state "Receiving RGB data" so propably there are some problems in sending/receiving the scan data. Are there any ways to get more detailed error messages e.g. with scanimage or Xsane?

EDIT: Never mind about the extra debug info. I found out way to get extra info with setting some environmental variables specified in http://www.sane-project.org/man/sane-pixma.5.html

mvnet
24-07-2010, 21:36
Here is some more detailed debug info about my problem:


export SANE_DEBUG_PIXMA=21
export PIXMA_EXPERIMENT=0
export SANE_CONFIG_DIR=/opt/etc/sane.d:
scanimage -T

[sanei_debug] Setting debug level of pixma to 21.
[pixma] pixma is compiled without pthread support.
[pixma] Could not read pixma configuration file: pixma.conf
[pixma] pixma version 0.16.2
[pixma] pixma_collect_devices() found Canon PIXMA MP140 at libusb:002:012
[pixma] sanei_bjnp_find_devices:
[pixma] Added all configured scanners, now do auto detection...
[pixma] scanner discovery finished...
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MP140 at libusb:002:012
[pixma] sanei_bjnp_find_devices:
[pixma] Added all configured scanners, now do auto detection...
[pixma] scanner discovery finished...
[pixma] pixma_open(): Canon PIXMA MP140
[pixma] OUT T=2.823 len=16
[pixma] 00000000:f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 10
[pixma]
[pixma] IN T=2.844 len=24
[pixma] 00000000:06 06 00 00 00 00 00 00 01 00 00 00 00 03 00 02
[pixma] 00000010:00 00 00 00 00 00 00 fa
[pixma]
[pixma] Current status: paper=0 cal=0 lamp=2 busy=0
[[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma] line_size=1914 image_size=1678578 channels=3 depth=8
[pixma] dpi=75x75 offset=(0,0) dimension=638x877
[pixma] gamma_table=0x444234 source=0
pixma] Reader task id=281 (forked)
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... [pixma] INTR T=5.019 len=16
[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
[pixma]
[pixma] Sending time: '10/07/24 23:27'
[pixma] OUT T=5.022 len=36
[pixma] 00000000:eb 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14
[pixma] 00000010:31 30 2f 30 37 2f 32 34 20 32 33 3a 32 37 00 00
[pixma] 00000020:00 00 00 4c
[pixma]
[pixma] IN T=5.024 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] OUT T=5.130 len=16
[pixma] 00000000:db 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[pixma]
[pixma] IN T=5.136 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] OUT T=5.138 len=28
[pixma] 00000000:dd 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c
[pixma] 00000010:01 01 00 00 00 01 00 00 00 00 00 fd
[pixma]
[pixma] IN T=5.140 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] OUT T=5.142 len=2072
(snipped some useless stuff)
[pixma]
[pixma] IN T=5.172 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] OUT T=5.174 len=64
[pixma] 00000000:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30
[pixma] 00000010:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00
[pixma] 00000020:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00
[pixma] 00000030:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5
[pixma]
[pixma] IN T=5.176 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] OUT T=5.178 len=16
[pixma] 00000000:f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 10
[pixma]
[pixma] IN T=5.180 len=24
[pixma] 00000000:06 06 00 00 00 00 00 00 01 00 00 00 00 03 00 02
[pixma] 00000010:00 00 21 00 00 00 00 d9
[pixma]
[pixma] Current status: paper=0 cal=0 lamp=2 busy=0
[pixma] INTR T=5.399 len=16
[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
[pixma]
[pixma] Sending time: '10/07/24 23:27'
[pixma] OUT T=5.401 len=36
[pixma] 00000000:eb 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14
[pixma] 00000010:31 30 2f 30 37 2f 32 34 20 32 33 3a 32 37 00 00
[pixma] 00000020:00 00 00 4c
[pixma]
[pixma] IN T=5.403 len=8
[pixma] 00000000:06 06 00 00 00 00 00 00
[pixma]
[pixma] INTR T=18.069 len=16
[pixma] 00000000:00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00
[pixma]
[pixma] OUT T=18.071 len=16
[pixma] 00000000:f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 10
[pixma]
[pixma] IN T=18.073 len=24
[pixma] 00000000:06 06 00 00 00 00 00 00 01 00 00 00 00 03 00 02
[pixma] 00000010:00 01 21 00 00 00 00 d8
[pixma]
[pixma] Current status: paper=0 cal=0 lamp=2 busy=1
[pixma] OUT T=19.079 len=16
[pixma] 00000000:d4 20 00 00 00 00 00 00 00 00 00 00 00 08 00 08
[pixma]
[pixma] IN T=19.081 len=512
[pixma] 00000000:06 06 00 00 00 00 00 00 00 00 00 00 00 03 80 00
[pixma] 00000010:bd 91 8a b1 94 9a bc 91 93 aa 97 a6 bf 93 ab b7
(snipped some useless stuff)
[pixma] 000001f0:8c 7b 73 92 80 73 8a 7f 73 8b 83 75 87 7f 73 89
[pixma]
[pixma] IN T=19.090 len=-9
[pixma] ERROR: ETIMEDOUT
[pixma]
[pixma] IN T=19.093 len=-9
[pixma] ERROR: ETIMEDOUT
[pixma]

carterb
26-07-2010, 18:50
Hi,

that seems to be a problem with the pixma-backend...
Ask at the sane-project mailinglist for a support on that. Maybe they can help you any further...

http://lists.alioth.debian.org/mailman/listinfo/sane-devel

Parkinstein
05-08-2010, 09:20
please help!!! I have some troubles with Canon Pixma MP810

xsane permanently write FAIL Error: Error during device I/O

[root@rtn16 root]$ scanimage -L
device `pixma:04A9171A_313DEE' is a CANON Canon PIXMA MP810 multi-function peripheral

[root@rtn16 root]$ scanimage -T >> /tmp/sane-log.log
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... FAIL Error: Error during device I/O

/tmp/sane-log.log is empty

/opt/etc/sane.d/saned.conf


# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
192.168.1.0/24
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

putty.log in attachment
sorry for my english.. :(

carterb
11-08-2010, 19:25
Hi,

there is no entry in your:

/opt/etc/sane.d/saned.conf
That might be the reason for xsane-error. Look at 2.3 on the HowTo.

Please post the output of:

sane-find-scanner
and

scanimage -L

Parkinstein
14-08-2010, 00:05
Thanks for answer!

Hi,

there is no entry in your:

/opt/etc/sane.d/saned.conf
That might be the reason for xsane-error. Look at 2.3 on the HowTo.


# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
192.168.1.0/24
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).


Please post the output of:

sane-find-scanner

[root@rtn16 root]$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04a9 [Canon], product=0x171a [MP810]) at libusb:001:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

and


scanimage -L


[root@rtn16 root]$ scanimage -L
[pixma] udp_command: no data received (recv): Connection refused[pixma] udp_command: no data received (recv): Connection refused[pixma] udp_command: no data received (recv): Connection refused[pixma] Cannot read scanner make & model:
device `pixma:04A9171A_313DEE' is a CANON Canon PIXMA MP810 multi-function peripheral


I`m reinstall sane and output "scanimage -L" was changed

[root@rtn16 root]$ scanimage -L
device `pixma:04A9171A_313DEE' is a CANON Canon PIXMA MP810 multi-function peripheral

but scanning dont work...

poulsen
30-08-2010, 12:28
Hi.
first of all: great work Oliver

I'm trying to get this to work in dd-wrt version v24-sp2 (08/07/10) mega (I know, this is not the right firmware).
My scanner is a HP psc 1610 (printer and scanner all in one), witch on sane-project side is reported to work "good", and also is functioning perfectly if connected directly to my ubuntu box.

kernalversion 2.4
scanimange version 1.0.21
hplip version 2.8.12-1
dbus - 1.2.16-2
dbus-glib - 0.82-1


I had some trouble to get hp-probe to find my scanner. For some strange reason the models.py searched for the models.dat fil in /tmp/root/data/models and not /opt/share/hplips/models. To make a workaround i hardcoded the right path in models.py.
Then scanimage -L gave the output:
device `hpaio:/usb/PSC_1600_series?serial=MY62SC13KY04GH' is a Hewlett-Packard PSC_1600_series all-in-one
and sane-find-scanner:
<---snipped --->
found USB scanner (vendor=0x03f0 [HP], product=0x4811 [PSC 1600 series]) at libusb:001:009
<---snipped --->

This all seams promising. But when trying scanimage >/op/tmp/img.pnm i get this error:
<--- snipped --->
arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3141.
<--- snipped --->
D-Bus not compiled with backtrace support so unable to print a backtrace.


How do I get some more debugging info out of scanimage?

edit: added notification :)

msio
03-09-2010, 12:50
Hi
I have a problem with xsane application. I have installed sane-server sucessful according to how-to.When I wanted scan from xsane on windows or on linux,it showed -no device available.

I found out if I type scanimage -T,I get i/o error.
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... FAIL Error: Error during device I/O

i have canon MP220

can you help me please?
thanks

sorry for my english ... :)

carterb
07-09-2010, 19:11
Hi all,

@poulsen: What kernel version exactly?

@Parkinstein: Don't know the reason yet...? Seems to me a sane-problem (not router related). Please ask at the sane-mailing-list.
http://lists.alioth.debian.org/mailm...nfo/sane-devel

@msio: What system are you using?

poulsen
08-09-2010, 06:36
Hi all,
@poulsen: What kernel version exactly?


The exact kernal version is 2.4.37 from dd-wrt.

poulsen
13-09-2010, 20:39
Hi

I got a little progress.
I got dbus playing a little nicer... by changing in the config-files for dbus (and /opt/etc/init.d/S20dbus) and changing the user dbus runs too the username that is on the router.
Now when i run scanimage -T I'm asked for a password.

I'll investigate a this some more and return later

Edit:
when running command scanimage -T I get this
WARNING: backend requested plain-text password
Authentification required for resource net:localhost:▒. Enter username: XXXX
Enter password:
Segmentation fault

msio
15-09-2010, 16:42
Hi all,

@poulsen: What kernel version exactly?

@Parkinstein: Don't know the reason yet...? Seems to me a sane-problem (not router related). Please ask at the sane-mailing-list.
http://lists.alioth.debian.org/mailm...nfo/sane-devel

@msio: What system are you using?
i am using kernel 2.4.20 from Oleg ... thanks:)

adolchristin
16-09-2010, 03:26
First off; thanks carterb for maintaining the sane-backend package and for making the updated hplip package. Following this tutorial I have gotten my HP F4480 90% of the way to printing; the last 10% turns out is due to the fact that I need a minimum of 3.9.6 HPLIP to support this device according to the HP Website. (http://hplipopensource.com/hplip-web/models/deskjet_aio/deskjet_f4400_series.html) Do you plan to update your 3.9.2 pacakge?

Thanks for all your great work.

wiert
18-09-2010, 21:44
I followed this howto about a year ago and was a happy user of my shared Epson RX 520, ...

Recently I installed a new desktop PC dualboot Ubuntu Maverick and Windows 7, both 64-bit - on both OSes scanning and/or printing over the network dit not work as it should:

on W7, prints half a page, then garbish;
scanning on W7 and ubuntu starts, but Xsane hangs before the page is completely scanned, ...

Scanning and printing with RX 520 directly attached to USB works OK on the same PC.

Also any problem for scanning and printing over the network with my older PC's (32 bit OS).

Anyone experienced the same problems ?

Thx

carterb
21-09-2010, 13:36
Hi,

@adolchristin: I can build a new version. May take some days...

@msio: Is that the newest kernel release??

gandc
21-09-2010, 21:04
Hello!
I've got an RT-N16 with the new Oleg (rev around 2080), and a HP LaserJet 3300 multifunctional printer.
I set up sane-backends and hplip with the help of the guide I've read here, but sane-find-scanner couldn't find my laserjet.
I searched for answers and found out that I need dbus and snmp too.
I installed both packages, but dbus gave segfault, so I replaced it with an older one.
This way sane-find-scanner still couldn't find the scanner, but hp-probe could, so finally scanning works.

The problem is that when I scan using XSane, the /dev/lp0 disappears, so I can't print anymore. I've read that this is normal and printing can be done by using cups, so I installed that package too.

It also gave segfault so once again I installed an older version of cups.
But! When I try to start cups, it crashes. The message in the system log is "/opt/var/spool/cups is not a directory!" despite the fact that the directory exists and is a directory.

That's all I think and sorry for the long post.
Someone please help me to make both printing and scanning possible!

Thanks in advance:
GandC

mvnet
27-09-2010, 16:33
@carterb
I guess you have successfully built the sane-backends from the sources in your router, right? If so, could you provide some instructions how you build the sane-backends package from the sources? I tried to build the version 1.0.20 in my WL-500gPV2, however, I encountered some errors. The first problem is what to select as the build type when running ./configure? The configuration script does not automatically guess my system, so I have to set it manually. I used "mips", however, this makes the compilation fail so it probably isn't the correct build type.

And why am I building this from the sources? I just can't get my scanner to work with my router with the version 1.0.21 of sane-backends so I have to revert back to 1.0.20 which I know was working earlier. Even better would be if someone could provide me the 1.0.20 version as an ipk package which would be easier to install than building from the sources.

rm_fontes
28-09-2010, 14:00
@carterb can you upload hplip to other server?
i'm having problems downloading from rapidshare

adolchristin
01-10-2010, 16:39
Hi,
@adolchristin: I can build a new version. May take some days...


Please take your time; thank you for maintaining this package, I know we all appreciate it.

electropanda
03-10-2010, 12:17
Greetings.
I need help.
I have wl500gp with 1.9.2.7-d-r1825 firmware. Also I have HP PhotoSmart c5283. And I should use it as scanner too (it works perfectly as printer).
I have installed sane-backends with all libs needed and hplip 3.9.2. Shorter I have exactly followed the HOW-TO. But it doesn`t work.

Input:

sane-find-scanner
Output:

Segmentation fault

Input:

scanimage -L
Output:

Segmentation fault


I have installed XSane on WinXP as described too.

When I run Xsane there is a message in /opt/var/log/xinetd.log:

10/10/3@14:43:53: START: saned pid=3559 from=192.168.1.5

Else,
Input:

xinetd -d
Output:

10/10/3@14:49:30: DEBUG: 3587 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=16]
10/10/3@14:49:30: DEBUG: 3587 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/swat [file=/opt/etc/xinetd.d/swat] [line=12]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.1.0/255.255.0.0(NET)
No access: No blocked sites
Logging to file: /opt/var/log/xinetd.log (no limits)
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET) 172.16.0.0/255.240.0.0(NET) 192.168.1.0/255.255.0.0(NET)
No access: No blocked sites
Logging to common log file
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: swat
id = swat
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 901
wait = no
user = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/swat
Server argv = swat
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to common log file
Log_on_success flags = HOST PID
Log_on_failure flags = HOST USERID

10/10/3@14:49:30: ERROR: 3587 {activate_normal} bind failed (Address already in use (errno = 125)). service = saned
10/10/3@14:49:30: ERROR: 3587 {cnf_start_services} Service saned failed to start and is deactivated.
10/10/3@14:49:30: ERROR: 3587 {activate_normal} bind failed (Address already in use (errno = 125)). service = swat
10/10/3@14:49:30: ERROR: 3587 {cnf_start_services} Service swat failed to start and is deactivated.
10/10/3@14:49:30: DEBUG: 3587 {cnf_start_services} mask_max = 0, services_started = 0
10/10/3@14:49:30: CRITICAL: 3587 {init_services} no services. Exiting...


Contents of
/opt/etc/xinetd.conf,
/opt/etc/xinetd.d/saned,
/opt/etc/sane.d/saned.conf,
C:\sane\etc\sane.d\net.conf
are below (in attachments).

electropanda
06-10-2010, 21:50
Ok. I`ve solved the problem.
I have reinstalled sane-backends and libs required.

If someone will be interested in..

mikhe
13-10-2010, 21:50
Oliver,
Thanks for this How-To.
I'm use now HP7400C with wl500gP and can scan on desktop Win7(32) and netbook WinXP(32) with XSane.

electropanda
14-10-2010, 11:50
Hi.

I have another problem.

After sane-backends and libs reinstalling result was:

sane-find-scanner:

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [HP], product=0x5d11 [Photosmart C5200 series]) at libusb:003:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

scanimage -L:

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).

Then I have installed python, cups and dbus (it wasn`t installed before). The result:

scanimage -L:

device `hpaio:/usb/Photosmart_C5200_series?serial=MY87EG22GZ0559' is a Hewlett-Packard Photosmart_C5200_series all-in-one

But when I try scanimage --format=tiff >/tmp/mnt/hdd_ext/test.tiff I get:

process 1169: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3141.
This is normally a bug in some application using the D-Bus library.
D-Bus not compiled with backtrace support so unable to print a backtrace
Aborted

Anybody help.
Thanks

electropanda
14-10-2010, 18:27
Victory!
I can scan by HP PhotoSmart c5283 now.
I intently viewed the forum :) and solution was found:
http://wl500g.info/showpost.php?p=189850&postcount=108
I had the same symptoms as described in http://wl500g.info/showthread.php?t=20098.
I changed dbus from 1.2.16-1 to 1.1.1-3.

Thus I came to current working condition through installing the following packages:
libusb - 0.1.12-2
libtiff - 3.9.4-1
libjpeg - 6b-3
libieee1284 - 0.2.11-1
sane-backends - 1.0.21-1
cups - 1.4.4-1
dbus - 1.1.1-3 (from http://wl500g.info/showpost.php?p=202794&postcount=12)
hplip - 3.9.2-1 (from http://wl500g.info/showpost.php?p=199955&postcount=119)


Else.
I had to add one line into post-boot script.

rm /opt/var/run/dbus/*

During the router starting /opt/etc/init.d/S20dbus do not examine whether daemon has already started or not.
If there is PID file in /opt/var/run/dbus/ S20dbus suppose daemon has already started. To be sure it actually starts we need to remove PID file before S20dbus is execute.
(Idea was peeped here (http://wiki.unixforum.org/wiki/Подключение_МФУ_HP_Photosmart_к_маршрутизатору_Dli nk_DIR-320.))


Many thanks to Oliver for the How-To (and for XSane too)!

protective1
15-10-2010, 08:34
Hi - I'm using an Asus WL-500gp V2 running Tomato.
I'm new to this whole Tomato / Sane thing.

I've installed sane-backends 1.0.21-1 using optware / ipkg. However, I would like to get this working with a Samsung 4623 scanner, which is only supported in the development (git) version of sane-backends. Is there any way I can install the development version of sane-backends? Does anyone have the development version compiled so that I can install it with ipkg? Thank you.

carterb
15-10-2010, 12:55
Hi,


Victory!
I can scan by HP PhotoSmart c5283 now.
I intently viewed the forum :) and solution was found:
http://wl500g.info/showpost.php?p=189850&postcount=108
...

nice to hear. I will link to your post in the HowTo.
Strange problems with dbus versions...??

carterb
15-10-2010, 12:57
Hi,

Oliver,
Thanks for this How-To.
I'm use now HP7400C with wl500gP and can scan on desktop Win7(32) and netbook WinXP(32) with XSane.
Beitrag bearbeiten/lцschen
thanks for the information!

protective1
19-10-2010, 02:54
Alternatively, is there some kind of newbie's guide to compiling SANE? For example, I tried downloading the source from git, but wasn't sure what parameters to use for configure.


Hi - I'm using an Asus WL-500gp V2 running Tomato.
I'm new to this whole Tomato / Sane thing.

I've installed sane-backends 1.0.21-1 using optware / ipkg. However, I would like to get this working with a Samsung 4623 scanner, which is only supported in the development (git) version of sane-backends. Is there any way I can install the development version of sane-backends? Does anyone have the development version compiled so that I can install it with ipkg? Thank you.

Avinar
03-12-2010, 06:14
Hi!
Deleted.

FordPerfect
15-12-2010, 11:25
Does anyone know if there is a solution for my Brother DCP-7010 Multi Printer/Scanner?

sane-find-scanner returns the device but scanimage -L show up the default error/no device found message.

For sane-backends/i386 the brother2 shoud work external, but I do not understand how they mean that.. see
http://www.sane-project.org/lists/sane-backends-external.html#S-BROTHER2

Maybe I can use the Linux drivers from:
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html ?

I would be very happy if somebody know a solution...

Regards

FordPerfect

DeniDoman
13-01-2011, 03:20
Hi all.

I have a problem with DIR-320 (Oleg's FW), Sane and MP540.

My English is bad and i can's tell you long story about usb-hub, flash-card formatting and other =)

So, after night of linux-adventures, i have:

sane-find-scanner : found USB scanner... (bla-bla-bla, all ok).
scanimage -L : device (bla-bla-bla) is a PIXMA MP540 multi-functional... (all good too).

But when i try:

scanimage -T
or
scanimage --format=tiff > /opt/backup/test.tiff

My scanner do nothing. He write "Scanning in process" on the display, but it's not work. In terminal i have:


[admin@(none) root]$ scanimage -T
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes...

And nothing write when just scanimage --format=tiff > /opt/backup/test.tiff.

It is necessary to tell, that test.tiff is creating in folder, but have 0Kb size.

Somebody solve this problem?

AlexWolf
16-01-2011, 08:41
Victory!
I can scan by HP PhotoSmart c5283 now.
I intently viewed the forum :) and solution was found:
http://wl500g.info/showpost.php?p=189850&postcount=108
I had the same symptoms as described in http://wl500g.info/showthread.php?t=20098.
I changed dbus from 1.2.16-1 to 1.1.1-3.

Thus I came to current working condition through installing the following packages:
libusb - 0.1.12-2
libtiff - 3.9.4-1
libjpeg - 6b-3
libieee1284 - 0.2.11-1
sane-backends - 1.0.21-1
cups - 1.4.4-1
dbus - 1.1.1-3 (from http://wl500g.info/showpost.php?p=202794&postcount=12)
hplip - 3.9.2-1 (from http://wl500g.info/showpost.php?p=199955&postcount=119)


Else.
I had to add one line into post-boot script.

rm /opt/var/run/dbus/*

During the router starting /opt/etc/init.d/S20dbus do not examine whether daemon has already started or not.
If there is PID file in /opt/var/run/dbus/ S20dbus suppose daemon has already started. To be sure it actually starts we need to remove PID file before S20dbus is execute.
(Idea was peeped here (http://wiki.unixforum.org/wiki/Подключение_МФУ_HP_Photosmart_к_маршрутизатору_Dli nk_DIR-320.))


Many thanks to Oliver for the How-To (and for XSane too)!

Hi, All!
I've read this and follow recommendations. And it works now!
Router - Asus RT-N16
Firmware - 1.9.2.7-rtn-r2274
Scanner - HP psc 1350 all-in-one series (detected as "found USB scanner (vendor=0x03f0 [hp], product=0x3b11 [psc 1300 series]) at libusb:001:004" by sane-find-scanner utility and as "device `hpaio:/usb/psc_1300_series?serial=XXXXXXXXXXXX' is a Hewlett-Packard psc_1300_series all-in-one" by scanimage -L)
Backends - XSane on Ubutu 10.10 and the same on Win XP.

The main clues was in using old version of dbus. Some additional problem was in downgrading:
ipkg install -force-downgrade <downloaded package with old dbus version>
Also a little trouble was with username in config /opt/etc/xinetd.d/saned We have to use the same name that used to login to router (or any else that exist in /etc/passwd). Some people use their own usernames and alot of them use root instead of default admin user.

DeniDoman
22-01-2011, 16:29
I look at the webpage with printers and see:

PIXMA MP540
USB 0x04a9/0x1730
Complete
All resolutions supported (up to 2400DPI)
pixma (0.16.1) (http://home.arcor.de/wittawat/pixma/)
sane-pixma (http://www.sane-project.org/man/sane-pixma.5.html)

What does it mean? That i must download and compile sane-pixma? Or what?

***

Somebody has setup SANE with Canon MP540? And, maybe, somebody know forum, where i can take help?

larmoe01
02-02-2011, 10:21
Hi

My scanner HP PSC 1402 (and before that PSC 2110) has been working flawless for a while, until I recently upgraded a couple of packages. Now it stalls when initiating the scanning process.
The scanner is recognized by saned

$ scanimage -L
device `hpaio:/usb/PSC_1400_series?serial=CN62SDD28D04DZ' is a Hewlett-Packard PSC_1400_series all-in-one

Running "dmesg" after the scanner stalls puts out these additional lines:

$dmesg
...
printer.c: usblp0: removed
usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x87 len 6 ret -79
usb_control/bulk_msg: timeout


I’m still using the old version of dbus. As for the other applications here is the versions:

$ipkg list_installed |grep 'libusb\|libjpeg\|libtiff\|hplip\|dbus\|sane'
dbus - 1.1.1-3 -
dbus-glib - 0.82-1 - D-Bus Glib bindings
hplip - 3.9.2-1 -
libjpeg - 6b-3 - collection of jpeg tools
libtiff - 3.9.4-1 - Tag Image File Format Libraries
libusb - 0.1.12-2 - Library for interfacing to the USB subsystem.
sane-backends - 1.0.21-1 - SANE is a universal scanner interface

I would appreciate any suggestions what could be wrong.

fondpiggy
22-02-2011, 03:17
I have a HP Officejet J5788 scanner. I want sharing it on openwrt box.

openwrt firmware: KAMIKAZE (bleeding edge, r19957)
scanner: HP Officejet J5788 all-in-one
installed module:
hplip - 3.9.12-1
sane-backends - 1.0.20-2
sane-frontends - 1.0.20-2
sane-libs - 1.0.20-2

root@OpenWrt:~# scanimage -L
device `hpaio:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1' is a Hewlett-Packard Officejet_J5700_series all-in-one

root@OpenWrt:~# scanimage -T
scanimage: open of device hpaio:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1 failed: Device busy

root@OpenWrt:~#logread
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource temporarily unavailable bytesRead=0
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=20 , revision=1
Jan 1 00:48:27 OpenWrt user.warn syslog: failed to open scan channel: scan/sane/hpaio.c 657
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 327: device_cleanup: device uri=hp:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 339: device_cleanup: close device dd=1...
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 341: device_cleanup: done closing device dd=1

Who can help me? Thanks

mvnet
22-02-2011, 06:16
Sane-backends-1.0.22 has been released a few weeks ago. Anyone knows when it will be available via ipkg?

rm_fontes
06-03-2011, 16:42
Victory!
I can scan by HP PhotoSmart c5283 now.
I intently viewed the forum :) and solution was found:
http://wl500g.info/showpost.php?p=189850&postcount=108
I had the same symptoms as described in http://wl500g.info/showthread.php?t=20098.
I changed dbus from 1.2.16-1 to 1.1.1-3.

Thus I came to current working condition through installing the following packages:
libusb - 0.1.12-2
libtiff - 3.9.4-1
libjpeg - 6b-3
libieee1284 - 0.2.11-1
sane-backends - 1.0.21-1
cups - 1.4.4-1
dbus - 1.1.1-3 (from http://wl500g.info/showpost.php?p=202794&postcount=12)
hplip - 3.9.2-1 (from http://wl500g.info/showpost.php?p=199955&postcount=119)


Else.
I had to add one line into post-boot script.

rm /opt/var/run/dbus/*

During the router starting /opt/etc/init.d/S20dbus do not examine whether daemon has already started or not.
If there is PID file in /opt/var/run/dbus/ S20dbus suppose daemon has already started. To be sure it actually starts we need to remove PID file before S20dbus is execute.
(Idea was peeped here (http://wiki.unixforum.org/wiki/Подключение_МФУ_HP_Photosmart_к_маршрутизатору_Dli nk_DIR-320.))


Many thanks to Oliver for the How-To (and for XSane too)!

This works for me too (HP PSC 1510) but I noticed that when I start Xsane, the printer disconnect herself (kernel: printer.c: usblp0: removed), so I won't be able to print until I reboot or disconnect and connect the printer again. Any solution?
I also would like to have xsane or similar on Android? Is it possible?

civilzhang
11-03-2011, 22:52
Hi all

I had difficulties in figuring out how to make the scanner work over the network.

Router: ASUS RT-N16
Firmware: Tomato v1.28.9054 MIPSR2-beta K26 USB Ext
I installed all the packages mentioned in the thread but with no luck to get the scanner working

sane-find-scanner could find the scanner
found USB scanner (vendor=0x04f9, product=0x01e7) at libusb:001:003

but scanimage -L could not identify the scanner:
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).

I found the drivers at brother website but they are in .deb and .rpm format and could not be installed

Any suggestions will be appreciated. Thank you!

darthwissen
05-05-2011, 04:59
SANE + HPLIP 3.11.3a-1 + Tomato v1.28.8754 ND USB Std + Hp Deskjet F380 (F300 series) only works with small scan areas.

The problem is also related to DPIs, but I can't manage to get one full page with 75 DPI, which is the lowest possible.

If i get a small area (around 1/4 of the full glass) it will scan at some times, if i increase the DPI, it won't scan. I will get an Error during device I/O, even if I try to scan directly from scanimage.

I would like to have the scanner function of my AiO printer working, at least to scan the full glass in low resolutions (<=150).

I can't load previews as well.

I thought it could be a memory problem, since it does scan small areas, but it is not, in fact, the memory usage doesn't increase much during the scan, I even created a 128MB swap partition in my flash drive (was afraid of doing so, since it would wear it quickly, will probably remove now), but it didn't change anything, it still doesn't scan with more than 55% of the router's memory (16MB) free and more than 97% of the swap memory free.

I would also like to know where else should I look for a solution to this issue, already googled for hours and hours... Maybe someone could recommend me another forum or place to ask for help.

Thanks all in advance for your effort in helping me out,

Igor Campos

Here are my configuration files:

/opt/etc/sane.d/dll.conf


hpaio


/opt/etc/sane.d/saned.conf


192.168.0.0/24


/opt/etc/xinetd.d/saned


service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}


/opt/etc/xinetd.conf


# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Sample configuration file for xinetd

defaults
{
only_from = localhost 192.168.0.0/24
instances = 60
log_type = FILE /opt/var/xinetd.log
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /opt/etc/xinetd.d


Everything is configured properly, I got the dbus and cups installed since both are required for hplip to work properly.

Here are some other files, that shows what happens:

sane-find-scanner


# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [HP], product=0x5511 [Deskjet F300 series]) at libusb:001:006
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.


scanimage -L


device `hpaio:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH' is a Hewlett-Packard Deskjet_F300_series all-in-one


hp-probe


root@white:/opt/bin# ./hp-probe -busb
warning: python-dbus not installed.
warning: hp-probe should not be run as root/superuser.

HP Linux Imaging and Printing System (ver. 0.0.0)
Printer Discovery Utility ver. 4.1

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


--------------------
| DEVICE DISCOVERY |
--------------------
Device URI Model
------------------------------------------------- ----------------------
hp:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH HP Deskjet F300 series

Found 1 printer(s) on the 'usb' bus.


Done.


scanimage > test.jpg


scanimage: sane_start: Error during device I/O


saned -d5


[saned] main: starting debug mode (level 5)
[saned] read_config: searching for config file
[saned] read_config: done reading config
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
[saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
[saned] do_bindings: " sane-port " service unknown on your host; you should add
[saned] do_bindings: sane-port 6566/tcp saned # SANE network scanner daemon
[saned] do_bindings: to your /etc/services file (or equivalent). Proceeding anyway.
[saned] do_bindings: [0] socket () using IPv6
[saned] do_bindings: [0] socket failed: Address family not supported by protocol
[saned] do_bindings: [1] socket () using IPv4
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] listen ()
[saned] run_standalone: waiting for control connection
[saned] handle_connection: processing client connection
[saned] check_host: access by remote host: 192.168.0.10
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: white
[saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f::
[saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f::
[saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f::
[saned] check_host: local hostname(s) (from DNS): white
[saned] check_host: local hostname(s) (from DNS): white
[saned] check_host: local hostname(s) (from DNS): white
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory)
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `192.168.0.0/24'
[saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 24
[saned] check_host: access granted from IP address 192.168.0.10 (in subnet 192.168.0.0/24)
[saned] init: access granted
[saned] init: access granted to darthwissen@192.168.0.10
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 2
[saned] process_request: access to resource `hpaio' granted
[saned] process_request: sane_open returned: Success
[saned] process_request: waiting for request
[saned] process_request: got request 4
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 5


to be continued... (saned -d5 is huge)

lindalion
27-09-2011, 17:13
hi!

Samsung SCX-4200, RT-N16, 1.9.2.7-rtn-r2252 (and 1.9.2.7-rtn-r3000):


[root@RT-N16 root]$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04e8 [Samsung], product=0x341b [SCX-4200 Series]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
[root@RT-N16 root]$ scanimage -L

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).
[root@RT-N16 root]$
[root@RT-N16 root]$ scanimage -T
scanimage: no SANE devices found
[root@RT-N16 root]$


[root@RT-N16 root]$ vi /opt/etc/sane.d/saned.conf
# saned.conf
# Configuration for the saned daemon

192.168.1.0/24 #grant access to scanner from network 192.168.1.x

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
~
~
~
~


[root@RT-N16 root]$ vi /opt/etc/xinetd.d/saned
service saned
{
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}
~
~


[root@RT-N16 root]$ grep "saned" /etc/services
saned 6566/tcp # SANE network scanner daemon


[root@RT-N16 root]$ grep "saned" /opt/etc/init.d/S01sane-backends
if !( grep -q ^saned.*6566 /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services


help plz

dccharacter
22-10-2011, 14:23
Hi All, thanks for the guide. I've got Xerox WorkCentre 3119 which is said to be supported. Made quite a few attempts trying to make it work - no luck so far. Tried almost everything including re-installation from scratch.


root]$ sane-find-scanner
...
found USB scanner (vendor=0x0924 [Xerox], product=0x4265 [WorkCentre 3119 Series]) at libusb:001:002
....

root]$ scanimage -L
No scanners were identified.
.....

root]$ cat /etc/services |grep sane
saned 6566/tcp # SANE network scanner daemon
....

[root]$ killall xinetd
[root]$ xinetd -d
11/10/22@13:26:07: DEBUG: 416 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

11/10/22@13:26:07: DEBUG: 416 {cnf_start_services} Started service: saned
11/10/22@13:26:07: DEBUG: 416 {cnf_start_services} mask_max = 6, services_started = 1
11/10/22@13:26:07: NOTICE: 416 {main} xinetd Version 2.3.14 started with no options compiled in.
11/10/22@13:26:07: NOTICE: 416 {main} Started working: 1 available service
11/10/22@13:26:07: DEBUG: 416 {main_loop} active_services = 1

root]$ cat /opt/etc/init.d/S01sane-backends
#!/bin/sh

PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin

if !( grep -q ^saned.*6566 /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services
fi


root]$ saned -d128
[saned] main: starting debug mode (level 128)
[saned] read_config: searching for config file
[saned] read_config: done reading config
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
[saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
[saned] do_bindings: " sane-port " service unknown on your host; you should add
[saned] do_bindings: sane-port 6566/tcp saned # SANE network scanner daemon
[saned] do_bindings: to your /etc/services file (or equivalent). Proceeding anyway.
[saned] do_bindings: [0] socket () using IPv6
[saned] do_bindings: [0] setsockopt ()
[saned] do_bindings: [0] bind () to port 6566
[saned] do_bindings: [0] listen ()
[saned] do_bindings: [1] socket () using IPv4
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] bind failed: Address already in use
[saned] run_standalone: waiting for control connection


Is there any hope guys?
Thanks

loentar
10-01-2012, 12:12
lindalion, dccharacter, I have same problem with Samsung SCX-3185.

It's because sane 1.0.22 have an issue in xerox_mfp module. I have applied patch from (it can be downloaded from http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git;a=patch;h=5ea227caeacd504b64eef301e83 fa63e0a25b3f7), recompiled xerox_mfp using toolchain (file attached) and placed it into /opt/lib/sane.

After that my scanner is detected by xerox_mfp module, but now i have timeout error in sanei_usb.

Most interesting log fragment:

[sanei_usb] sanei_usb_open: opened usb device `libusb:003:003' (*dn=0)
[xerox_mfp] :: dev_command(INQUIRY[0x12], 70)
[sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes
[sanei_usb] 000 1B A8 12 00 ....
[sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes
[sanei_usb] sanei_usb_read_bulk: trying to read 1024 bytes
USB error: error reading from bulk endpoint 0x84: Connection timed out
[sanei_usb] sanei_usb_read_bulk: read failed: Connection timed out
[xerox_mfp] usb_dev_request: sanei_usb_read_bulk: Error during device I/O
[xerox_mfp] dev_command: dev_request: Error during device I/O
[xerox_mfp] usb_dev_close: closing dev 0x41dda0
[sanei_usb] sanei_usb_close: closing device 0
[xerox_mfp] list_one_device: dev_inquiry(libusb:003:003): Error during device I/O


strace log:

open("/proc/bus/usb/003/003", O_RDWR) = 4
ioctl(4, USBDEVFS_SETCONFIGURATION, 0x7fff49d4) = 0
ioctl(4, USBDEVFS_CLAIMINTERFACE, 0x7fff49d4) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0
gettimeofday({1326197756, 621351}, NULL) = 0
ioctl(4, USBDEVFS_SUBMITURB, 0x7fff481c) = 0
ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fff4800) = 0
ioctl(4, USBDEVFS_BULK, 0x7fff4900) = 70
ioctl(4, USBDEVFS_BULK, 0x7fff4900) = -1 ETIMEDOUT (Connection timed out)
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff493c) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0
ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0
ioctl(4, USBDEVFS_RELEASEINTERFACE, 0x7fff4a2c) = 0
close(4) = 0


Same error in rtn-r3702 (2.6 kernel) and d-r2624 (2.4 kernel).

I belive the problem can be in sanei_usb or libusb, but I can't recompile it yet.

loentar
11-01-2012, 07:56
Finally, I get it worked!!!

Second problem was in libusb. Simple recompiling has solved issue.

How to install:

1. Download xerox_mfp_wl500.tar.bz2 from attach and place it into /tmp dir on your wl.
2. Unpack it and install:

cd /tmp
tar jxf xerox_mfp_wl500.tar.bz2
./install

Now you can do scanimage -L and so on.

lindalion
11-01-2012, 08:12
Thanks!!! It Worked!

joeyg1973
21-06-2012, 02:33
I am so hoping someone can help me here because I sure as heck won't get any help on any of the DD-WRT forums. I have and HP PSC 1610 printer/scanner combo. I have followed all the directions here and even gone with the older version of dbus but to no avail. I am still getting this error. Any help would be appreciated.


root@DD-WRT:~# scanimage -T
process 15247: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3046.
This is normally a bug in some application using the D-Bus library.
D-Bus not compiled with backtrace support so unable to print a backtrace
Aborted


Hoping you can help!

Joe

bseos
30-07-2012, 09:04
*removed*
followed this instead for tomato: http://shcherbyna.com/?p=960

Bogie67
03-08-2012, 21:39
Hi there, i have installed sane-backend as per instructions, but it turns out my printer/scanner (canon mp280) is not supported in sane-backends 1.0.22. But the 1.0.23git (http://www.sane-project.org/lists/sane- ... ml#S-PIXMA) does support it.

Is there any way to get the un-released sane-backends (1.0.23git) created into an ipkg?

"bind failed (Address already in use (errno = 98)). service = saned"

!gm
05-09-2012, 00:38
hm ipkg is death... you can upgrade to our, etnware called new repository and cross-compile the software yourself :)

http://code.google.com/p/wl500g-repo/wiki/Compiling

Bogie67
14-09-2012, 00:47
I am only a newbie to understand that complex thing. The Sane-backends 1.0.23 comes out and need someone help to update the repositories

Bogie67
05-10-2012, 00:49
Anyone can help!!!

madi123
29-10-2012, 05:03
Anyone can help!!!

Please read my post at h__p://www.dd-wrt.com/phpBB2/viewtopic.php?p=720294#720294, I posted there sane-backends (1.0.24git). I assume it will work for OpenWRT platform as well.

iGeophysix
06-11-2012, 18:07
Hi,

I have a problem with SCX-4200
Config:
ASUS RT-N16
Firmware: 1.9.2.7-rtn-r4667

sane version 1.0.22

Entering sane-find-scanner gives:

[root@Router /]$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04e8 [Samsung], product=0x341b [SCX-4200 Series]) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.


Entering scanimege -L

[root@Router /]$ scanimage -L

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).

nano /opt/etc/sane.d/xerox_mfp.conf :

#Samsung SCX-4200
usb 0x04e8 0x341b

in saned.conf


# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

192.168.1.0/24 #grant access to scanner from network 192.168.1.x

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).


could you help me please?

Bogie67
07-11-2012, 23:48
madi123,

Thanks for your reply! Would you please give a step by step instructions. How can I edit the ipkg.conf?
I really want this to work and sorry that I am only a newbie on this thing.

madi123
13-11-2012, 10:28
madi123,

Thanks for your reply! Would you please give a step by step instructions. How can I edit the ipkg.conf?
I really want this to work and sorry that I am only a newbie on this thing.

A month ago I ws a total newbie too. Probably there is a more simple way, but I couldn't figure out. You need to use "cd" and "ls" commands to locate ipkg.conf file in your /opt folder. I don't remember the exact location of this file. Then type "vi ipkg.conf" (vi is a simple text editor). then press "a", so you can edit the lines and put "#" in front of the line that has a link to repository to disable downloading of 1.0.22 backends by default. Then <esc> then type ":wq" and hit <return>.

Now you can go to folder were sane sane-backends_git20121025-1_mipsel.ipk file is located and type "ipkg install sane-backends". Then check the version installed "ipkg list_installed". It should show something like sane-backends 1.0.24git

After installation you can go back and edit ipkg.conf, to allow downloading of other packages from repository.

Bogie67
14-11-2012, 23:26
madi123,

Hi!

I done the first step - editing of ipkg.conf. It is located at folder /opt/etc/

Now I am figuring out how can I transfer the sane-backends-1.0.23 from sda3(partition 3) or from my pc going to opt/etc(partition 2). I have a 500 gb hdd being partitioned to swap, opt & sda3.

Is the command? Ipkg -d /opt/etc install /sda3/sane-backends-1.0.23

madi123
15-11-2012, 05:52
madi123,

Hi!

I done the first step - editing of ipkg.conf. It is located at folder /opt/etc/

Now I am figuring out how can I transfer the sane-backends-1.0.23 from sda3(partition 3) or from my pc going to opt/etc(partition 2). I have a 500 gb hdd being partitioned to swap, opt & sda3.

Is the command? Ipkg -d /opt/etc install /sda3/sane-backends-1.0.23

So, you are almost there. :)

First "ipkg remove sane-backends" then "cd /sda3" if it is a a folder were *.ipk file is located. Then "ipkg install sane sane-backends_git20121025-1_mipsel.ipk".

I don't think you need to specify -d option since it will be installed in default location anyway. I hope you followed all instructions from the first post before removing the old backends and installing new ones.

Bogie67
17-11-2012, 01:18
Hi madi123,

To give you update:

sane-find-scanner found USB scanner (vendor=0x04a9 [Canon], product=0x1746 [MP280 series]) at libusb:001:004

scanimage -L device `pixma:04A91746_A8B681' is a CANON Canon PIXMA MP280 multi-function peripheral

scanimage -T scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes...
.................................................. ...................................waiting
FAIL Error: Error during device I/O




log on router:

Nov 17 09:09:52 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:11 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:16 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:16 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1

What is wrong??

madi123
18-11-2012, 16:30
Hi madi123,

To give you update:

sane-find-scanner found USB scanner (vendor=0x04a9 [Canon], product=0x1746 [MP280 series]) at libusb:001:004

scanimage -L device `pixma:04A91746_A8B681' is a CANON Canon PIXMA MP280 multi-function peripheral

scanimage -T scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes...
.................................................. ...................................waiting
FAIL Error: Error during device I/O




log on router:

Nov 17 09:09:52 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:11 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:16 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1
Nov 17 09:10:16 Router user.warn kernel: usb 1-1.2: usbfs: interface 1 claimed by usblp while 'scanimage' sets config #1

What is wrong??

Check if ScanImage or Xsane is working OK since Scanimage -T always shows FAIL Error: Error during device I/O when I run command for the 2nd time. Also you need to reboot and restart all your devices (scanner, USB hub and router). I made deeper investigations and added few more tweeks to PIXMA driver which further improved stability in my case. Unzip, copy to any location available for router. then run "cp libsane-pixma.so.1.0.24 \opt\lib\sane\libsane-pixma.so.1.0.24

If it won't help I'm not sure if I can help you...

Bogie67
27-11-2012, 04:53
Hi Madi123,

I run "cp libsane-pixma.so.1.0.24 \opt\lib\sane\libsane-pixma.so.1.0.24 and reboot the router/restart all devices.

The scanimage can see the scanner but when it issue a command to scan, it gives time out error. I think that the router does'nt receive the data from the scanner?

That is my thoughts!

madi123
20-12-2012, 04:36
Hi Madi123,

I run "cp libsane-pixma.so.1.0.24 \opt\lib\sane\libsane-pixma.so.1.0.24 and reboot the router/restart all devices.

The scanimage can see the scanner but when it issue a command to scan, it gives time out error. I think that the router does'nt receive the data from the scanner?

That is my thoughts!

The problem might be USB cable, or can be buried within the Scaner driver. Try to use shorter USB cable, also borrow another scanner (not HP) and check if it works.

You scanner (CANON Canon PIXMA MP280 multi-function peripheral) is described in pixma_mp150.c which I did not edited at all. I edited pixma_imageclass.c file to get my scanner work and used hit&miss aproach. I attached the pixma_imageclass.c from the git source (old) and edited file (new). Not sure if this will help you since your problem can be elsewhere.

Bogie67
20-01-2013, 23:03
Hi Madi123,
I check the content of the sane folders, but where should I put this file - pixma_imageclass.C.new?

Further research it is because of "usblp"

UncleVic
19-06-2013, 21:39
Hi,

I have a problem with SCX-4200
Config:
ASUS RT-N16
Firmware: 1.9.2.7-rtn-r4667

sane version 1.0.22


I have same problem, but I have version 1.0.23.
I can't find answer

EdP
09-05-2014, 15:04
Hope someone is still out there involved in this project.

Finally decided to get saned installed on my WL-500gx (Oleg 1.9.2.7-d-r2624) for Canon Pixma MP520.
Got it installed after a couple of trials, but I can't get the scanner to complete any scans.

Here's what happens roughly (from my linux console):


user@ubuntu:~$ scanimage -L
device `net:192.168.1.2:pixma:04A91724_16B31B' is a CANON Canon PIXMA MP520 multi-function peripheral


That's nice, cause it is the right answer. But when I proceed to test or scan, I get this:


user@ubuntu:~$ scanimage -T
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes...

... continues forever ...^C
scanimage: received signal 2
scanimage: trying to stop scanner

... also continues forever ...


Same goes for trying this directly from the router's prompt:


[root@WL500G root]$ scanimage -L
device `pixma:04A91724_16B31B' is a CANON Canon PIXMA MP520 multi-function peripheral



[root@WL500G root]$ scanimage -T
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes...

... continues forever ...


I've tried different USB cables but nothing changes. Printing via the same router and USB cable is fine, so I think this is not the issue. Needless to say, I can scan just fine with the same USB cable plugged straight into my laptop/desktop.
When I try to scan an image using SimpleScan or XSane, I can hear the scanner motor running and the scanner display says "Scanning ..." but that's all, the software just hangs until I power cycle the scanner.

In case you're wondering, here's what I have installed:

[root@WL500G ipkg]$ ipkg list_installed
ipkg-opt - 0.99.163-10 - The Itsy Package Manager
libieee1284 - 0.2.11-1 - libieee1284 is a cross-platform library for parallel port access.
libjpeg - 6b-3 - collection of jpeg tools
libtiff - 3.9.5-1 - Tag Image File Format Libraries
libuclibc++ - 0.2.2-9 - C++ standard library designed for use in embedded systems
libusb - 0.1.12-2 - Library for interfacing to the USB subsystem.
ncurses - 5.7-3 - NCurses libraries
psmisc - 22.13-1 - A set of some small useful utilities that use the proc filesystem.
sane-backends - 1.0.22-1 - SANE is a universal scanner interface
uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
xinetd - 2.3.14-11 - Highly configurable, modular and secure inetd
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.

satraf.ckar
25-01-2015, 20:29
I wrote a “documentation”, how I finally got it to work, after many hours of trial & error & search. Although I did on an other device (tp-link) the process it pretty similar, and this thread provided me great help to get it to work. Thats why I decided to post it here, it might help some other people in the future.

It might be a good idea to put the a link in the first post.

It is not guaranteed, that it will work for you too, but as I did not find a tutorial even as good as this one, I decided to write it.
Maybe it’s too detailed, but I wanted to make sure that people with close to zero linux experience can understand and do it.

HERE IT GOES TO THE TUTORIAL --->
https://docs.google.com/document/d/1vWjiXK7OjjUIRXjl8z-7GQdEpzUqoUqrJOC0XcuDv6k/edit?usp=sharing