[Eisfair_dev] SANE mit hpaio

Stephan Manske usenet-reply at stephan.manske-net.de
Di Okt 30 15:12:26 CET 2012


holgerbruenjes at gmx.net (Holger Bruenjes) schrieb:
> Am 2012-10-30 01:05, schrieb Stephan Manske:

> > Zuersteinmal fällt mir auf, ich sehe mit sane-find-scanner erst
> > etwas, wenn ich vorher manuell eingebe
> >
> > | modprobe scanner vendor=0x03f0 product=0x2d11
> 
> Nein, da kommt nichts mehr, Es wird mit der libusb gearbeitet

Äh, ok, Bahnhof? Meine Linux-Wissens-Lücken ... :-(


ich habe jedenfalls einen Thread auf 2010 gefunden, da hatte ich
schonmal einige Erfolge gehabt.

Damals gab es zB folgende Ausgabe:

| # sane-find-scanner
|
| found USB scanner (vendor=0x03f0, product=0x2d11) at /dev/usbscanner0
| found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x2d11 [OfficeJet 6100 Series]

hm, ZWEI Einträge!?


| 3. Erkenntnis: Auch unter Knoppix wird nichts bei cat /proc/bus/usb/devices
| mit dem Scanner angezeigt, ein modprobe ... scheint also nicht nötig.
|
| Also nun wieder auf dem eis:
| # 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=0x03f0 [Hewlett-Packard], product=0x2d11 [OfficeJet 6100 Series]) at libusb:001:005

heute ohne ein modprobe oder so:

Scanner ab/anstöpseln:

| eis kernel: uhci.c: 1400: host controller halted. very bad
| eis kernel: usb.c: USB disconnect on device 00:1f.2-1 address 2
| eis kernel: hub.c: new USB device 00:1f.2-1, assigned address 3
| eis kernel: printer.c: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x03F0 pid 0x2D11


| root at eis (/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.
|
|  # Not checking for parallel port scanners.
|
|  # Most Scanners connected to the parallel port or other proprietary ports
|  # can't be detected by this program.


hm, nix da?


aber:

| root at eis (/root)# scanimage -L
| device `hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx' is a Hewlett-Packard OfficeJet_6100_Seri
| device `net:eis.hausnetz:hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx' is a Hewlett-Packard Of
| device `net:localhost:hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx' is a Hewlett-Packard Offic




damals:

| Aaaaaaaaaaber mit dem Wissen von Knoppix:
|
| #scanimage -d hpaio:/usb/OfficeJet_6100_Series?serial=MY4xxxxx --format=tiff >bild2.tiff
| | [sanei_debug] Setting debug level of dll to 12.
| | [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.21
| | [dll] sane_init/read_dlld: processing /etc/sane.d/dll.d ...
| | [dll] sane_init/read_dlld: opendir failed: No such file or directory
| | [dll] sane_init/read_config: reading dll.conf
| | [dll] add_backend: adding backend `net'
| | [dll] add_backend: adding backend `hpaio'
| | [dll] sane_open: trying to open `hpaio:/usb/OfficeJet_6100_Series?serial=MY4cxxxxx'
| | [dll] load: searching backend `hpaio' in `/usr/lib/sane'
| | [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
| | [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
| | [dll] init: initializing backend `hpaio'
| | [dll] init: backend `hpaio' is version 1.0.0
| | [dll] sane_open: open successful
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=0)
| | [dll] sane_control_option(handle=0x80552f0,option=0,action=0,value=0xbfffdb70,inf o=(nil))
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=0)
| | [dll] sane_control_option(handle=0x80552f0,option=0,action=0,value=0xbfffdab8,inf o=(nil))
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=1)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=2)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=3)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=4)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=5)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=6)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=7)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=8)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=9)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=10)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=11)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=12)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=13)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=14)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=15)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=16)
| | [dll] sane_control_option(handle=0x80552f0,option=15,action=0,value=0x8051dc0,inf o=(nil))
| | [dll] sane_control_option(handle=0x80552f0,option=13,action=0,value=0xbfffdab4,in fo=(nil))
| | [dll] sane_control_option(handle=0x80552f0,option=16,action=0,value=0x8051dc4,inf o=(nil))
| | [dll] sane_control_option(handle=0x80552f0,option=14,action=0,value=0xbfffdab4,in fo=(nil))
| | [dll] sane_control_option(handle=0x80552f0,option=13,action=0,value=0xbfffdb6c,in fo=(nil))
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=15)
| | [dll] sane_control_option(handle=0x80552f0,option=15,action=1,value=0xbfffdb68,in fo=0xbfffdaa8)
| | [dll] sane_control_option(handle=0x80552f0,option=14,action=0,value=0xbfffdb6c,in fo=(nil))
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=16)
| | [dll] sane_control_option(handle=0x80552f0,option=16,action=1,value=0xbfffdb68,in fo=0xbfffdaa8)
| | [dll] sane_get_option_descriptor(handle=0x80552f0,option=3)
| | [dll] sane_control_option(handle=0x80552f0,option=3,action=0,value=0xbfffda90,inf o=(nil))
| | [dll] sane_start(handle=0x80552f0)
| | [dll] sane_get_parameters(handle=0x80552f0,params=0xbfffdbe0)
| | [dll] sane_read(handle=0x80552f0,data=0x8068b80,maxlen=32768,lenp=0xbfffdb60)
| | [dll] sane_read(handle=0x80552f0,data=0x8068b80,maxlen=32768,lenp=0xbfffdb60)
| | [dll] sane_read(handle=0x80552f0,data=0x8068b80,maxlen=32768,lenp=0xbfffdb60)
| | [dll] sane_read(handle=0x80552f0,data=0x8068b80,maxlen=32768,lenp=0xbfffdb60
| ...
| ...
| | [dll] sane_read(handle=0x80552f0,data=0x8068b80,maxlen=32768,lenp=0xbfffdb60)
| | [dll] sane_cancel(handle=0x80552f0)
| | [dll] sane_close(handle=0x80552f0)
| | [dll] sane_exit: exiting
| | [dll] sane_exit: calling backend `hpaio's exit function
| | [dll] sane_exit: finished
| 
| Zwar (wohl mangels geeigneter Einstellungen) ein recht lausiges Bild,
| aber ein Bild!



heute:


| root at eis (/root)# export SANE_DEBUG_DLL=12
| (/root)# scanimage -d hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx --format=tiff >bild12.tiff
| [sanei_debug] Setting debug level of dll to 12.
| [dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.23
| [dll] sane_init/read_dlld: attempting to open directory `./dll.d'
| [dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d'
| [dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d'
| [dll] sane_init/read_dlld: done.
| [dll] sane_init/read_config: reading dll.conf
| [dll] add_backend: adding backend `net'
| [dll] add_backend: adding backend `hpaio'
| [dll] sane_open: trying to open `hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx'
| [dll] load: searching backend `hpaio' in `/usr/lib/sane'
| [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1'
| [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1'
| [dll] init: initializing backend `hpaio'
| [dll] init: backend `hpaio' is version 1.0.0
| scanimage: open of device hpaio:/usb/OfficeJet_6100_Series?serial=MYxxx failed: Invalid argument
| [dll] sane_exit: exiting
| [dll] sane_exit: calling backend `hpaio's exit function
| [dll] sane_exit: finished


und das zugehörige syslog:

|kernel: printer.c: usblp0: removed
|scanimage: io/hpmud/mlc.c 179: unable to read MlcReverseCmd header: No data available
|scanimage: io/hpmud/musb.c 1691: invalid MlcCredit from peripheral, trying miser
|scanimage: io/hpmud/mlc.c 179: unable to read MlcReverseCmd header: No data available
|scanimage: io/hpmud/musb.c 1696: invalid MlcCredit from peripheral
|scanimage: io/hpmud/hpmud.c 346: device_cleanup: device uri=hp:/usb/OfficeJet_6100_Serie
|scanimage: io/hpmud/hpmud.c 358: device_cleanup: close device dd=1...
|scanimage: io/hpmud/hpmud.c 360: device_cleanup: done closing device dd=1


Ciao, Stephan

-- 
E-Mail: stephan at manske-net.de - WWW: http://stephan.manske-net.de/     //
                                                          PGP 2.6.3i \X/
Die Pflicht ruft. Du rufst zurueck.


Mehr Informationen über die Mailingliste Eisfair_dev