[Eisfair] Schwarmwissen, Überwachung von Scanbuttond

Detlef Paschke schabau at t-online.de
Sa Jan 14 14:21:01 CET 2017


Hallo an alle,

nach Jahren der Abstinenz habe ich mal wieder ein Bastelprojekt vor.
Es geht mir um folgendes. Ich nutze auf Eisfair das Sane Paket 2.5.2 und
hatte hin und wieder das Problem, dass Scanbuttond nichts sofort auf
einen Tastendruck reagierte und ich ein weiteres mal die Taste am
Scanner betätigen musste. Ob dies nun Kontaktprobleme am Taster oder
etwas anderes ist sei dahingestellt.
Nun dachte ich mir zunächst, am elegantesten ist es, in den Scanner eine
LED zu integrieren, und diese mit Spannung über die Scannerröhre zu
versorgen denn da reicht eine Konstantstromquelle eigentlich sogar ein
Vorwiederstand aus. Sobald der Tastendruck registriert wurde geht die
LED an und nach dem Scan per scanimage --lamp-off wieder aus.
Problem, mein Scanner, ein HP Scanjet G3110 scheint offensichtlich die
Scanimage Option --lamp-off nicht zu verstehen. Die Lampe geht für den
Bruchteil einer Sekunde aus aber sofort wieder an. Auf der Konsole
erscheint:

eisfair # scanimage --lamp-off
scanimage: unrecognized option '--lamp-off'

Und im Log:

scanbuttond: libusbi: could not claim interface for device 001:003. (EBUSY)
scanbuttond: scanbtnd_open failed, error code: -16

Die LED würde bei diesem Scanner also ca. 3 bis 5 min Nachleuchten da
erst dann die Scannerröhre abgeschaltet wird.
Nun Dachte ich mir, am einfachsten wäre noch die RS-232 sprich Serielle
Schnittstelle ähnlich der Online/Offline-LED bei fli4l anzusprechen und
dies ließe sich auch ganz einfach in die Scannbuttond-Scripte einbinden.
Nachteil ist natürlich eine extra serielle Leitung nur für eine LED.

Hat jemand noch andere Ideen wie so etwas realisiert werden könnte?


Die gesamten Scanner-Optionen hänge ich mal an:

eisfair # scanimage -A

All options specific to device `hp3900:libusb:001:003':
  Geometry:
    -l 0..220mm (in steps of 1) [0]
        Top-left x position of scan area.
    -t 0..300mm (in steps of 1) [0]
        Top-left y position of scan area.
    -x 0..220mm (in steps of 1) [220]
        Width of scan-area.
    -y 0..300mm (in steps of 1) [300]
        Height of scan-area.
    --resolution 50|75|100|150|200|300|600|1200|2400|4800dpi [50]
        Sets the resolution of the scanned image.
    --red-gamma-table 0..65535,...
        Gamma-correction table for the red band.
    --green-gamma-table 0..65535,...
        Gamma-correction table for the green band.
    --blue-gamma-table 0..65535,...
        Gamma-correction table for the blue band.
    --source Flatbed|Slide|Negative [Flatbed]
        Selects the scan source (such as a document-feeder).
    --mode Color|Gray|Lineart [Color]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --depth 8|16bit [8]
        Number of bits per sample, typical values are 1 for "line-art" and 8
        for multibit scans.
    --threshold 0..255 [inactive]
        Select minimum-brightness to get a white point
  Debugging Options:
    --opt_model
HP3800|HP3970|HP4070|HP4370|UA4900|HPG3010|BQ5550|HPG2710|HPG3110 [HP3800]
        Allows one to test device behaviour with other supported models
    --opt_negative[=(yes|no)] [no]
        Image colours will be inverted
    --opt_nogamma[=(yes|no)] [no]
        Gamma correction will be disabled
    --opt_nowshading[=(yes|no)] [no]
        White shading correction will be disabled
    --opt_realdepth[=(yes|no)] [no]
        If gamma is enabled, scans are always made in 16 bits depth to
improve
        image quality and then converted to the selected depth. This option
        avoids depth emulation.
    --opt_emulategray[=(yes|no)] [no]
        If enabled, image will be scanned in color mode and then
converted to
        grayscale by software. This may improve image quality in some
        circumstances.
    --opt_nowarmup[=(yes|no)] [no]
        Warmup process will be disabled
    --opt_dbgimages[=(yes|no)] [no]
        If enabled, some images involved in scanner processing are saved to
        analyze them.
scanimage: invalid option caps, SS!SD
  Information:
    --opt_chipname <string> [Unknown] [read-only]
        Shows chipset name used in device.
    --opt_chipid <int> [-1] [read-only]
        Shows the chipset ID
    --opt_scancount <int> [-1] [read-only]
        Shows the number of scans made by scanner
scanimage: invalid option caps, SS!SD
  Sensors:
    --button 0[=(yes|no)] [no] [read-only]
        This option reflects a front panel scanner button
    --button 1[=(yes|no)] [no] [read-only]
        This option reflects a front panel scanner button
    --button 2[=(yes|no)] [no] [read-only]
        This option reflects a front panel scanner button
    --button 3[=(yes|no)] [no] [read-only]
        This option reflects a front panel scanner button
    --button 4[=(yes|no)] [inactive]
        This option reflects a front panel scanner button
    --button 5[=(yes|no)] [inactive]
        This option reflects a front panel scanner button

Viele Grüße
Detlef Paschke

-- 
registered Fli4l-User #00000209
Das "Zitat des Augenblicks" gibt es nur auf
http://www.schabau.goip.de


Mehr Informationen über die Mailingliste Eisfair