Skaner Plustek 9636T pod Ubuntu 9.04 przez przejściówkę USB-parallel - jak ustawić?

Karty graficzne, dźwiękowe, tv, monitory etc.
mortywd
Sędziwy Jeż
Sędziwy Jeż
Posty: 35
Rejestracja: 30 lis 2007, 19:22
Płeć: Mężczyzna
Wersja Ubuntu: 8.10
Środowisko graficzne: GNOME

Skaner Plustek 9636T pod Ubuntu 9.04 przez przejściówkę USB-parallel - jak ustawić?

Post autor: mortywd »

Postanowiłem nakłonić skaner Plustek OpticPro 9636T do współpracy z laptopem HP Compac 6720s pod kontrolą Ubuntu 9.04. Zgodnie z raportem Synaptic, używam SANE w wersji:
libsane 1.0.19-23ubuntu7
sane-utils 1.0.19-23ubuntu7
libsane-dev 1.0.19-23ubuntu7
xsane 0.996-1ubuntu2
czyli najnowsze.
apt-cache raportuje pakiet sane w wersji 1.0.14-7.

Skaner ma port parallel, laptop - nie, więc próbuję z przejściówką parallel-USB. Przekopałem się przez many od SANE (backend plustek_pp) i kilka wątków na forach, ale tam jest zwykle mowa o instalacji drukarek przez takie przejściówki, a nie skanerów. Niby podobnie, ale mnie nie oświeciło, więc pod koniec drugiego dnia postanowiłem poprosić o pomoc.
Mam dwa kabelki - przejściówki:
* USB-serial-parallel (dwa elementy, które można rozłączyć - faktycznie to dwie przejściówki) widziany przez lsusb jako Prolific Technology, Inc. PL2303 Serial Port
* USB-parallel (od jakiejś drukarki, tu muszę go używać razem z kablem parallel-parellel, gdyż ma damską końcówkę) widziany jako Prolific Technology, Inc. PL2305 Parallel Port
na trzecim porcie USB wisi drukarka, tak że w sumie mam:

Kod: Zaznacz cały

$ lsusb
Bus 002 Device 011: ID 03f0:4117 Hewlett-Packard Printing Support
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 014: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 007: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
dalsze testy dla pierwszego kabelka:

Kod: Zaznacz cały

$ sane-find-scanner 
[...]
found USB scanner (vendor=0x067b, product=0x2303) at libusb:005:014
[..]
  # Not checking for parallel port scanners.
(niezależnie czy jest on podłączony do skanera, czy nie)

Kod: Zaznacz cały

$ scanimage -L

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).
z użytkownika root dostaję nieco szerszą informację:

Kod: Zaznacz cały

$ sane-find-scanner 
[...]
found USB scanner (vendor=0x067b [Prolific Technology Inc.], product=0x2303 [USB-Serial Controller]) at libusb:005:015
[...]
dla drugiego kabelka sane-find-scanner nie wykrywa nic, niezależnie od użytkownika (zwykły, czy root)
Wetknięcie tego drugiego kabelka w port USB wywołuje (niezależnie od podpięcia go pod skaner) komunikat hplip "Brak sterownika. Brak sterownika drukarki Prolific Technology, Inc. PL2305" oraz wyskoczenie okien "Dla drukarki tej jest własnościowa wtyczkasterownika od HP.[...]" oraz oraz okna "Konfiguracja drukarki - localhost" z widocznymi pozostałymi skonfigurowanymi w systemie drukarkami. Objaw ten występuje jedynie, gdy mam podłączoną do kolejnego portu USB (i włączoną) drukarkę (HP), w przeciwnym wypadku conajwyżej pojawia się ikona drukarki z lupą na pasku zadań.

"Numer z drukarką" jest pewnie związany z opisem obu kabelków:
  • dla pierwszego wśród wyników lsusb -v jest: bInterfaceClass 255 Vendor Specific Class
  • dla drugiego:

    Kod: Zaznacz cały

         bInterfaceClass         7 Printer
          bInterfaceClass         7 Printer
          bInterfaceClass       255 Vendor Specific Class
    (trzy sekcje "Interface Descriptor:" zamiast jednej)
Odkomentowanie #plustek_pp w pliku /etc/sane.d/dll.conf, jak i zmiana w /etc/sane.d/plustek_pp.conf

Kod: Zaznacz cały

[direct]
device parport0
na

Kod: Zaznacz cały

[direct]
device parallel:libusb:005:014
Nic nie pomogło.
Zamiana na

Kod: Zaznacz cały

[direct]
device parallel:/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
czyli wskazanie urządzenia przejściówki USB-serial-parallel też nie pomogło.
Podanie jawnie adresu oparte na tym wątku też nie pomogło.

Nie wiem, czy na tym etapie to szczególnie istotne, ale skaner jest przygotowany do włączania między komputer a drukarkę - ma port do podpięcia drugiego kabla prowadzącego do drukarki i tak chyba był konfigurowany dawniej - jeszcze pod komputerem posiadającym odpowiedni port (i któregoś Windowsa). W dokumentacji coś pisali o terminatorze linii, czyli zakończeniu, gdy nie podpina się drukarki. Jeśli to może być przyczyną problemu (lub jego części) to spróbuję dokupić.

Co przegapiłem i co jeszcze mogę spradzić żeby zrozumieć dlaczego nie działa?
mortywd
Sędziwy Jeż
Sędziwy Jeż
Posty: 35
Rejestracja: 30 lis 2007, 19:22
Płeć: Mężczyzna
Wersja Ubuntu: 8.10
Środowisko graficzne: GNOME

Odp: Skaner Plustek 9636T pod Ubuntu 9.04 przez przejściówkę USB-parallel - jak ustaw

Post autor: mortywd »

Podsumowując (i podbijając) problem przedstawia się następująco:
Mam skaner Plustek OpticPro 9636T podłączany przez port parallel i laptopa, który ma tylko USB, z Ubuntu 9.04 na pokładzie. Chciałbym je zmusić do współpracy, próbowałem użyć SANE, ale mimo testowania różnych konfiguracji (urządzeń wskazywanych w plustek_pp.conf) i dwóch róznych kabli-przejściówek skanera nie widać. sane-find-scanner wykrywa jeden z kabli, który we właściwościach (lsusb -v) ma

Kod: Zaznacz cały

      bInterfaceClass       255 Vendor Specific Class 
do tego niezależnie czy kabel ten jest podłączony z drugiej strony do skanera.
Drugiego kabla nie wykrywa w ogóle, co pewnie ma związek z ustawieniem (lsusb -v):

Kod: Zaznacz cały

      bInterfaceClass         7 Printer
      bInterfaceSubClass      1 Printer
O tym, że xsane i scaneimage -L nic nie wyrywają to nawet szkoda wspominać.
Co jeszcze mogę zrobić? Może podchodzę do problemu ze złej strony? Ma ktoś jakieś doświadczenia z podpinaniem skanerów na portach równoległych przez porty USB (porady dotyczące drukarek tak łączonych i skanerów klasy mustek, które wygooglałem, nie pomogły; mustek są traktowane nieco specjalnie i chyba wyłącznie dla nich powstała opscja -p w sane-find-scanner)?

Jeśli ktoś to rozumie, to załączam jeszcze jeden test:

Kod: Zaznacz cały

# SANE_DEBUG_PLUSTEK=255 scanimage -L
[sanei_debug] Setting debug level of plustek to 255.
[plustek] Plustek backend V0.52-7, part of sane-backends 1.0.19
[plustek] Retrieving all supported and conntected devices
[plustek] Checking for 0x07b3-0x0010
[plustek] Checking for 0x07b3-0x0011
[plustek] Checking for 0x07b3-0x0017
[plustek] Checking for 0x07b3-0x0015
[plustek] Checking for 0x07b3-0x0015
[plustek] Checking for 0x07b3-0x0017
[plustek] Checking for 0x07b3-0x0013
[plustek] Checking for 0x07b3-0x0013
[plustek] Checking for 0x07b3-0x0011
[plustek] Checking for 0x07b3-0x0010
[plustek] Checking for 0x07b3-0x0014
[plustek] Checking for 0x07b3-0x0014
[plustek] Checking for 0x07b3-0x0016
[plustek] Checking for 0x07b3-0x0017
[plustek] Checking for 0x07b3-0x0017
[plustek] Checking for 0x07b3-0x0007
[plustek] Checking for 0x07b3-0x000f
[plustek] Checking for 0x07b3-0x000f
[plustek] Checking for 0x07b3-0x0005
[plustek] Checking for 0x07b3-0x0014
[plustek] Checking for 0x07b3-0x0012
[plustek] Checking for 0x0400-0x1000
[plustek] Checking for 0x0400-0x1001
[plustek] Checking for 0x0400-0x1001
[plustek] Checking for 0x0458-0x2007
[plustek] Checking for 0x0458-0x2008
[plustek] Checking for 0x0458-0x2009
[plustek] Checking for 0x0458-0x2013
[plustek] Checking for 0x0458-0x2015
[plustek] Checking for 0x0458-0x2016
[plustek] Checking for 0x03f0-0x0505
[plustek] Checking for 0x03f0-0x0605
[plustek] Checking for 0x04b8-0x010f
[plustek] Checking for 0x04b8-0x011d
[plustek] Checking for 0x1606-0x0050
[plustek] Checking for 0x1606-0x0060
[plustek] Checking for 0x1606-0x0160
[plustek] Checking for 0x049f-0x001a
[plustek] Checking for 0x04a9-0x2206
[plustek] Checking for 0x04a9-0x2207
[plustek] Checking for 0x04a9-0x2208
[plustek] Checking for 0x04a9-0x220d
[plustek] Checking for 0x04a9-0x220e
[plustek] Checking for 0x04a9-0x2220
[plustek] Checking for 0x0a82-0x4600
[plustek] Checking for 0x0a82-0x6620
[plustek] Checking for 0x0a53-0x1000
[plustek] Available and supported devices:
[plustek] NONE.
[plustek] ># Plustek-SANE Backend configuration file<
[plustek] ># For use with LM9831/2/3 based USB scanners<
[plustek] >#<
[plustek] ><
[plustek] ># each device needs at least two lines:<
[plustek] ># - [usb] vendor-ID and product-ID<
[plustek] ># - device devicename<
[plustek] ># i.e. for Plustek (0x07B3) UT12/16/24 (0x0017)<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device /dev/usbscanner<
[plustek] ># or<
[plustek] ># device libusb:bbb:ddd<
[plustek] ># where bbb is the busnumber and ddd the device number<
[plustek] ># make sure that your user has access to /proc/bus/usb/bbb/ddd<
[plustek] >#<
[plustek] ># additionally you can specify some options<
[plustek] ># warmup, lOffOnEnd, lampOff<
[plustek] >#<
[plustek] ># For autodetection use<
[plustek] ># [usb]<
[plustek] ># device /dev/usbscanner<
[plustek] >#<
[plustek] ># or simply<
[plustek] ># [usb]<
[plustek] >#<
[plustek] ># or if you want a specific device but you have no idea about the<
[plustek] ># device node or you use libusb, simply set vendor- and product-ID<
[plustek] ># [usb] 0x07B3 0x0017<
[plustek] ># device auto<
[plustek] >#<
[plustek] ># NOTE: autodetection is safe, as it uses the info it got<
[plustek] >#       from the USB subsystem. If you're not using the<
[plustek] >#       autodetection, you MUST have attached that device<
[plustek] >#       at your USB-port, that you have specified...<
[plustek] >#<
[plustek] ><
[plustek] >#zmieniam [usb]<
[plustek] >[usb] 0x067b 0x2305<
[plustek] next device is a USB device (0x067B-0x2305)
[plustek] ... next device
[plustek] >device /dev/usblp0<
[plustek] Decoding device name >/dev/usblp0<
[plustek] ><
[plustek] >#<
[plustek] ># options for the previous USB entry<
[plustek] >#<
[plustek] ># switch lamp off after xxx secs, 0 disables the feature<
[plustek] ># (can also be set via frontend)<
[plustek] >option lampOff 300<
[plustek] Decoding option >lampOff<
[plustek] ><
[plustek] ># warmup period in seconds, 0 means no warmup, -1 means auto-warmup<
[plustek] ># (can also be set via frontend)<
[plustek] >option warmup -1<
[plustek] Decoding option >warmup<
[plustek] ><
[plustek] ># 0 means leave lamp-status untouched, not 0 means switch off<
[plustek] ># on sane_close<
[plustek] ># (can also be set via frontend)<
[plustek] >option lOffOnEnd 1<
[plustek] Decoding option >lOffOnEnd<
[plustek] ><
[plustek] >#<
[plustek] ># options to tweak the image start-position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] >#<
[plustek] ># for the normal scan area<
[plustek] >#<
[plustek] >option posOffX 0<
[plustek] Decoding option >posOffX<
[plustek] >option posOffY 0<
[plustek] Decoding option >posOffY<
[plustek] ><
[plustek] ># for transparencies<
[plustek] >option tpaOffX 0<
[plustek] Decoding option >tpaOffX<
[plustek] >option tpaOffY 0<
[plustek] Decoding option >tpaOffY<
[plustek] ><
[plustek] ># for negatives<
[plustek] >option negOffX 0<
[plustek] Decoding option >negOffX<
[plustek] >option negOffY 0<
[plustek] Decoding option >negOffY<
[plustek] ><
[plustek] >#<
[plustek] ># for setting the calibration strip position<
[plustek] ># (WARNING: there's no internal range check!!!)<
[plustek] ># -1 means use built in<
[plustek] ># (can also be set via frontend)<
[plustek] >option posShadingY -1<
[plustek] Decoding option >posShadingY<
[plustek] >option tpaShadingY -1<
[plustek] Decoding option >tpaShadingY<
[plustek] >option negShadingY -1<
[plustek] Decoding option >negShadingY<
[plustek] ><
[plustek] >#<
[plustek] ># to invert the negatives, 0 disables the feature<
[plustek] >#<
[plustek] >option invertNegatives 0<
[plustek] Decoding option >invertNegatives<
[plustek] ><
[plustek] >#<
[plustek] ># to disable the internal sensor speedup function,<
[plustek] ># 1 disables the feature<
[plustek] >#<
[plustek] >option disableSpeedup 0<
[plustek] Decoding option >disableSpeedup<
[plustek] ><
[plustek] >#<
[plustek] ># to save/restore coarse calibration data<
[plustek] ># (can also be set via frontend)<
[plustek] >option cacheCalData 0<
[plustek] Decoding option >cacheCalData<
[plustek] ><
[plustek] >#<
[plustek] ># use alternate calibration routines<
[plustek] >#<
[plustek] >option altCalibration 0<
[plustek] Decoding option >altCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping whole calibration step<
[plustek] >#<
[plustek] >option skipCalibration 0<
[plustek] Decoding option >skipCalibration<
[plustek] ><
[plustek] >#<
[plustek] ># for skipping entire fine calibration step<
[plustek] ># coarse calibration is done<
[plustek] >#<
[plustek] >option skipFine 0<
[plustek] Decoding option >skipFine<
[plustek] ><
[plustek] >#<
[plustek] ># discard the result of the fine white calibration<
[plustek] >#<
[plustek] >option skipFineWhite 0<
[plustek] Decoding option >skipFineWhite<
[plustek] ><
[plustek] >#<
[plustek] ># some scanners have a dark calibration strip, in<
[plustek] ># general this one should be used for calibration.<
[plustek] ># As this could cause some trouble, this option<
[plustek] ># overrides that and the dark calibration will be<
[plustek] ># done by switching the lamp off<
[plustek] >#<
[plustek] >option skipDarkStrip 0<
[plustek] Decoding option >skipDarkStrip<
[plustek] ><
[plustek] ># for replacing the gain values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_gain   -1<
[plustek] Decoding option >red_gain<
[plustek] >option green_gain -1<
[plustek] Decoding option >green_gain<
[plustek] >option blue_gain  -1<
[plustek] Decoding option >blue_gain<
[plustek] ><
[plustek] ># for replacing the offset values found during coarse<
[plustek] ># calibration<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_offset   -1<
[plustek] Decoding option >red_offset<
[plustek] >option green_offset -1<
[plustek] Decoding option >green_offset<
[plustek] >option blue_offset  -1<
[plustek] Decoding option >blue_offset<
[plustek] ><
[plustek] >#<
[plustek] ># for replacing the default lampoff settings, this<
[plustek] ># works only for CIS devices like CanoScan LiDE20<
[plustek] ># (can also be set via frontend)<
[plustek] >option red_lampoff   -1<
[plustek] Decoding option >red_lampoff<
[plustek] >option green_lampoff -1<
[plustek] Decoding option >green_lampoff<
[plustek] >option blue_lampoff  -1<
[plustek] Decoding option >blue_lampoff<
[plustek] ><
[plustek] >#<
[plustek] ># for adjusting the default gamma values<
[plustek] ># (can also be set via frontend)<
[plustek] >option redGamma         1.0<
[plustek] Decoding option >redGamma<
[plustek] >option greenGamma       1.0<
[plustek] Decoding option >greenGamma<
[plustek] >option blueGamma        1.0<
[plustek] Decoding option >blueGamma<
[plustek] >option grayGamma        1.0<
[plustek] Decoding option >grayGamma<
[plustek] ><
[plustek] >#<
[plustek] ># to enable TPA (EPSON or UMAX, if autodetection fails)<
[plustek] ># 0 means default behaviour as specified in the internal tables<
[plustek] ># 1 means enable (needed for UMAX 3450)<
[plustek] >option enableTPA 0<
[plustek] Decoding option >enableTPA<
[plustek] ><
[plustek] >#<
[plustek] ># model override functionality, currently only available for<
[plustek] ># Mustek devices, using NSCs' vendor ID: 0x0400 and<
[plustek] ># also their product ID: 0x1000 (LM9831) 0x1001 (LM9832)<
[plustek] >#<
[plustek] ># mov/PID    |    0x1000   |   0x1001<
[plustek] ># ---------------------------------------<
[plustek] ># 0 (default)| BearPaw1200 | BearPaw 2400<
[plustek] ># 1          |   ignored   | BearPaw 1200<
[plustek] >#<
[plustek] >option mov 0<
[plustek] Decoding option >mov<
[plustek] ><
[plustek] >#<
[plustek] ># and of course the device-name<
[plustek] >#<
[plustek] ># device /dev/usbscanner<
[plustek] >device auto<
[plustek] Decoding device name >auto<
[plustek] ><
[plustek] >#<
[plustek] ># to define a new device, start with a new section:<
[plustek] ># [usb]<
[plustek] >#<
[plustek] attach (auto, 0xbf9da690, (nil))
[plustek] Device configuration:
[plustek] device name  : >auto<
[plustek] USB-ID       : >0x067B-0x2305<
[plustek] model ovr.   : 0
[plustek] warmup       : -1s
[plustek] lampOff      : 300
[plustek] lampOffOnEnd : yes
[plustek] cacheCalData : no
[plustek] altCalibrate : no
[plustek] skipCalibr.  : no
[plustek] skipFine     : no
[plustek] skipFineWhite: no
[plustek] skipDarkStrip: no
[plustek] incDarkTarget: yes
[plustek] invertNegs.  : no
[plustek] dis.Speedup  : no
[plustek] pos_x        : 0
[plustek] pos_y        : 0
[plustek] pos_shading_y: -1
[plustek] neg_x        : 0
[plustek] neg_y        : 0
[plustek] neg_shading_y: -1
[plustek] tpa_x        : 0
[plustek] tpa_y        : 0
[plustek] tpa_shading_y: -1
[plustek] red gain     : -1
[plustek] green gain   : -1
[plustek] blue gain    : -1
[plustek] red offset   : -1
[plustek] green offset : -1
[plustek] blue offset  : -1
[plustek] red lampoff  : -1
[plustek] green lampoff: -1
[plustek] blue lampoff : -1
[plustek] red Gamma    : 1.00
[plustek] green Gamma  : 1.00
[plustek] blue Gamma   : 1.00
[plustek] gray Gamma   : 1.00
[plustek] ---------------------
[plustek] usbDev_open(auto,0x067B-0x2305) - (nil)
[plustek] sanei_usb_open failed: No such file or directory (2)
[plustek] open failed: -1
[plustek] sane_get_devices (0xbf9dc7e8, 0)

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).
[plustek] sane_exit
Dla PLUSTEK_PP wypisuje niemal jedynie zawartość pliku konfiguracyjnego.
ODPOWIEDZ

Wróć do „Multimedia - karty graficzne, dźwiękowe, telewizyjne, drukarki, skanery”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 17 gości