Page 13 of 13 FirstFirst ... 3111213
Results 181 to 195 of 195

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

  1. #181
    Anyone can help!!!

  2. #182

    The 1.0.24git sane-backends

    Quote Originally Posted by Bogie67 View Post
    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.
    Last edited by madi123; 29-10-2012 at 07:07.

  3. #183

    SCX-4200 problems

    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:
    Code:
    [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
    Code:
    [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 :
    Code:
    #Samsung SCX-4200
    usb 0x04e8 0x341b
    in saned.conf
    Code:
    # 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?

  4. #184
    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.

  5. #185
    Quote Originally Posted by Bogie67 View Post
    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.

  6. #186
    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
    Last edited by Bogie67; 15-11-2012 at 00:43.

  7. #187
    Quote Originally Posted by Bogie67 View Post
    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.
    Last edited by madi123; 15-11-2012 at 06:55.

  8. #188
    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??
    Last edited by Bogie67; 17-11-2012 at 02:25.

  9. #189
    Quote Originally Posted by Bogie67 View Post
    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...
    Attached Files Attached Files

  10. #190
    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!
    Last edited by Bogie67; 28-11-2012 at 05:29.

  11. #191
    Quote Originally Posted by Bogie67 View Post
    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.
    Attached Files Attached Files

  12. #192
    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"
    Last edited by Bogie67; 08-04-2013 at 15:25.

  13. #193

    Unhappy

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

  14. #194
    Join Date
    Dec 2008
    Location
    Netherlands
    Posts
    74
    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):

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

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

    Code:
    [root@WL500G root]$ scanimage -L
    device `pixma:04A91724_16B31B' is a CANON Canon PIXMA MP520 multi-function peripheral
    Code:
    [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:
    Code:
    [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.
    Last edited by EdP; 09-05-2014 at 16:06.

  15. #195

    HowTo / Tutorial

    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/1...it?usp=sharing

Page 13 of 13 FirstFirst ... 3111213

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
  •