Page 1 of 5 123 ... LastLast
Results 1 to 15 of 195

Thread: [HowTo] Sane Scanner-Server with XSane Frontend

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374

    Lightbulb [HowTo] Sane Scanner-Server with XSane Frontend

    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:
    Code:
    vi /opt/etc/sane.d/saned.conf
    Customize the following line at the end of the file, so it fits to your network:
    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/saned
    Code:
    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:
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    The following command checks, if the scanner was found:
    Code:
    sane-find-scanner
    That has to be the output:
    Code:
    found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:004
    Now the following command:
    Code:
    scanimage -L
    That has to be the output now.
    Code:
    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.


    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:
    Code:
    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:
    Code:
    # 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:
    Code:
    C:\sane\bin\xsane.exe
    Now you can scan images with XSane

    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
    Attached Files Attached Files
    Last edited by carterb; 15-10-2010 at 14: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

  2. #2
    Dear Oliver,

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

    Kemmon!

  3. #3
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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

  4. #4
    From the Samsung there is only one MFP, and that is not supported, and what with others?

  5. #5
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    Hi,

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

    Regards
    Oliver
    Last edited by carterb; 27-09-2009 at 11: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

  6. #6
    Quote Originally Posted by carterb View Post
    Hi,

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

    Regards
    Oliver
    I use SCX-4200

  7. #7

    Thumbs up

    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.

  8. #8
    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 21:58.

  9. #9
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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

  10. #10
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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).
    Code:
    /opt/etc/sane.d/xerox_mfp.conf
    You have to insert the following lines at the end of the file:
    Code:
    #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:
    Code:
    sane-find-scanner
    On the output, you find your vendor-id and product-id.
    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.
    So in this special case, the config-file would look like that:
    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
    Please give me a short acknowledgment if this works for you!


    I'm looking for a solution for hp psc-1510.
    Last edited by carterb; 30-09-2009 at 16: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

  11. #11
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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:
    Code:
    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:
    Code:
    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:
    Code:
    grep "hpaio" /opt/etc/sane.d/dll.conf
    If its not in (the output is empty), open the file and paste the following:
    Code:
    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
    Last edited by carterb; 05-10-2009 at 19: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

  12. #12
    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
    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=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
    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).
    Can you help me?

    edit:
    I also saw this in the system log:
    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
    I removed xinetd and the result is the same.
    Last edited by rm_fontes; 05-10-2009 at 19:18.

  13. #13
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    Hi,

    first of all, you have to enter a valid user to
    Code:
    /opt/etc/xinetd.d/saned
    Enter the root-user. On my mashine its
    Code:
    admin
    After you did so, please do a
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    to restart your router.

    Then open
    Code:
    /tmp/syslog.log
    and post the output of xinetd.

    Also look for the following lines and post them:
    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;'
    And again:
    Code:
    scanimage -L
    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

  14. #14
    I changed the root-user and the problem is still the same

    here´s what appears when i plugged the hp psc 1500:
    Code:
    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...
    i removed xinetd

    edit: i installed xinetd and I saw that a had to change something. the file /opt/etc/xinetd.conf to
    Code:
    # 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
    Code:
     #HP psc 1500
    usb 0x03f0 0x4c11
    to the file /opt/etc/sane.d/xerox_mfp.conf and still nothing...
    Last edited by rm_fontes; 07-10-2009 at 00:29.

  15. #15
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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:
    Code:
    killall xinetd
    and after that a:
    Code:
    xinetd -d
    and post the output.

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

    Regards
    Oliver
    Last edited by carterb; 07-10-2009 at 11: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

Page 1 of 5 123 ... LastLast

Similar Threads

  1. Replies: 24
    Last Post: 05-05-2015, 08:42
  2. SANE (Scanner server) - Any chance for WL-500g?
    By Dante_ in forum WL-500g Custom Development
    Replies: 107
    Last Post: 31-08-2012, 11:41
  3. [HowTo] Sane Scanner-Server mit XSane Frontend
    By carterb in forum German Discussion - Deutsch (DE)
    Replies: 9
    Last Post: 30-08-2012, 20:01
  4. HowTo install OpenVPN server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 41
    Last Post: 31-05-2012, 21:41
  5. HowTo secure FTP server (SSL/TLS)
    By Tamadite in forum WL-500gP Tutorials
    Replies: 12
    Last Post: 14-10-2008, 20:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •