Dear Oliver,
I'll give it a try!
Thanks for this How-To.
Kemmon!
Here 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
-------------------------------------------------------------------------
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
Xsane
First of all, you have to check 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.
Thanks to wengi!
So lets start!
1. Firmware-Update
Here 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.
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:
Code:ipkg remove sane-backends ipkg remove sane-backends-wl500
2.1 Install some libraries
The Sane Scanner-Server needs some additional libraries.
Code:ipkg install libusb ipkg install libtiff ipkg install libjpeg ipkg install libieee1284
2.2 Install the package from optware
Just do a:
Code: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:
Customize the following line at the end of the file, so it fits to your network:Code:vi /opt/etc/sane.d/saned.conf
Code: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".
Code:vi /opt/etc/xinetd.d/sanedCode: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:
The following command checks, if the scanner was found:Code:flashfs save && flashfs commit && flashfs enable && reboot
That has to be the output:Code:sane-find-scanner
Now the following command:Code:found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:004
That has to be the output now.Code:scanimage -L
If both outputs are correct, your Sane-server is working fineCode:device `pixma:04A91713_19E40D' is a CANON Canon PIXMA MP830 multi-function peripheral
3. HPLIP
Most HP-Scanner uses hplip. I compiled a working ipkg-package.
Take a look at this post.
4. Known issues with some printers
4.1 HP PhotoSmart c5283
Refer to the following post. Thanks to electropanda!
5. Installation and configuration of XSane on Windows
5.1 Download the software
Here 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:
At the end of the file, you have to paste your router ip-adress. That's how my config file looks like:Code:C:\sane\etc\sane.d\net.conf
5.4 Starting XSaneCode:# 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
You can start the program by executing the following file:
Now you can scan images with XSaneCode:C:\sane\bin\xsane.exe
There are some more frontends available, look here for an overview.
For all Linux users:
There is also a linux version of XSane available. For more information look at the XSane-homepage.
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
Last edited by carterb; 15-10-2010 at 13:19.
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
Dear Oliver,
I'll give it a try!
Thanks for this How-To.
Kemmon!
Hi,
I compiled an ipgk-package of the sane-server. Just take a look at the How-To.
Installation is now much easier .
Bye
Oliver
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
From the Samsung there is only one MFP, and that is not supported, and what with others?
Hi,
which model do you use?
Maybe you can take another backend?!
Regards
Oliver
Last edited by carterb; 27-09-2009 at 10:21.
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
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
Last edited by rm_fontes; 28-09-2009 at 20:58.
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
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
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).
You have to insert the following lines at the end of the file:Code:/opt/etc/sane.d/xerox_mfp.conf
Now you must figure out, what is the vendor-id and product-id of your device.Code:#Samsung SCX-4200 # vendor product usb
You can do this, by using the following command:
On the output, you find your vendor-id and product-id.Code:sane-find-scanner
So in this special case, the config-file would look like that:Code:# 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.
Please give me a short acknowledgment if this works for you!Code:#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
I'm looking for a solution for hp psc-1510.
Last edited by carterb; 30-09-2009 at 15:14.
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
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.
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:
Finally you have to edit a sane-config-file. Open the following file:Code:ipkg install /your/storage/location/hplip-wl500gp_2.8.9-1_for_AsusWL500gP_mipsel.ipk
and paste the following entry at the end of the file:Code:vi /opt/etc/sane.d/dll.conf
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:
If its not in (the output is empty), open the file and paste the following:Code:grep "hpaio" /opt/etc/sane.d/dll.conf
Please give a short acknowledgment if this works for you!Code:hpaio
I will take the hplip into the howto, because many hp-scanner need this lib.
Regards
Oliver
Last edited by carterb; 05-10-2009 at 18:39.
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
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
but with scanimage -L I gotCode:# 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.Can you help me?Code: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).
edit:
I also saw this in the system log:
I removed xinetd and the result is the same.Code: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
Last edited by rm_fontes; 05-10-2009 at 18:18.
Hi,
first of all, you have to enter a valid user to
Enter the root-user. On my mashine itsCode:/opt/etc/xinetd.d/saned
After you did so, please do aCode:admin
to restart your router.Code:flashfs save && flashfs commit && flashfs enable && reboot
Then open
and post the output of xinetd.Code:/tmp/syslog.log
Also look for the following lines and post them:
And again:Code: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;'
RegardsCode:scanimage -L
Oliver
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
I changed the root-user and the problem is still the same
here´s what appears when i plugged the hp psc 1500:
i removed xinetdCode: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:6543;SN:MY5ADD13KM0498;S:038000C4800F1021012c1780044c288003e;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:6543;SN:MY5ADD13KM0498;S:038000C480001021002c1780044c288003e;J: Oct 6 20:51:09 kernel: printer.c: Parsing USBLPID...
edit: i installed xinetd and I saw that a had to change something. the file /opt/etc/xinetd.conf tostill the same so I addedCode:# 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.dto the file /opt/etc/sane.d/xerox_mfp.conf and still nothing...Code:#HP psc 1500 usb 0x03f0 0x4c11
Last edited by rm_fontes; 06-10-2009 at 23:29.
Hi,
@rm_fontes:
Why did you do this? That was the hint for Samsung-Scanners. Delete this entry, please.still the same so I added
#HP psc 1500
usb 0x03f0 0x4c11
Why did you remove xinetd? Did you have any other problems with it?
Your xinetd.conf looks fine.
Please do a:
and after that a:Code:killall xinetd
and post the output.Code:xinetd -d
Firstly we have to look why your saned-service does not wotk.
Regards
Oliver
Last edited by carterb; 07-10-2009 at 10:27.
Regards / Grüße,
Oliver
[How-To] Sane Scanner-Server mit XSane Frontend "german"
[How-To] Sane Scanner-Server with XSane Frontend "english"
Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
Speicher: Trekstor DataStation maxi 1 Tb
Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver
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.
Code:[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