HP M1522nf issue: error: SANE: Error during device I/O (code=9)
OS: 64-bit CentOS 5.3
HPLIP: ver 3.9.8 (most current version as of this post)
Printer is a network printer (Not locally connected via USB)
This is the 2nd Network attached printer I am setting up on this server. The first one works fine (HP PSC7310) This printer is on a different subnet, however. I can ping it fine, and it looks like it is setup, as here is the output from 'scanimage -L':
[root@athena rules.d]# scanimage -L
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18
[dll] sane_init: reading dll.conf
[dll] add_backend: adding backend `net'
[dll] add_backend: adding backend `hpaio'
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/
[dll] load: dlopen()ing `/usr/lib64/
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] load: searching backend `net' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/
[dll] load: dlopen()ing `/usr/lib64/
[dll] init: initializing backend `net'
[dll] init: backend `net' is version 1.0.18
[dll] sane_get_devices: found 2 devices
device `hpaio:
device `hpaio:
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `hpaio's exit function
[dll] sane_exit: calling backend `net's exit function
[dll] sane_exit: finished
When I run 'hp-scan':
[root@athena rules.d]# hp-scan
warning: hp-scan should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.9.8)
Scan Utility ver. 2.2
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.
-----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -------
0 hpaio:/
1 hpaio:/
So, it looks like it is setup properly. If I choose '0' above, that scanner scans just fine. But when I select '1', I immediately get this:
Enter number 0...1 for device (q=quit) ?1
warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to JPEG for color/lineart mode.
warning: Defaulting to '/etc/udev/
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18
[dll] sane_init: reading dll.conf
[dll] add_backend: adding backend `net'
[dll] add_backend: adding backend `hpaio'
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/
[dll] load: dlopen()ing `/usr/lib64/
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] load: searching backend `net' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/
[dll] load: dlopen()ing `/usr/lib64/
[dll] init: initializing backend `net'
[dll] init: backend `net' is version 1.0.18
[dll] sane_get_devices: found 2 devices
Using device hpaio:/
Opening connection to device...
[dll] sane_open: trying to open `hpaio:
error: SANE: Error during device I/O (code=9)
Any idea what that code=9 means? I have searched the net, and launchpad, but cannot find any posts with the error I am getting.
My plan is to write a web based scanning program with PHP, making system calls to 'hp-scan', and that works fine when the PSC7310 is chosen, but I can't seem to get anywhere with this other printer.
Does 'hp-scan' work with printers on another subnet? The printer does have the correct default route on it, and I can ping it from the other subnet, and use Safari to go into the printers webserver for config changes. I just think that 'hp-scan' doesn't like the fact that the 'scanner' is on another subnet.
Any help is greatly appreciated.
Best Regards,
Bruce
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruce Garlock
- Solved:
- Last query:
- Last reply: