scanner driver linux parallel port

Fórumok

van egy síkágyas, párhuzamos portos lapolvasó: LG Scanworks 600P EPP.
van hozzá windows TWAIN driver.

valóban nincs hozzá SANE driver? (én nemtaláltam)
mekkora erőfeszítés lenne hozzá drivert vagy egy különálló kezelőprogramot írni?
mennyire reverse engineer-elhető egy ilyen kommunikáció ha figyelem az LPT port forgalmát?
járható út-e a twain driver szétszedése?

Hozzászólások

próbáld meg mustec 600-asként installálni. hátha

vagyis
/etc/sane.d/dll.conf fileban kiveszed a #-et a mustec_pp sor elöl, és beteszel egy #-et a mustec sor elejére

aztán szerkeszted a /etc/sane.d/mustec_pp.conf filet valahogy igy:


# For documentation see sane-mustek_pp(5)

# Global options:
# ===============
#
# option no_epp
#
#	    Disable parallel port mode EPP: works around a known bug in
#	    the Linux parport code. Enable this option, if the backend
#	    hangs when trying to access the parallel port in EPP mode:
#
#	          # SANE_DEBUG_SANEI_PA4S2=128 scanimage -L
#	          ...
#  hangs here  -> [sanei_pa4s2] sanei_pa4s2_readbyte: read in EPP mode
#	 
# Scanner definition template:
# ============================
#
#  scanner <name> <port> <type>
#     option <optname> <optval>?
#     option <optname> <optval>?
#     ...
#
#  where:
#
#     <name> is an arbitrary name for the scanner (eg. Mustek-1200CP)
#
#     <port> is the parallel port to which the scanner is connected
#            Possible values are 0x378, 0x278, and 0x3bc. For Linux, the
#            mapping between ports an numbers is different for kernel
#            version 2.2 and 2.4. Port 0x378 corresponds to lp0 on 2.4 kernel.
#            If you are using libieee1284, you can as well use parport0, etc..
#	     If you use the magic value * the port is probed.
#
#     <type> is an identification of the scanner type.
#            Possible values are:
#              - cis600    (for Mustek 600CP & OEM versions),
#              - cis1200   (for Mustek 1200CP & OEM versions),
#              - cis1200+  (for Mustek 1200CP+ & OEM versions),
#              - ccd300    (for Mustek 600 III EPP & OEM versions)
#	       - ... more types will be added in the future
#     
#     <optname> is a name of an option, and <optval> an optional value
#               for the option.
#               Currently available options for *CIS* type scanners are:
#                 - top_adjust <value>: 
#                      Vertical adjustment of origin, in millimeter.
#                      Values between -5.0 and +5.0 mm are possible 
#                      (floating point).
#                      Default: 0.0
#                 - slow_skip: 
#                      Boolean option. Disables fast skipping to the start
#                      of the scan region. May be necessary in case fast
#                      skipping results in inaccuracies.
#                      Default: fast skipping enabled             
#                 - bw <value>:
#                      Black/white discrimination value for lineart scans.
#                      Pixel values below that value are considered black,
#                      others are considered white. Range: 0-255.
#                      Default: 127
#
#		Currently available options for *CCD* type scanners are:
#		  - wait_bank <value>
#		       usecs to wait for a bank change. Positive integer
#		       values are possible. You shouldn't mess with this
#		       parameter.
#		       Default: 700
#		  - bw <value>
#                      Black/white discrimination value for lineart scans.
#                      Pixel values below that value are considered black,
#                      others are considered white. Range: 0-255.
#                      Default: 127
#		  - top <value>
#		       Scanlines to skip to the top area. Positive integer
#		       values are possible. 47 and 56 are values I know of.
#		       Default: 47
#
#
# Example for a LifeTec LT9350 (Mustek 1200CP clone):
#
#    scanner LT9350 0x378 cis1200
#       option top_adjust 0
#       option bw 127
#
# Example for Mustek 6000P
#
#    scanner 6000P 0x378 ccd300
#        option top 56
#
#
# Uncomment/customize to your needs
#
scanner Mustek-600CP * cis600
#scanner Mustek-600CP parport0 cis600
#    option slow_skip
#    option no_epp
# scanner Mustek-600CP 0x378 cis600
# scanner Mustek-1200CP 0x378 cis1200
# scanner Mustek-1200CP+ 0x378 cis1200+
# scanner Mustek-600-IIIEP 0x378 ccd300
#
# auto probing:
#
# scanner mustek-cis600 * cis600
# scanner mustek-cis1200 * cis1200
# scanner mustek-cis1200+ * cis1200+
# scanner mustek-ccd300 * ccd300

nem állítóm hogy eszel megy, de a rági párhuzamos scannerek mustec, v. plustec beállításokkal menni szoktak.

kössz a tippet.
nem igazán akarja venni a lapot, több kombinációt kipróbáltam ebben a fájlban lévő opciókból, "sane-find-scanner -p" futtat, de mindig ezt dobta:

# No Mustek parallel port scanners found. If you expected something
# different, make sure the scanner is correctly connected to your computer
# and you have apropriate access rights.

/dev/parport0 -om van, jog 666, virtuális gépnek odaadva a virtuális windows kezeli.
(természetesen a sane-find-scanner-t nem akkor futtattam, amikor a vm lefoglalta)

~~~~~~~~
deb http://deb.uucp.tk/ wheezy yazzy repack

Ez az LG néven forgalmazott készülék eredetileg egy Primax Colorado 600, és a SANE nem támogatja.
Amikkel érdemes egy kört még futni:

-SANE Plustek backend, hátha kompatibilis a cuccod -legalább részben- pl. a 4800-assal.

-A SANE oldala emleget egy pxscan nevű progit, amivel működhetnek ezek a vasak, a letöltéshez link is van, de sajnos döglött...
(talán Plextor termék lehetett a pxscan?)

-A VueScan szépen támogat Plustek modelleket, egy próbát megér a dolog.

-
"Attempting to crack SpeedLock can damage your sanity"

- VueScan csak annyit mondott h nincs scanner, viszont vegyem meg.

- pxscan-nek megtaláltam pár verzióját wayback machine segítségével (http://wayback.archive.org/web/20140218230105/http://home2.swipnet.se/~…, http://primax.sourceforge.net/download.html, http://zub.fei.tuke.sk/primax/pxscansane/pxscansane_0.41.sane1.2lenny_i…), ilyeneket dobtak:


./pxscansane -v1
pxscan version 0.41.sane1.0
searching for scanner
testing port 0
first run, finding all ports
checking port 0 of 1 ports
opening port 0 /dev/parport0 parport0
closing port 0, no EPP available
freeing parport_list, number of scanned ports 1
no scanner found
unable to find scanner

./primax_scan

:-(
Scanner did not switch to EPP mode.....not compatible?

az lehet baj ha az EPP módra panszkodik?

 
parport_pc.c: Specified parameter parport_init_mode=epp
parport_pc 00:06: activated
parport_pc 00:06: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]

~~~~~~~~
deb http://deb.uucp.hu/ wheezy yazzy repack

nem igazán vágom, miben állnak ezek a módok.
viszont a virtuális gépes win rendesen kezeli a portot. az lehet hogy a kernel modul egyik módban telepíti a parport0 eszközt, de egy programm (jelen esetben a virtuális gép) másik módban használja?

~~~~~~~~
deb http://deb.uucp.hu/ wheezy yazzy repack

Azt hiszem, megtaláltam azt, ami összevág a nálad tapasztalt hibával:
http://primax.sourceforge.net/faq.html

Ezen az oldalon a My scanner is supported, but it is not working! szakaszban azt írják, hogy a driver csak EPP módot támogat, amit a BIOS-ban (vagy a parport driver beállításnál) szigorúan EPP-re kellene állítani. ECP+EPP vagy csak ECP esetén a driver megpróbál módot váltani, de ez nem igazán működőképes még. Némely chipset is bugos lehet ilyen téren, és ilyenkor a Linux parport driver ECP+EPP beállítás esetén nem érzékeli az EPP képességeket. Az esetleges továbbmenő kábelre biggyesztett nyomtató is össze tudja keverni a dolgokat.

-
"Attempting to crack SpeedLock can damage your sanity"