Sane-backends-1.0.22 has been released a few weeks ago. Anyone knows when it will be available via ipkg?
I have a HP Officejet J5788 scanner. I want sharing it on openwrt box.
openwrt firmware: KAMIKAZE (bleeding edge, r19957)
scanner: HP Officejet J5788 all-in-one
installed module:
hplip - 3.9.12-1
sane-backends - 1.0.20-2
sane-frontends - 1.0.20-2
sane-libs - 1.0.20-2
root@OpenWrt:~# scanimage -L
device `hpaio:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1' is a Hewlett-Packard Officejet_J5700_series all-in-one
root@OpenWrt:~# scanimage -T
scanimage: open of device hpaio:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1 failed: Device busy
root@OpenWrt:~#logread
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource temporarily unavailable bytesRead=0
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/dot4.c 330: invalid DOT4InitReply: cmd=0, result=20 , revision=1
Jan 1 00:48:27 OpenWrt user.warn syslog: failed to open scan channel: scan/sane/hpaio.c 657
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 327: device_cleanup: device uri=hp:/usb/Officejet_J5700_series?serial=CN82BCV1BC04T1
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 339: device_cleanup: close device dd=1...
Jan 1 00:48:27 OpenWrt user.err syslog: io/hpmud/hpmud.c 341: device_cleanup: done closing device dd=1
Who can help me? Thanks
Sane-backends-1.0.22 has been released a few weeks ago. Anyone knows when it will be available via ipkg?
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?
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!
SANE + HPLIP 3.11.3a-1 + Tomato v1.28.8754 ND USB Std + Hp Deskjet F380 (F300 series) only works with small scan areas.
The problem is also related to DPIs, but I can't manage to get one full page with 75 DPI, which is the lowest possible.
If i get a small area (around 1/4 of the full glass) it will scan at some times, if i increase the DPI, it won't scan. I will get an Error during device I/O, even if I try to scan directly from scanimage.
I would like to have the scanner function of my AiO printer working, at least to scan the full glass in low resolutions (<=150).
I can't load previews as well.
I thought it could be a memory problem, since it does scan small areas, but it is not, in fact, the memory usage doesn't increase much during the scan, I even created a 128MB swap partition in my flash drive (was afraid of doing so, since it would wear it quickly, will probably remove now), but it didn't change anything, it still doesn't scan with more than 55% of the router's memory (16MB) free and more than 97% of the swap memory free.
I would also like to know where else should I look for a solution to this issue, already googled for hours and hours... Maybe someone could recommend me another forum or place to ask for help.
Thanks all in advance for your effort in helping me out,
Igor Campos
Here are my configuration files:
/opt/etc/sane.d/dll.conf
/opt/etc/sane.d/saned.confCode:hpaio
/opt/etc/xinetd.d/sanedCode:192.168.0.0/24
/opt/etc/xinetd.confCode:service saned { port = 6566 socket_type = stream server = /opt/sbin/saned protocol = tcp user = root group = root wait = no disable = no }
Everything is configured properly, I got the dbus and cups installed since both are required for hplip to work properly.Code:# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Sample configuration file for xinetd defaults { only_from = localhost 192.168.0.0/24 instances = 60 log_type = FILE /opt/var/xinetd.log log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /opt/etc/xinetd.d
Here are some other files, that shows what happens:
sane-find-scanner
scanimage -LCode:# 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=0x5511 [Deskjet F300 series]) at libusb:001:006 # 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.
hp-probeCode:device `hpaio:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
scanimage > test.jpgCode:root@white:/opt/bin# ./hp-probe -busb warning: python-dbus not installed. warning: hp-probe should not be run as root/superuser. HP Linux Imaging and Printing System (ver. 0.0.0) Printer Discovery Utility ver. 4.1 Copyright (c) 2001-9 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. -------------------- | DEVICE DISCOVERY | -------------------- Device URI Model ------------------------------------------------- ---------------------- hp:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH HP Deskjet F300 series Found 1 printer(s) on the 'usb' bus. Done.
saned -d5Code:scanimage: sane_start: Error during device I/O
to be continued... (saned -d5 is huge)Code:[saned] main: starting debug mode (level 5) [saned] read_config: searching for config file [saned] read_config: done reading config [saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up [saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo) [saned] do_bindings: " sane-port " service unknown on your host; you should add [saned] do_bindings: sane-port 6566/tcp saned # SANE network scanner daemon [saned] do_bindings: to your /etc/services file (or equivalent). Proceeding anyway. [saned] do_bindings: [0] socket () using IPv6 [saned] do_bindings: [0] socket failed: Address family not supported by protocol [saned] do_bindings: [1] socket () using IPv4 [saned] do_bindings: [1] setsockopt () [saned] do_bindings: [1] bind () to port 6566 [saned] do_bindings: [1] listen () [saned] run_standalone: waiting for control connection [saned] handle_connection: processing client connection [saned] check_host: access by remote host: 192.168.0.10 [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK [saned] check_host: local hostname: white [saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f:: [saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f:: [saned] check_host: local hostname(s) (from DNS): c0a8:2:1862:ff7f:: [saned] check_host: local hostname(s) (from DNS): white [saned] check_host: local hostname(s) (from DNS): white [saned] check_host: local hostname(s) (from DNS): white [saned] check_host: remote host doesn't have same addr as local [saned] check_host: opening config file: /etc/hosts.equiv [saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory) [saned] check_host: opening config file: saned.conf [saned] check_host: config file line: `192.168.0.0/24' [saned] check_host: subnet with base IP = 192.168.0.0, CIDR netmask = 24 [saned] check_host: access granted from IP address 192.168.0.10 (in subnet 192.168.0.0/24) [saned] init: access granted [saned] init: access granted to darthwissen@192.168.0.10 [saned] process_request: waiting for request [saned] process_request: got request 1 [saned] process_request: waiting for request [saned] process_request: got request 2 [saned] process_request: access to resource `hpaio' granted [saned] process_request: sane_open returned: Success [saned] process_request: waiting for request [saned] process_request: got request 4 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5 [saned] process_request: waiting for request [saned] process_request: got request 5
Last edited by darthwissen; 05-05-2011 at 06:05. Reason: missing conf file
hi!
Samsung SCX-4200, RT-N16, 1.9.2.7-rtn-r2252 (and 1.9.2.7-rtn-r3000):
Code:[root@RT-N16 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". found USB scanner (vendor=0x04e8 [Samsung], product=0x341b [SCX-4200 Series]) at libusb:002: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. [root@RT-N16 root]$ 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). [root@RT-N16 root]$ [root@RT-N16 root]$ scanimage -T scanimage: no SANE devices found [root@RT-N16 root]$Code:[root@RT-N16 root]$ vi /opt/etc/sane.d/saned.conf # saned.conf # Configuration for the saned daemon 192.168.1.0/24 #grant access to scanner from network 192.168.1.x ## 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 # 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)). ~ ~ ~ ~Code:[root@RT-N16 root]$ vi /opt/etc/xinetd.d/saned service saned { socket_type = stream server = /opt/sbin/saned protocol = tcp user = root group = root wait = no disable = no } ~ ~Code:[root@RT-N16 root]$ grep "saned" /etc/services saned 6566/tcp # SANE network scanner daemonhelp plz[root@RT-N16 root]$ grep "saned" /opt/etc/init.d/S01sane-backends
if !( grep -q ^saned.*6566 /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services
Hi All, thanks for the guide. I've got Xerox WorkCentre 3119 which is said to be supported. Made quite a few attempts trying to make it work - no luck so far. Tried almost everything including re-installation from scratch.
Code:root]$ sane-find-scanner ... found USB scanner (vendor=0x0924 [Xerox], product=0x4265 [WorkCentre 3119 Series]) at libusb:001:002 ....Code:root]$ scanimage -L No scanners were identified. .....Code:root]$ cat /etc/services |grep sane saned 6566/tcp # SANE network scanner daemon ....Code:[root]$ killall xinetd [root]$ xinetd -d 11/10/22@13:26:07: DEBUG: 416 {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 11/10/22@13:26:07: DEBUG: 416 {cnf_start_services} Started service: saned 11/10/22@13:26:07: DEBUG: 416 {cnf_start_services} mask_max = 6, services_started = 1 11/10/22@13:26:07: NOTICE: 416 {main} xinetd Version 2.3.14 started with no options compiled in. 11/10/22@13:26:07: NOTICE: 416 {main} Started working: 1 available service 11/10/22@13:26:07: DEBUG: 416 {main_loop} active_services = 1Code:root]$ cat /opt/etc/init.d/S01sane-backends #!/bin/sh PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin if !( grep -q ^saned.*6566 /etc/services ); then echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services fiIs there any hope guys?Code:root]$ saned -d128 [saned] main: starting debug mode (level 128) [saned] read_config: searching for config file [saned] read_config: done reading config [saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up [saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo) [saned] do_bindings: " sane-port " service unknown on your host; you should add [saned] do_bindings: sane-port 6566/tcp saned # SANE network scanner daemon [saned] do_bindings: to your /etc/services file (or equivalent). Proceeding anyway. [saned] do_bindings: [0] socket () using IPv6 [saned] do_bindings: [0] setsockopt () [saned] do_bindings: [0] bind () to port 6566 [saned] do_bindings: [0] listen () [saned] do_bindings: [1] socket () using IPv4 [saned] do_bindings: [1] setsockopt () [saned] do_bindings: [1] bind () to port 6566 [saned] do_bindings: [1] bind failed: Address already in use [saned] run_standalone: waiting for control connection
Thanks
lindalion, dccharacter, I have same problem with Samsung SCX-3185.
It's because sane 1.0.22 have an issue in xerox_mfp module. I have applied patch from (it can be downloaded from http://anonscm.debian.org/gitweb/?p=...3fa63e0a25b3f7), recompiled xerox_mfp using toolchain (file attached) and placed it into /opt/lib/sane.
After that my scanner is detected by xerox_mfp module, but now i have timeout error in sanei_usb.
Most interesting log fragment:
strace log:Code:[sanei_usb] sanei_usb_open: opened usb device `libusb:003:003' (*dn=0) [xerox_mfp] :: dev_command(INQUIRY[0x12], 70) [sanei_usb] sanei_usb_write_bulk: trying to write 4 bytes [sanei_usb] 000 1B A8 12 00 .... [sanei_usb] sanei_usb_write_bulk: wanted 4 bytes, wrote 4 bytes [sanei_usb] sanei_usb_read_bulk: trying to read 1024 bytes USB error: error reading from bulk endpoint 0x84: Connection timed out [sanei_usb] sanei_usb_read_bulk: read failed: Connection timed out [xerox_mfp] usb_dev_request: sanei_usb_read_bulk: Error during device I/O [xerox_mfp] dev_command: dev_request: Error during device I/O [xerox_mfp] usb_dev_close: closing dev 0x41dda0 [sanei_usb] sanei_usb_close: closing device 0 [xerox_mfp] list_one_device: dev_inquiry(libusb:003:003): Error during device I/O
Same error in rtn-r3702 (2.6 kernel) and d-r2624 (2.4 kernel).Code:open("/proc/bus/usb/003/003", O_RDWR) = 4 ioctl(4, USBDEVFS_SETCONFIGURATION, 0x7fff49d4) = 0 ioctl(4, USBDEVFS_CLAIMINTERFACE, 0x7fff49d4) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a24) = 0 gettimeofday({1326197756, 621351}, NULL) = 0 ioctl(4, USBDEVFS_SUBMITURB, 0x7fff481c) = 0 ioctl(4, USBDEVFS_REAPURBNDELAY, 0x7fff4800) = 0 ioctl(4, USBDEVFS_BULK, 0x7fff4900) = 70 ioctl(4, USBDEVFS_BULK, 0x7fff4900) = -1 ETIMEDOUT (Connection timed out) ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff493c) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0 ioctl(4, USBDEVFS_CLEAR_HALT, 0x7fff4a44) = 0 ioctl(4, USBDEVFS_RELEASEINTERFACE, 0x7fff4a2c) = 0 close(4) = 0
I belive the problem can be in sanei_usb or libusb, but I can't recompile it yet.
Finally, I get it worked!!!
Second problem was in libusb. Simple recompiling has solved issue.
How to install:
1. Download xerox_mfp_wl500.tar.bz2 from attach and place it into /tmp dir on your wl.
2. Unpack it and install:
Now you can do scanimage -L and so on.Code:cd /tmp tar jxf xerox_mfp_wl500.tar.bz2 ./install
Thanks!!! It Worked!
Last edited by lindalion; 12-01-2012 at 15:50. Reason: Âñ¸ ðàáîòàåò!))
I am so hoping someone can help me here because I sure as heck won't get any help on any of the DD-WRT forums. I have and HP PSC 1610 printer/scanner combo. I have followed all the directions here and even gone with the older version of dbus but to no avail. I am still getting this error. Any help would be appreciated.
root@DD-WRT:~# scanimage -T
process 15247: arguments to dbus_connection_send() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 3046.
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
Hoping you can help!
Joe
*removed*
followed this instead for tomato: http://shcherbyna.com/?p=960
Last edited by bseos; 30-07-2012 at 17:17.
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 22:41.
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
I am only a newbie to understand that complex thing. The Sane-backends 1.0.23 comes out and need someone help to update the repositories
Last edited by Bogie67; 20-09-2012 at 06:22.