plustek@linuxhacker.org

plustek@linuxhacker.org


Subject: RE: 4830 Problem
From: Robert Fendt
Date: Wed, 05 Mar 2003 17:25:22 -0500

Hi,

it's me again. Ok, I recompiled the driver with debug enabled. Here's the output:



*********************************************

pt_drv: init_module()

pt_drv : driver version 0.42-10

ProcFsInitialize()

ptdrvInit(0)

*** cleanup buffers ***
MiscRestorePort()
- no need to restore portmode !
Releasing parport
MiscGetModelName - id = 5
pt_drv0: 4800P found on port 0x0378
pt_drv0: Lamp-Timer set to 180 seconds.
pt_drv0: WarmUp period set to 15 seconds.
pt_drv0: Lamp switch-off on driver unload.
Lamp-Timer started!
pt_drv : init done, 1 device(s) found
---------------------------------------------
pt_drv_open()
ioctl(_PTDRV_OPEN_DEVICE)
Lamp-Timer stopped!
Init settings done
Using fast I/O
ptdrvOpen(port=0x378)
Try to claim the parport
parport-modi: SPP PS/2 EPP
Using EPP-mode
Starting Scanner-detection (ASIC 96001/3)
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitialize()
MotorInitialize()
Dataport = 0x0378
Ctrlport = 0x037a
Test 0x55
Test 0xAA
Compare data=0x7f and status=0x7e, port=0x378
p48xxReadWriteTest()
Can't find your model, asic = 0x77
detectScannerConnection() returns -9031.
*** DETECTION DONE, result: -9031 ***
pt_drv_open()
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
Using fast I/O
ptdrvOpen(port=0xffff)
Try to claim the parport
parport-modi: SPP PS/2 EPP
Using EPP-mode
Starting Scanner-detection (ASIC 96001/3)
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitiMotorInitialize()
Dataport = 0xffff
Ctrlport = 0x0001
detectScannerConnection() returns -9021.
*** DETECTION DONE, result: -9021 ***
pt_drv_open()
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
Using fast I/O
ptdrvOpen(port=0xffff)
Try to claim the parport
parport-modi: SPP PS/2 EPP
Using EPP-mode
Starting Scanner-detection (ASIC 96001/3)
************ DETECTP48xx ************
ModelSet4800()
modelInitPageSettings()
A4 set
ModelSet4800() done.
P48xxInitAsic()
DacInitialize()
ImageInitialize()
IOFuncInitialize()
IOInitialize()
MotorInitialize()
Dataport = 0xffff
Ctrlport = 0x0001
detectScannerConnection() returns -9021.
*** DETECTION DONE, result: -9021 ***
pt_drv_close()
ptdrvClose()
MiscRestorePort()
- no need to restore portmode !
Releasing parport
Init settings done

ScanData = 0xc6ce0000

Using fast I/O

Requested port at 0x378

parport0: PC-style at 0x378 [SPP,PS2,EPP]

Requested port (0x378) found

Port mode reported: (0x0007)

Port for device 0 registered

ptdrvOpen(port=0x378)

Try to claim the parport

parport-modi: SPP PS/2 EPP

Using EPP-mode

Starting Scanner-Autodetection

************ DETECTP48xx ************

ModelSet4800()

modelInitPageSettings()

A4 set

ModelSet4800() done.

P48xxInitAsic()

DacInitialize()

ImageInitialize()

IOFuncInitialize()

IOInitialize()

MotorInitialize()

Dataport = 0x0378

Ctrlport = 0x037a

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()

Bank not present, error at pos 135 (512)

found 2048 bytes of memory

tmpByte[0x18] = 0x77

tmpByte = 0x77, cntr = 65, AsicId = 0x10

Scanner is not a 9630 or above

Looks like a 600!

ModelSet600()

ModelSet4830()

modelInitPageSettings()

A4 set

ModelSet4830() done.

Model Override --> OpticPro4800

ModelSet600() done.

DacInitialize()

ImageInitialize()

IOFuncInitialize()

IOInitialize()

MotorInitialize()

Putting Scanner (ASIC 96001/3) into Idle-Mode

detectScannerConnection() returns 0.

p48xxSetupScannerVariables()

No ASIC 97003 found.

Status-Register = 0x77

Scanner has Micro Stepping drive

CCD is NEC/TOSHIBA Type

*** setupBuffers ***

Driverbuf(83240 bytes) needed !

pColorRunTab = 0xc88a7200 - 0xc88a9528

*** DETECTION DONE, result: 0 ***

Switching lamp 0 on.

ptdrvClose()


This time, I changed 'mov=0' to 'mov=6' because all the time a OP600 / 6000P gets detected.
Still, sanning fails with 

scanimage: open of device plustek:/dev/pt_drv0 failed: Error during device I/O

Thanks for any help,
Robert

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp


Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

plustek@linuxhacker.org