Anyone can help!!!
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:
Entering scanimege -LCode:[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.
nano /opt/etc/sane.d/xerox_mfp.conf :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).
in saned.confCode:#Samsung SCX-4200 usb 0x04e8 0x341b
could you help me please?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)).
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.
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; 14-11-2012 at 23:43.
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 05:55.
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 01:25.
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...
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 04:29.
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.
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 14:25.
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):
That's nice, cause it is the right answer. But when I proceed to test or scan, I get this:Code:user@ubuntu:~$ scanimage -L device `net:192.168.1.2:pixma:04A91724_16B31B' is a CANON Canon PIXMA MP520 multi-function peripheral
Same goes for trying this directly from the router's prompt: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 ...
Code:[root@WL500G root]$ scanimage -L device `pixma:04A91724_16B31B' is a CANON Canon PIXMA MP520 multi-function peripheralI'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.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 ...
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 15:06.
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