staging.inyokaproject.org

HP MFP Scanner-Problem: Error during device I/O

Status: Ungelöst | Ubuntu-Version: Kein Ubuntu
Antworten |

Bluecan

Anmeldungsdatum:
2. Januar 2023

Beiträge: Zähle...

Hallo! Ich bin mit meinem HP MFP M227 am verzweifeln und zufällig auf dieses Forum gestossen, weil jemand vor mir ein ähnliches problem mit einem Epson Drucker hatte. Vorweg: Ich bin kein erfahrener Linux user, sondern ich versuche einfach nur einen Printserver mit einem übergebliebenen Raspberry Pi 2 mit raspbian OS zum laufen zu bekommen. Drucken läuft soweit, nur das Scannen will noch nicht. Mein Ziel ist es, einen Scan zu starten und die Bilddatei landet auf meinem Windows PC. Ich habe remote zugriff auf den RPI und nutze die grafische Oberfläche.

Ich versuche über folgenden Befehl vom Windows PC aus zu scannen:

ssh pi@raspberrypi.local scanimage >image.jpg --format jpeg

Hier die Fehlermeldung:

scanimage: open of device hpaio:/usb/HP_LaserJet_MFP_M227-M231?serial=VNH4B06234 failed: Error during device I/O

Ich hab die "Standard abfragen zur Analyse bei Scanner Problemen" gefunden und hier sind alle Infos, die die Befehle ausgespuckt haben. Ich würde mich riesig freuen, wenn mir jemand helfen könnte.

Besten Dank im Voraus!!

pi@raspberrypi:~ $ export SANE_DEBUG_DLL=255 && scanimage -L
[17:48:50.219156] [sanei_debug] Setting debug level of dll to 255.
[17:48:50.220204] [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.31-debian
[17:48:50.220434] [dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[17:48:50.220657] [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
[17:48:50.220868] [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
[17:48:50.221108] [dll] sane_init/read_dlld: considering /etc/sane.d/dll.d/hplip
[17:48:50.221435] [dll] sane_init/read_config: reading dll.d/hplip
[17:48:50.221686] [dll] add_backend: adding backend `hpaio'
[17:48:50.222104] [dll] sane_init/read_dlld: done.
[17:48:50.222397] [dll] sane_init/read_config: Couldn't open config file (dll.conf): No such file or directory
[17:48:50.222704] [dll] sane_get_devices
[17:48:50.222864] [dll] load: searching backend `hpaio' in `/usr/lib/arm-linux-gnueabihf/sane:/usr/lib/sane:/usr/lib64/sane'
[17:48:50.223024] [dll] load: trying to load `/usr/lib/arm-linux-gnueabihf/sane/libsane-hpaio.so.1'
[17:48:50.223258] [dll] load: dlopen()ing `/usr/lib/arm-linux-gnueabihf/sane/libsane-hpaio.so.1'
[17:48:50.324778] [dll] init: initializing backend `hpaio'
[17:48:50.330742] [dll] init: backend `hpaio' is version 1.0.0
[17:48:51.483768] [dll] sane_get_devices: found 1 devices
device `hpaio:/usb/HP_LaserJet_MFP_M227-M231?serial=VNH4B06234' is a Hewlett-Packard HP_LaserJet_MFP_M227-M231 all-in-one
[17:48:51.484222] [dll] sane_exit: exiting
[17:48:51.484561] [dll] sane_exit: calling backend `hpaio's exit function
[17:48:51.490813] [dll] sane_exit: finished
pi@raspberrypi:~ $ dpkg -l *sane* | grep ii
ii  libsane-common      1.0.31-4.1        all          API library for scanners -- documentation and support files
ii  libsane-hpaio:armhf 3.21.2+dfsg1-2+b1 armhf        HP SANE backend for multi-function peripherals
ii  libsane1:armhf      1.0.31-4.1        armhf        API library for scanners
ii  sane                1.0.14-16         armhf        scanner graphical frontends
ii  sane-utils          1.0.31-4.1        armhf        API library for scanners -- utilities
pi@raspberrypi:~ $ dpkg -l libusb* | grep ii
ii  libusb-1.0-0:armhf 2:1.0.24-3   armhf        userspace USB programming library
ii  libusbmuxd6:armhf  2.0.2-3      armhf        USB multiplexor daemon for iPhone and iPod Touch devices - library
pi@raspberrypi:~ $ dpkg -l | egrep hp
ii  hplip                                3.21.2+dfsg1-2+b1                armhf        HP Linux Printing and Imaging System (HPLIP)
ii  hplip-data                           3.21.2+dfsg1-2                   all          HP Linux Printing and Imaging - data files
ii  libhpmud0:armhf                      3.21.2+dfsg1-2+b1                armhf        HP Multi-Point Transport Driver (hpmud) run-time libraries
ii  libpam-chksshpwd:armhf               1.4.0-9+deb11u1+rpt2             armhf        PAM module to enable SSH password checking support
ii  libsane-hpaio:armhf                  3.21.2+dfsg1-2+b1                armhf        HP SANE backend for multi-function peripherals
ii  node-sshpk                           1.16.1+dfsg-2                    all          library for finding and using SSH public keys
ii  printer-driver-hpcups                3.21.2+dfsg1-2+b1                armhf        HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii  printer-driver-postscript-hp         3.21.2+dfsg1-2+b1                armhf        HP Printers PostScript Descriptions
ii  python3-touchphat                    0.0.1                            all          python library designed to control Touch pHAT
pi@raspberrypi:~ $ sudo updatedb && locate libsane-smfp.so
sudo: updatedb: command not found
pi@raspberrypi:~ $ systemctl --no-pager status sane*
● saned.socket - saned incoming socket
     Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled)
     Active: active (listening) since Mon 2023-01-02 16:24:42 CET; 1h 29min ago
     Listen: [::]:6566 (Stream)
   Accepted: 0; Connected: 0;
      Tasks: 0 (limit: 1596)
        CPU: 6ms
     CGroup: /system.slice/saned.socket

Jan 02 16:24:42 raspberrypi systemd[1]: Listening on saned incoming socket.
pi@raspberrypi:~ $ hp-info -i

HP Linux Imaging and Printing System (ver. 3.21.2)
Device Information Utility ver. 5.2

Copyright (c) 2001-18 HP 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.

error: No device found that support this feature.
pi@raspberrypi:~ $ uname -rm
5.15.61-v7+ armv7l
pi@raspberrypi:~ $ lsusb
Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 004: ID 03f0:642a HP, Inc HP LaserJet MFP M227-M231
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ id
uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),104(input),106(render),108(netdev),117(lpadmin),997(gpio),998(i2c),999(spi)

MaSchle.inc

Avatar von MaSchle.inc

Anmeldungsdatum:
16. Dezember 2006

Beiträge: 267

probiere mal Folgendes auf deinem pi. Du musst das hp-plugin auf der Konsole ausführen

sudo -s :Passwort für root eingeben. Du bist auf der rootschell.

hp-pugin :den Anweisungen folgen.

exit :rootshell beenden

Bluecan

(Themenstarter)

Anmeldungsdatum:
2. Januar 2023

Beiträge: 2

Hallo MaSchle.inc,

danke für deine Antowrt. Die HPLIB hab ich schon installiert. Habs trotzdem nochal versucht, aber das schlägt fehl.

Ich hab den RPI einfach nochmal neu gestartet und den Scanbefehl geändert:

Vorher:

ssh pi@raspberrypi.local scanimage >image.jpg --format jpeg

Nachher:

ssh pi@192.168.10.122 scanimage >image.jpg --format jpeg

Und der Scanner erwacht nach der Passworteingabe zum Leben!! Nun ist nur noch die Frage wo das gescannte Bild dann gespeichert wird - oder ob überhaupt eine Datei erzeugt wird....?

Antworten |