Page 3 of 8 FirstFirst 12345 ... LastLast
Results 31 to 45 of 108

Thread: SANE (Scanner server) - Any chance for WL-500g?

  1. #31
    Hi,

    I tried to connect my HP Scanjer 3500C to my WL-500G Deluxe.
    I have followed this howto:
    1) I had to recompile the sources in order to get the missing scanner.o kernel module (you can recompile the sources for yourself or I can send you the module; just mail me your email adress )

    -> trying an "insmod scanner" -> result:

    usb.c: registered new driver usbscanner
    scanner.c: USB scanner device (0x04a9/0x220d) now attached to scanner0
    scanner.c: 0.4.16:USB Scanner Driver
    so far so good...

    now you can try sane-find-scanner and check if your scanner is found

    2) ipkg install xinetd (from unslung)
    3) ipkg install sane-backends (from unslung)
    4) remove all files from /opt/etc/xinetd.d:
    rm /opt/etc/xinetd.d/*
    5) create a new file in /opt/etc/xinetd.d/ called saned containing the following lines:

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

    6) add the following line to /etc/services:
    saned 6566/tcp # SANE network scanner daemon
    7) copy /etc/services to /usr/local/etc/services
    8) edit /opt/etc/sane.d/saned.conf:
    add the following line (after adapting it to your network):
    192.168.1.0/24 #grant access to scanner from network 192.168.1.x
    9) finally edit /usr/local/sbin/post-boot and add the following lines:

    insmod scanner # load scanner module first
    cp /usr/local/etc/services /etc/services # copy the previously modified services file to /etc
    /opt/sbin/xinetd # start xinetd as wrapper for saned

    10) finally.. (pooh) do a

    flashfs save && flashfs commit && flashfs enable

    11) reboot
    Everything looks fine in systemlog:

    Jan 1 01:02:57 xinetd[141]: xinetd Version 2.3.14 started with no options compiled in.
    Jan 1 01:02:57 xinetd[141]: Started working: 1 available service
    Jan 1 01:00:26 kernel: usb.c: registered new driver usbscanner
    Jan 1 01:00:26 kernel: scanner.c: USB scanner device (0x03f0/0x2205) now attached to scanner0
    Jan 1 01:00:26 kernel: scanner.c: 0.4.16:USB Scanner Driver
    and sane-find-scanner give:

    found USB scanner (vendor=0x03f0, product=0x2205) at /dev/usb/scanner0
    and "scanimage -L" give:

    [admin@routertje root]$ scanimage -L
    device `hp3500:/dev/usb/scanner0' is a Hewlett-Packard ScanJet 3500 scanner
    I have tried to scan from my windows PC with Sanetwain, it says "connected to 192.168.1.2" , but give a time out!!
    And when i try that, the system log give:
    Jan 1 01:04:05 xinetd[143]: START: saned pid=186 from=192.168.1.101
    that's looks ok...

    Can anyone help me?
    Last edited by Dutchman; 05-03-2007 at 00:12.

  2. #32
    Quote Originally Posted by Dutchman View Post
    Hi,

    I tried to connect my HP Scanjer 3500C to my WL-500G Deluxe.
    I have followed this howto:


    Everything looks fine in systemlog:




    and sane-find-scanner give:



    and "scanimage -L" give:



    I have tried to scan from my windows PC with Sanetwain, it says "connected to 192.168.1.2" , but give a time out!!
    And when i try that, the system log give:

    that's looks ok...

    Can anyone help me?

    Ok, it works now...don't know what was wrong but.. it's very slowly!

  3. #33

    Microtek ScanMaker 3600 doesn't work

    Hi!

    I have a Microtek ScanMaker 3600 scanner, but it doesn't work with my WL500gx router.

    It is my scanner in /proc/bus/usb/devices:

    T: Bus=03 Lev=02 Prnt=03 Port=02 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
    D: Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
    P: Vendor=05da ProdID=40b3 Rev= 0.00
    C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=100mA
    I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    Output of lsmod:

    Module Size Used by
    scanner 11996 0 (unused)
    usb-storage 62184 3
    sd_mod 13292 6
    scsi_mod 70216 2 [usb-storage sd_mod]
    videodev 8344 0 (unused)
    audio 50680 0 (unused)
    soundcore 5320 0 [audio]
    printer 12676 0
    ehci-hcd 23820 0 (unused)
    usb-uhci 28564 0 (unused)
    usbcore 77264 1 [scanner usb-storage audio printer ehci-hcd usb-uhci]
    ip_nat_ftp 3944 0 (unused)
    ip_conntrack_ftp 5248 1
    ipt_NETMAP 992 2
    ip_nat_starcraft 2224 0 (unused)
    wl 423856 0 (unused)
    et 34912 0 (unused)

    Output of dmesg | grep scanner*

    usb.c: registered new driver usbscanner
    scanner.c: 0.4.16:USB Scanner Driver

    Why doesn't recognize the kernel my scanner?

    Sorry for my poor english... :-(

  4. #34
    Problem fixed. I wrote in post-boot:

    Code:
    insmod /opt/scanner/scanner.o vendor=0x05da product=0x40b3
    So sane finds my scanner.

    But I have got a new problem: xinetd can't start service sane.

    Output of xinetd -d :

    Code:
    07/6/24@11:45:43: DEBUG: 170 {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.0.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: sane
            id = sane
            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 /opt/etc/sane.d/sm3600.conf
            Only from:  localhost(HOST) 192.168.0.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
    
    07/6/24@11:45:43: ERROR: 170 {activate_normal} bind failed (Address already in use (errno = 125)). service = sane
    07/6/24@11:45:43: ERROR: 170 {cnf_start_services} Service sane failed to start and is deactivated.
    07/6/24@11:45:43: DEBUG: 170 {cnf_start_services} mask_max = 0, services_started = 0
    07/6/24@11:45:43: CRITICAL: 170 {init_services} no services. Exiting...
    Any idea?

  5. #35
    Join Date
    Dec 2004
    Location
    the netherlands
    Posts
    155
    yeah, you forgot to copy the /etc/services thingy.
    Code:
    add the following line to /etc/services:
    saned 6566/tcp # SANE network scanner daemon
    copy /etc/services to /usr/local/etc/services
    
    edit /usr/local/sbin/post-boot and add the following lines:
    
    insmod scanner # load scanner module first
    cp /usr/local/etc/services /etc/services # copy the previously modified services
    if the /etc/services file does not have an entry saned 6566/tcp in it it moans about no services.

    hope this helps.

    cheers,

    Wiz

    p.s. you can check with grep saned /etc/services. If it is not there, copy /etc/services to /usr/local/etc/services, and add the entry. Do not forget to do a flashfs save, flashfs commit and flashfs enable.
    Last edited by wiz; 25-06-2007 at 21:19.

  6. #36
    Quote Originally Posted by wiz View Post
    yeah, you forgot to copy the /etc/services thingy.
    No, it's OK. But I'm stupid. If xinetd already runs, then "xinetd -d" can't start again sane... :-(

    Now I have a new failure notice:

    Code:
    [sm3600] sane_start: Error during device I/O
    [sm3600] cancel called...
    [sm3600] closing scanner
    [sm3600] Error status: 9, Timeout while waiting for CSTAT
    What have I to do?

  7. #37
    Join Date
    Dec 2004
    Location
    the netherlands
    Posts
    155
    remove the vendor statements from the insmod statement for the scanner.o file. maybe that helps?

    what does scanimage -L say?

  8. #38
    Quote Originally Posted by wiz View Post
    remove the vendor statements from the insmod statement for the scanner.o file. maybe that helps?
    No. The scanner.o finds nothing without the vendor statements.

    Quote Originally Posted by wiz View Post
    what does scanimage -L say?
    Code:
    device `sm3600:/dev/usb/scanner0' is a Microtek ScanMaker 3600 flatbed scanner

  9. #39
    Join Date
    Dec 2004
    Location
    the netherlands
    Posts
    155
    sounds like sane does know your scanner.

    What I find strange is that you have to supply the vendor statements in order to get it running. My scanner is an HP 3400C and all I do is load scanner.o and that's it.

    According to sane website it states your scanner is basically supported:

    http://www.sane-project.org/

    I don't have any idea why yours does not work.

  10. #40

    Arrow

    What can I do if my scanner is not supported by SANE without a external backend (driver)? My scanner is a Brother DCP-115C.

  11. #41
    Join Date
    Jul 2007
    Location
    Thailand
    Posts
    21

    can't start sane service

    I installed sane-backends on my 500gP with Oleg firmware.
    I can't start service for sane, when I try xinetd -d I've got:
    Code:
    07/8/5@02:40:39: DEBUG: 190 {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
    
    07/8/5@02:40:39: ERROR: 190 {activate_normal} bind failed (Address already in use (errno = 125)). service = saned
    07/8/5@02:40:39: ERROR: 190 {cnf_start_services} Service saned failed to start and is deactivated.
    07/8/5@02:40:39: DEBUG: 190 {cnf_start_services} mask_max = 0, services_started = 0
    07/8/5@02:40:39: CRITICAL: 190 {init_services} no services. Exiting...
    and command "sane-find-scanner", I got:
    Code:
    [admin@ThiraBox 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".
    
      # No USB scanners found. If you expected something different, make sure that
      # you have loaded a kernel driver for your USB host controller and have setup
      # the USB system correctly. See man sane-usb for details.
      # SANE has been built without libusb support. This may be a reason
      # for not detecting USB scanners. Read README for more details.
    
      # Not checking for parallel port scanners.
    
      # Most Scanners connected to the parallel port or other proprietary ports
      # can't be detected by this program.
    [admin@ThiraBox root]$
    my scanner.o is in /opt/scanner/scanner.o
    and add "insmod /opt/scanner/scanner.o" in my /usr/local/sbin/post-boot

    my /opt/etc/init.d/S01sane-backends is
    Code:
    #!/bin/sh
    PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
    if !( grep -q ^sane-port /etc/services ); then
            echo "saned             6566/tcp        # SANE network scanner daemon" >> /etc/services
    fi
    Part of my Systemlog is
    Code:
    Aug  5 03:08:33 kernel: Adding Swap: 514040k swap-space (priority -1)
    Aug  5 03:08:33 kernel: usb.c: registered new driver usbscanner
    Aug  5 03:08:33 kernel: scanner.c: 0.4.16:USB Scanner Driver
    Aug  5 03:08:33 System log daemon exiting.
    How can I fix this. Many thanks for help.
    Last edited by thira; 06-08-2007 at 21:57.

  12. #42
    Join Date
    Apr 2006
    Location
    Heesch, Netherlands
    Posts
    118
    Great Howto!

    I followed this tutorial, and works as a charm!

    HP 6300c

    with Sanetwain.
    No problems at all.
    (I still have to create post-boot additions)

    I think I will include /etc/services in /usr/local/.files before flashfs save
    Looks the easiest solution to me...
    Solar inverter monitoring with Asus wl500gx http://solar.reinieren.net (dutch)

  13. #43
    does this firmware work with asus-w500g Premium ???
    need connect scanner-printer canon ir1018
    i need scanning and printing too
    Last edited by mrobo; 27-10-2007 at 13:29.

  14. #44

    Epson scanner

    I have Epson scanner V200. The above mentioned procedure is not applicable for it.
    I suppose that I need Epson back-end. The source files are on EPKOWA web: http://www.avasys.jp/english/linux_e/dl_scan.html
    I am not able to compile it (I am not expert). Can anybody able to compile it?
    Please help me. Thanks.

  15. #45
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Hm. Mail me more details on this backend.

Page 3 of 8 FirstFirst 12345 ... LastLast

Similar Threads

  1. wl-500g / ftp-server
    By tthen in forum WL-500g Q&A
    Replies: 2
    Last Post: 06-11-2006, 17:52
  2. Chance for RADIUS Server on the router itself!
    By Dante_ in forum WL-500g Custom Development
    Replies: 50
    Last Post: 17-05-2006, 12:06
  3. Replies: 11
    Last Post: 17-08-2004, 09:22
  4. Sharing USB scanner or multifunction device
    By monnier in forum WL-500g Q&A
    Replies: 0
    Last Post: 22-07-2004, 23:42
  5. Use Scanner on Parallel port
    By bysoftie in forum WL-500g Q&A
    Replies: 1
    Last Post: 01-05-2004, 21:45

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
  •