plustek: Thread: Pb with 12000P and V0.35


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Pb with 12000P and V0.35
From: Florent Capdeville ####@####.####
Date: 26 May 2000 21:48:51 -0000
Message-Id: <m3ya4xq90r.fsf@pallas.flo.fr>

Hello everybody!

Here is the output I got for the command:

scanimage  -d plustek > output.pnm

[plustek] ioctl _PTDRV_PUT_SCANNER_MODEL failed
scanimage: sane_start: Error during device I/O
[plustek] ioctl _PTDRV_STOP_SCAN failed

and the log:

 pt_drv: init_module() 
 ptdrvInit(0) 
 Init settings done 
 ScanData = 0xc3c7c000 
 parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP] 
 parport1: PC-style at 0x278 [SPP] 
 parport0: no IEEE-1284 device present. 
 parport1: no IEEE-1284 device present. 
 Requested port (0x378) found 
 Port mode reported: (0x0007) 
 Port registered 
 ptdrvOpen(port=0x378) 
 Try to claim the parport 
 Using EPP-mode 
 Starting Scanner-Autodetection 
 ************ DETECTP48xx ************ 
 ModelSet4800() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4800() done. 
 P48xxInitAsic() 
 DacInitialize() 
 ImageInitialize() 
 IOInitialize() 
 MotorInitialize() 
 Test 0x55 
 Test 0xAA 
 Compare data=0x7e and status=0xe, port=0x378 
 p48xxReadWriteTest() 
 Found a 96003 ASIC at Reg 0x13 
 ModelSet4830() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4830() done. 
 p48xxDoTest() 
 found 131072 bytes of memory 
 tmpByte[0x18] = 0x02 
 tmpByte = 0x02, cntr = 128, AsicId = 0x10 
 ModelSet12000() done. 
 ModelSet9360() 
 modelInitPageSettings() 
 A4 set 
 ModelSet9630() done. 
 ModelSet12000() done. 
 It seems we have a 12000P/96000P 
 detectScannerConnection() returns 0. 
 p48xxSetupScannerVariables() 
 Status-Register = 0xA7 
 Scanner has Full/Half Stepping drive 
 CCD is SONY Type 
 *** setupBuffers *** 
 Driverbuf(170780 bytes) needed ! 
 pColorRunTab = 0xc40ee52c 
 Switching lamp 0 on. 
 ptdrvClose() 
 *** cleanup buffers *** 
 MiscRestorePort() 
 - no need to restore portmode ! 
 Releasing parport 
 pt_drv: driver version = 0.35, device 0 ready 
 pt_drv: 12000P/96000P found on port 0x0378 
 pt_drv: Lamp-Timer set to 180 seconds. 
 pt_drv: WarmUp period set to 30 seconds. 
 pt_drv: Lamp untouched on driver unload. 
 pt_drv: init done - OK 
 --------------------------------------------- 
 pt_drv_open() 
 ioctl(_PTDRV_OPEN_DEVICE) 
 Lamp-Timer stopped ! 
 Init settings done 
 ptdrvOpen(port=0x378) 
 Try to claim the parport 
 Using EPP-mode 
 Starting Scanner-detection for P48xx 
 ************ DETECTP48xx ************ 
 ModelSet4800() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4800() done. 
 P48xxInitAsic() 
 DacInitialize() 
 ImageInitialize() 
 IOInitialize() 
 MotorInitialize() 
 Test 0x55 
 Test 0xAA 
 Compare data=0x7e and status=0xe, port=0x378 
 p48xxReadWriteTest() 
 Found a 96003 ASIC at Reg 0x13 
 ModelSet4830() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4830() done. 
 p48xxDoTest() 
 found 131072 bytes of memory 
 tmpByte[0x18] = 0x02 
 tmpByte = 0x02, cntr = 128, AsicId = 0x10 
 ModelSet12000() done. 
 ModelSet9360() 
 modelInitPageSettings() 
 A4 set 
 ModelSet9630() done. 
 ModelSet12000() done. 
 It seems we have a 12000P/96000P 
 detectScannerConnection() returns 0. 
 p48xxSetupScannerVariables() 
 Status-Register = 0xA7 
 Scanner has Full/Half Stepping drive 
 CCD is SONY Type 
 *** setupBuffers *** 
 Driverbuf(170780 bytes) needed ! 
 pColorRunTab = 0xc40ee52c 
 ioctl(_PTDRV_GET_CAPABILITES) 
 ioctl(_PTDRV_GET_LENSINFO) 
 ioctl(_PTDRV_STOP_SCAN) 
 Waiting for Sensor to be back in position 
 - done ! 
 ioctl(_PTDRV_CLOSE_DEVICE) 
 *** cleanup buffers *** 
 Putting Scanner (ASIC 96001/3) into Idle-Mode 
 pt_drv_close() 
 ptdrvClose() 
 MiscRestorePort() 
 - no need to restore portmode ! 
 Releasing parport 
 pt_drv_open() 
 ioctl(_PTDRV_OPEN_DEVICE) 
 Lamp-Timer stopped ! 
 Init settings done 
 ptdrvOpen(port=0x378) 
 Try to claim the parport 
 Using EPP-mode 
 Starting Scanner-detection for P48xx 
 ************ DETECTP48xx ************ 
 ModelSet4800() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4800() done. 
 P48xxInitAsic() 
 DacInitialize() 
 ImageInitialize() 
 IOInitialize() 
 MotorInitialize() 
 Test 0x55 
 Test 0xAA 
 Compare data=0x7e and status=0xe, port=0x378 
 p48xxReadWriteTest() 
 Found a 96003 ASIC at Reg 0x13 
 ModelSet4830() 
 modelInitPageSettings() 
 A4 set 
 ModelSet4830() done. 
 p48xxDoTest() 
 found 131072 bytes of memory 
 tmpByte[0x18] = 0x02 
 tmpByte = 0x02, cntr = 128, AsicId = 0x10 
 ModelSet12000() done. 
 ModelSet9360() 
 modelInitPageSettings() 
 A4 set 
 ModelSet9630() done. 
 ModelSet12000() done. 
 It seems we have a 12000P/96000P 
 detectScannerConnection() returns 0. 
 p48xxSetupScannerVariables() 
 Status-Register = 0xA7 
 Scanner has Full/Half Stepping drive 
 CCD is SONY Type 
 *** setupBuffers *** 
 Driverbuf(170780 bytes) needed ! 
 pColorRunTab = 0xc40ee52c 
 ioctl(_PTDRV_GET_CAPABILITES) 
 ioctl(_PTDRV_GET_LENSINFO) 
 ioctl(_PTDRV_PUT_IMAGEINFO) 
 imageP96GetInfo() 
 xyPhyDpi.x = 50, xyPhyDpi.y = 50 
 crArea.x = 0, crArea.y = 0 
 crArea.cx = 1488, crArea.cy = 873 
 xyDpi.x = 50, xyDpi.y = 50 
 AppLinesPerArea    = 145 
 AppPixelsPerLine   = 248 
 AppPhyBytesPerLine = 744 
 AppBytesPerLine    = 744 
 AsicPixelsPerPlane = 248 
 AsicBytesPerPlane  = 248 
 AsicBytesPerLine   = 248 
 Physical Bytes     = 248 
 dwOffsetX = 0, dwOffsetY = 0 
 pt_drv_close() 
 ptdrvClose() 
 *** cleanup buffers *** 
 MiscRestorePort() 
 - no need to restore portmode ! 
 Releasing parport

PS: I'm not familiar with mailing-lists, so don't hesitate to tell me
if I'm wrong!
Subject: Re: Pb with 12000P and V0.35
From: ####@####.####
Date: 26 May 2000 22:10:24 -0000
Message-Id: <392EF670.E411DCB1@bellsouth.net>

Florent Capdeville wrote:
> 
> Hello everybody!
> 
> Here is the output I got for the command:
> 
> scanimage  -d plustek > output.pnm
> 
> [plustek] ioctl _PTDRV_PUT_SCANNER_MODEL failed
> scanimage: sane_start: Error during device I/O
> [plustek] ioctl _PTDRV_STOP_SCAN failed
> 
> and the log:
> 
>  pt_drv: init_module()
>  ptdrvInit(0)
>  Init settings done
>  ScanData = 0xc3c7c000
>  parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
>  parport1: PC-style at 0x278 [SPP]
>  parport0: no IEEE-1284 device present.
>  parport1: no IEEE-1284 device present.
>  Requested port (0x378) found
>  Port mode reported: (0x0007)
>  Port registered
>  ptdrvOpen(port=0x378)
>  Try to claim the parport
>  Using EPP-mode
>  Starting Scanner-Autodetection
>  ************ DETECTP48xx ************
>  ModelSet4800()
>  modelInitPageSettings()
>  A4 set
>  ModelSet4800() done.
>  P48xxInitAsic()
>  DacInitialize()
>  ImageInitialize()
>  IOInitialize()
>  MotorInitialize()
>  Test 0x55
>  Test 0xAA
>  Compare data=0x7e and status=0xe, port=0x378
>  p48xxReadWriteTest()
>  Found a 96003 ASIC at Reg 0x13
>  ModelSet4830()
>  modelInitPageSettings()
>  A4 set
>  ModelSet4830() done.
>  p48xxDoTest()
>  found 131072 bytes of memory
>  tmpByte[0x18] = 0x02
>  tmpByte = 0x02, cntr = 128, AsicId = 0x10
>  ModelSet12000() done.
>  ModelSet9360()
>  modelInitPageSettings()
>  A4 set
>  ModelSet9630() done.
>  ModelSet12000() done.
>  It seems we have a 12000P/96000P
>  detectScannerConnection() returns 0.
>  p48xxSetupScannerVariables()


The scanner appears to be found. I had the same problem when I
compiled 0.35. I had to recompile sane. I had been using the
--disable-shared flag but I seem to get better results when I
leave it out. Here is what I did on several of my computers and it
worked with no problems (some of these steps may not be necessary
but they didn't seem to hurt) 

1. Remove all previous plustek driver files (i.e., rm -f -r
plustek_driver/ in sane-xx/backend (I use sane-1.0.2) and the few
plustek files in backend also. Then tar zxf plustek 0.35.tgz from
backend

2. From the sane-xx directory do  
          CFLAGS="-g -O -Wall" ./configure --prefix=/usr/local  
This assumes scanimage is in /usr/local/bin; check this before
doing this step. If scanimage is in /usr/bin then prefix=/usr.

3. Go back into the plustek_driver directory and do make, make
install, make load and insmod pt_drv.  Check the output to be sure
the scanner is found.

4. Back up to sane-xx and do make and make install. Then do
scanimage -L plustek or .. -d plustek > out.pnm. This should now
not give any error messages.

	Kevin
Subject: Re: Pb with 12000P and V0.35
From: Florent Capdeville ####@####.####
Date: 27 May 2000 16:09:33 -0000
Message-Id: <m3bt1sq8o6.fsf@pallas.flo.fr>

####@####.#### writes:

> Florent Capdeville wrote:
> > 
> > Hello everybody!
> > 
> > Here is the output I got for the command:
> > 
> > scanimage  -d plustek > output.pnm
> > 
> > [plustek] ioctl _PTDRV_PUT_SCANNER_MODEL failed
> > scanimage: sane_start: Error during device I/O
> > [plustek] ioctl _PTDRV_STOP_SCAN failed
> > 

[...]

> The scanner appears to be found. I had the same problem when I
> compiled 0.35. I had to recompile sane. I had been using the
> --disable-shared flag but I seem to get better results when I
> leave it out. Here is what I did on several of my computers and it
> worked with no problems (some of these steps may not be necessary
> but they didn't seem to hurt) 

[...]
It's OK now!

I have re-recompiled and it works!
the only thing I made different was to leave out --disable-shared

Thanks 

Subject: Re: Pb with 12000P and V0.35
From: "Jaeger, Gerhard" ####@####.####
Date: 29 May 2000 07:24:10 -0000
Message-Id: <00052909243008.13780@dagobert>

On Fre, 26 Mai 2000, you wrote:
> 
> scanimage  -d plustek > output.pnm
> 
> [plustek] ioctl _PTDRV_PUT_SCANNER_MODEL failed
> scanimage: sane_start: Error during device I/O
> [plustek] ioctl _PTDRV_STOP_SCAN failed
> 
Hi Florent,

I changed the ioctl interface of the driver in Version 0.35
and that's why the backend produces this error. 
You simply have to recompile the backend. (call
make in the SANE source directory and make install
afterwards - you have to be root to do that !)

In general: When getting a new driver release, you
should remove the old stuff completely (or move it
to another private directory out of the scope of
SANE). 

Gerhard
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.