Hi,
I tried to connect my HP Scanjer 3500C to my WL-500G Deluxe.
I have followed this howto:
Everything looks fine in systemlog: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
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 serviceand sane-find-scanner give: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 "scanimage -L" give:found USB scanner (vendor=0x03f0, product=0x2205) at /dev/usb/scanner0
I have tried to scan from my windows PC with Sanetwain, it says "connected to 192.168.1.2" , but give a time out!![admin@routertje root]$ scanimage -L
device `hp3500:/dev/usb/scanner0' is a Hewlett-Packard ScanJet 3500 scanner
And when i try that, the system log give:
that's looks ok...Jan 1 01:04:05 xinetd[143]: START: saned pid=186 from=192.168.1.101
Can anyone help me?
Last edited by Dutchman; 05-03-2007 at 00:12.
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... :-(
Problem fixed. I wrote in post-boot:
So sane finds my scanner.Code:insmod /opt/scanner/scanner.o vendor=0x05da product=0x40b3
But I have got a new problem: xinetd can't start service sane.
Output of xinetd -d :
Any idea?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...
yeah, you forgot to copy the /etc/services thingy.
if the /etc/services file does not have an entry saned 6566/tcp in it it moans about no services.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
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.
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:
What have I to do?Code:[sm3600] sane_start: Error during device I/O [sm3600] cancel called... [sm3600] closing scanner [sm3600] Error status: 9, Timeout while waiting for CSTAT
remove the vendor statements from the insmod statement for the scanner.o file. maybe that helps?
what does scanimage -L say?
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.
What can I do if my scanner is not supported by SANE without a external backend (driver)? My scanner is a Brother DCP-115C.
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:
and command "sane-find-scanner", I 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...
my scanner.o is in /opt/scanner/scanner.oCode:[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]$
and add "insmod /opt/scanner/scanner.o" in my /usr/local/sbin/post-boot
my /opt/etc/init.d/S01sane-backends is
Part of my Systemlog isCode:#!/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
How can I fix this. Many thanks for help.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.
Last edited by thira; 06-08-2007 at 21:57.
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)
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.
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.
Hm. Mail me more details on this backend.