Can HP Officejet J5788 all-in-one scanner use SANE?
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
Help needed for Brother MFC-7340
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 + Tomato + F300 hangs with large scan areas
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.conf
/opt/etc/xinetd.d/saned
Code:
service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}
/opt/etc/xinetd.conf
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
Everything is configured properly, I got the dbus and cups installed since both are required for hplip to work properly.
Here are some other files, that shows what happens:
sane-find-scanner
Code:
# 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.
scanimage -L
Code:
device `hpaio:/usb/Deskjet_F300_series?serial=CN6BSGK1M104KH' is a Hewlett-Packard Deskjet_F300_series all-in-one
hp-probe
Code:
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.
scanimage > test.jpg
Code:
scanimage: sane_start: Error during device I/O
saned -d5
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
to be continued... (saned -d5 is huge)
scanimage -L: No scanners were identified. Xerox WorkCentre 3119
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 = 1
Code:
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
fi
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
Is there any hope guys?
Thanks