plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: Re: problems with pt12
From: Michael Hanke
Date: 10 Apr 2001 11:35:09 +0200

> Hi, it seems, that this is a common problem to the pt12 part of the driver!
> Sorry! I will check this... Gerhard On Mit, 28 Mär 2001, Matthias Lieber wrote:
> > hi
> >
> > i installed plustek-sane-0_38_24 to make my opticpro pt12 work.
> > it works, but with higher resolutions or bigger pictures i get an error:
> >
> > /-----------
> > mali_@AMD-400:~/Daten/Bilder > scanimage --format pnm -x 90 -y 123
> > --resolution 150 > scan.pnm
> > \-----------
> >
> > resolution 150 dpi --> works
> >
> > /-----------
> > mali_@AMD-400:~/Daten/Bilder > scanimage --format pnm -x 90 -y 123
> --resolution 250 > scan.pnm
> scanimage: sane_read: Error during device I/O

Hi,

I'm experiencing similiar problems with an OP96000P. 
--mode=gray,halftone,binary is working.
--mode=color isn't . Except from some special cases

Anything higher than resolution 125 doesn't work:

export SANE_DEBUG_PLUSTEK=12
scanimage --mode color --resolution 150 -x 215 -y 297 -v --format=pnm > /tmp/out.pnm
2>scan.log

will exit with an error message.

I'll attach scan.log to the end of this message.

I checked the hardware with win95, which seems to work.

My setup is the following:

linux-2.4.3-pre4
sane-1.0.4
plustek-sane-0_38_24  (I also tried 0_37_23)


I tried preinstalled sane104.rpm, also. I compiled sane1.0.4 together
with plustek-sane and plustek_driver. Everything could be compiled
with no errors and the driver could be loaded with no errors.

bash-2.04# cat /proc/pt_drv/info 
Plustek Flatbed Scanner Driver version 0.38-25
Devices      : 1
IOCTL-Version: 0x00000101

bash-2.04# cat /proc/pt_drv/device0/info 
Model       : 12000P/96000P
Portaddress : 0x378
Portmode    : SPP
Buttons     : 0
Warmuptime  : 30s
Lamp timeout: 1200s
mov-switch  : 0
I/O-delay   : 0
CCD-Type    : SONY Type
TPA         : no


[sanei_debug] Setting debug level of plustek to 12.
[plustek] sane_init: sane-backends 1.0.4
[plustek] sane_init, ># Plustek-SANE Backend configuration file
<
[plustek] sane_init, >#
<
[plustek] sane_init, ># for multiple devices use
<
[plustek] sane_init, ># /dev/pt_drv0
<
[plustek] sane_init, ># /dev/pt_drv1
<
[plustek] sane_init, ># /dev/pt_drv2
<
[plustek] sane_init, >#
<
[plustek] sane_init, >
<
[plustek] sane_init, >/dev/pt_drv
<
[plustek] sane_init, >/dev/pt_drv<
[plustek] attach_one: >/dev/pt_drv<
[plustek] attach (/dev/pt_drv, (nil))
[plustek] drvopen()
[plustek] Scanner information:
[plustek] Model  : 12000P/96000P
[plustek] Asic   : 0x10
[plustek] Flags  : 0x00000006
[plustek] Version: 0x00000026
[plustek] drvclose()
[plustek] attach: model = >12000P/96000P<
[plustek] sane_get_devices (0xbfffee70, 0)
[plustek] sane_open - /dev/pt_drv
[plustek] sane_start
[plustek] drvopen()
[plustek] bright 0 contrast 0
[plustek] dwflag = 0xc00 dwBytesPerLine = 3807, dwLinesPerScan = 1753
[plustek] TIME START
[plustek] sane_start done
scanimage: scanning image of size 1269x1753 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
[plustek] reader process...
[plustek] reader_process started
[plustek] reader_process:starting to READ data (6673671 bytes)
[plustek] buf = 0x4034e008
[plustek] read failed, status = -9009, errno 2
[plustek] reader process done, status = 9
[plustek] Child is down (signal=17)
[plustek] drvclose()
[plustek] TIME END 1: 52s
[plustek] res=30913, status=2304
[plustek] close_pipe
scanimage: min/max graylevel value = 255/0
scanimage: sane_read: Error during device I/O
[plustek] sane_close
[plustek] sane_exit




I wonder if the 24 bits/pixel mode conflicts with
the scanners 30bit capability, but this
might just be my misunderstanding something.

I found that
scanimage --mode color --resolution 300 -x 215 -y 2 -t X -v --format=pnm >> /tmp/out.pnm
with X=0,294,2 works ... but no way with --resolution 600 .

Thanks for looking into this
-- 
Michael                                            _o
                                                  /_[;    __/
                                                 _]/(_) _/   
PGP-Key 0x7E1231ED                        _____ (_) ___/     




plustek@linuxhacker.org