plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: Re: New Parallelport SANE-Backend Plustek_PP
From: Florent Capdeville
Date: Wed, 05 Nov 2003 20:44:06 +0100

"Jaeger, Gerhard" <gerhard@gjaeger.de> writes:

> Hi list,

Hi Gerhard!


[...]
> I started and in the end finished writing a SANE Backend for the
> Plustek parallelport devices.
[...]

> If you'd like to test, please download the latest sane-backend snapshot @
> http://www.sane-project.org/snapshots/
> It is recommended, that libieee1284 is installed on your box.

I have built it (with the Makefile.module in doc) and it loads:

Here is the log:

 *********************************************
 pt_drv: init_module()
 pt_drv : driver version 0.44-11
                            ^^ Really? Former was 0.46-1
 ProcFsInitialize()
 ptdrvInit(0)
 Init settings done
 ScanData = 0xc40c8000
 Using fast I/O
 Requested port at 0x378
 Requested port (0x378) found
 Port mode reported: (0x0047)
 Port for device 0 registered
 ptdrvOpen(port=0x378)
 Try to claim the parport
 parport-modi: SPP PS/2 EPP EPP(ECP) PS/2(ECP)
 Using EPP-mode
 Starting Scanner-Autodetection
 ************ DETECTP48xx ************
 ModelSet4800()
 modelInitPageSettings()
 A4 set
 ModelSet4800() done.
 P48xxInitAsic()
 DacInitialize()
 ImageInitialize()
 IOFuncInitialize()
 IOInitialize()
 * using readfunction >fnEPPRead<
 MotorInitialize()
 Dataport = 0x0378
 Ctrlport = 0x037a
 ResetPort()
 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()
 ModelSet9360()
 modelInitPageSettings()
 A4 set
 ModelSet9630() done.
 ModelSet12000() done.
 It seems we have a 12000P/96000P
 DacInitialize()
 ImageInitialize()
 IOFuncInitialize()
 IOInitialize()
 * using readfunction >fnEPPRead<
 MotorInitialize()
 Putting Scanner (ASIC 96001/3) into Idle-Mode
 detectScannerConnection() returns 0.
 p48xxSetupScannerVariables()
 No ASIC 97003 found.
 Status-Register = 0xA7
 Scanner has Full/Half Stepping drive
 CCD is SONY Type
 *** setupBuffers ***
 Driverbuf(170780 bytes) needed !
 pColorRunTab = 0xc8cf252c - 0xc8cf7b1c
 *** DETECTION DONE, result: 0 ***
 Switching lamp 0 on.
 ptdrvClose()
 *** cleanup buffers ***
 MiscRestorePort()
 - no need to restore portmode !
 Releasing parport
 MiscGetModelName - id = 13
 pt_drv0: 12000P/96000P found on port 0x0378
 pt_drv0: Lamp-Timer set to 180 seconds.
 pt_drv0: WarmUp period set to 30 seconds.
 pt_drv0: Lamp switch-off on driver unload.
 Lamp-Timer started!
 pt_drv : init done, 1 device(s) found
 ---------------------------------------------

Yes, I still have my good old 12000P ;)


Unfortunately, I'm unable to scan anything at the moment:

pt_drv_open()
ioctl(_PTDRV_OPEN_DEVICE)
Version mismatch: Backend=0x0103(0x0104)ioctl(_PTDRV_OPEN_DEVICE)
Version mismatch: Backend=0x0102(0x0104)pt_drv_close()
ptdrvClose()
MiscRestorePort()
- no need to restore portmode !

> The new backend is called plustek_pp. 
> If you have some time to test, any comments are always welcome.
>
> Ciao,

plustek@linuxhacker.org