Page 1 of 2 12 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
    Jan 2010
    Location
    Saint-Petersburg, Russia
    Posts
    14
    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:
    Code:
    sane-find-scanner
    Output:
    Code:
    Segmentation fault
    Input:
    Code:
    scanimage -L
    Output:
    Code:
    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:
    Code:
    xinetd -d
    Output:
    Code:
    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).
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2010
    Location
    Saint-Petersburg, Russia
    Posts
    14
    Ok. I`ve solved the problem.
    I have reinstalled sane-backends and libs required.

    If someone will be interested in..
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2010
    Location
    Saint-Petersburg, Russia
    Posts
    14

    arguments to dbus_connection_send() were incorrect

    Hi.

    I have another problem.

    After sane-backends and libs reinstalling result was:

    sane-find-scanner:
    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=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:
    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).
    Then I have installed python, cups and dbus (it wasn`t installed before). The result:

    scanimage -L:
    Code:
    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:
    Code:
    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

  4. #4
    Join Date
    Jan 2010
    Location
    Saint-Petersburg, Russia
    Posts
    14

    It`s works!

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


    Many thanks to Oliver for the How-To (and for XSane too)!
    Last edited by electropanda; 23-11-2010 at 14:54.

  5. #5

    Samsung 4623f, development (git) version of backend

    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.

  6. #6
    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.

    Quote Originally Posted by protective1 View Post
    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.

  7. #7

    Samsung SCX-4200 no longer work

    Hi!
    Deleted.
    Last edited by Avinar; 02-01-2011 at 16:25.

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

    Quote Originally Posted by electropanda View Post
    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...??
    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

  9. #9
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374
    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!
    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
    Quote Originally Posted by electropanda View Post
    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.
    Code:
    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)


    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:
    Code:
     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.

  11. #11
    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)
    sane-pixma

    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?

  12. #12
    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
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  13. #13
    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"
    Last edited by Bogie67; 03-08-2012 at 21:41.

  14. #14
    Quote Originally Posted by electropanda View Post
    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.
    Code:
    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)


    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?

  15. #15

    Help needed for Brother MFC-7340

    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!

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 24
    Last Post: 05-05-2015, 07: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, 10:41
  3. [HowTo] Sane Scanner-Server mit XSane Frontend
    By carterb in forum German Discussion - Deutsch (DE)
    Replies: 9
    Last Post: 30-08-2012, 19:01
  4. HowTo install OpenVPN server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 41
    Last Post: 31-05-2012, 20:41
  5. HowTo secure FTP server (SSL/TLS)
    By Tamadite in forum WL-500gP Tutorials
    Replies: 12
    Last Post: 14-10-2008, 19: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
  •