[sane-devel] Result of SANE_DEBUG_UMAX_PP

2007-02-08 Thread adrian
Stef
Thanks for prompt reply and thanks for the encouraging news.  I was not 
looking forward to throwing out a perfectly good scanner!

Results of your suggestions:

[root@localhost adrian]# export -p
declare -x SANE_DEBUG_UMAX_PP=255
declare -x SANE_DEBUG_UMAX_PP_LOW=255

[root@localhost adrian]# export SANE_DEBUG_UMAX_PP=255
[root@localhost adrian]#
[root@localhost adrian]# export SANE_DEBUG_UMAX_PP_LOW=255
[root@localhost adrian]#

[root@localhost adrian]# scanimage -L
[sanei_debug] Setting debug level of umax_pp to 255.
[umax_pp] init: SANE_Auth_Callback not supported (yet) ...
[umax_pp] init: SANE v1.0.18, backend v1.0.604-dev
[umax_pp] init: evaluating option option buffer 2097152
[umax_pp] init: option buffer 2097152
[umax_pp] init: option buffer 2097152
[umax_pp] init: setting global option buffer to 2097152
[umax_pp] init: don't know what to do with `device : /dev/parport0'
[umax_pp] umax_pp_try_ports: trying port `/dev/parport0'
[sanei_debug] Setting debug level of umax_pp_low to 255.
[umax_pp_low] SANE_INB level 0
[umax_pp_low] sanei_umax_pp_InitPort(0x0,/dev/parport0)
[umax_pp_low] parport modes: 47
[umax_pp_low] parport modes:PARPORT_MODE_EPP

[umax_pp_low] umax_pp: ppdev couldn't negociate mode IEEE1284_MODE_EPP 
for '/dev/parport0' (ignored)
[umax_pp_low] umax_pp: mode set to PARPORT_MODE_EPP for '/dev/parport0'
[umax_pp_low] Using /dev/parport0 ...
[umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
[umax_pp_low] No scanner detected by 'ringScanner(2,0)'...
[umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
[umax_pp_low] No scanner detected by 'ringScanner(5,0)'...
[umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
[umax_pp_low] No scanner detected by 'ringScanner(5,1)'...
[umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
[umax_pp_low] No scanner detected by 'ringScanner(5,1)'...
[umax_pp_low] No 1220P/2000P scanner detected by 'ringScanner()'...
[umax_pp_low] ringScanner passed...
[umax_pp_low] sendCommand(0x30) passed ... (umax_pp_low.c:7367)
[umax_pp_low] sendCommand(0x00) passed... (umax_pp_low.c:7374)
[umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
[umax_pp_low] testVersion(0) (umax_pp_low.c:7378) failed ...
[umax_pp_low] testVersion(0) passed...
[umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
[umax_pp_low] testVersion(1) failed (expected) ... (umax_pp_low.c:7385)
[umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
[umax_pp_low] testVersion(0) (umax_pp_low.c:7394) failed ...
[umax_pp_low] testVersion(0) passed...
[umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
[umax_pp_low] testVersion(1) failed (expected) ... (umax_pp_low.c:7401)
[umax_pp_low] sendCommand(0x40) passed...
[umax_pp_low] sendCommand(0xE0) passed...
[umax_pp_low] ClearRegister(0) passed...
[umax_pp_low] SPPResetLPT() passed...
[umax_pp_low] Found 0x77 expected 0xC7 (umax_pp_low.c:7474)
[umax_pp_low] Trying 610p (umax_pp_low.c:7483)
[umax_pp_low] sync610p failed (got 0x78 expected 0x38)! (umax_pp_low.c:3733)
[umax_pp_low] sync610p failed! Scanner not present or powered off ...  
(umax_pp_low.c:6363)
[umax_pp_low] initTransport610p() failed (umax_pp_low.c:6673)
[umax_pp] attach: failed to probe scanner on /dev/parport0
[umax_pp] attach: couldn't attach to `/dev/parport0' (Error during device I/O)
[umax_pp] umax_pp(v1.0.604-dev): line 254: debug exception
[umax_pp] init: couldn't attach to port `/dev/parport0'
[umax_pp] init: safe-auto attach failed ![umax_pp] init: don't know what to do 
with `astra 1220'
[umax_pp] get_devices
[umax_pp] unused arg: local_only = 0

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[umax_pp] sane_exit: (...)

Not sure what to make of the above . . . . 
Does it mean that parport0 is the incorrect address?
Should I be using
 port 0x378
or
 port 0x38

Is 
 safe-port auto
more likely to work?

What do you read?

Adrian


[sane-devel] Result of SANE_DEBUG_UMAX_PP

2007-02-08 Thread Stéphane VOLTZ
Le mercredi 7 f?vrier 2007, adrian a ?crit?:
 Stef
 Thanks for prompt reply and thanks for the encouraging news.  I was not
 looking forward to throwing out a perfectly good scanner!

 Results of your suggestions:

 [root@localhost adrian]# export -p
 declare -x SANE_DEBUG_UMAX_PP=255
 declare -x SANE_DEBUG_UMAX_PP_LOW=255

 [root@localhost adrian]# export SANE_DEBUG_UMAX_PP=255
 [root@localhost adrian]#
 [root@localhost adrian]# export SANE_DEBUG_UMAX_PP_LOW=255
 [root@localhost adrian]#

 [root@localhost adrian]# scanimage -L
 [sanei_debug] Setting debug level of umax_pp to 255.
 [umax_pp] init: SANE_Auth_Callback not supported (yet) ...
 [umax_pp] init: SANE v1.0.18, backend v1.0.604-dev
 [umax_pp] init: evaluating option option buffer 2097152
 [umax_pp] init: option buffer 2097152
 [umax_pp] init: option buffer 2097152
 [umax_pp] init: setting global option buffer to 2097152
 [umax_pp] init: don't know what to do with `device : /dev/parport0'
 [umax_pp] umax_pp_try_ports: trying port `/dev/parport0'
 [sanei_debug] Setting debug level of umax_pp_low to 255.
 [umax_pp_low] SANE_INB level 0
 [umax_pp_low] sanei_umax_pp_InitPort(0x0,/dev/parport0)
 [umax_pp_low] parport modes: 47
 [umax_pp_low] parport modes:PARPORT_MODE_EPP

 [umax_pp_low] umax_pp: ppdev couldn't negociate mode IEEE1284_MODE_EPP
 for '/dev/parport0' (ignored)
 [umax_pp_low] umax_pp: mode set to PARPORT_MODE_EPP for '/dev/parport0'
 [umax_pp_low] Using /dev/parport0 ...
 [umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
 [umax_pp_low] No scanner detected by 'ringScanner(2,0)'...
 [umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
 [umax_pp_low] No scanner detected by 'ringScanner(5,0)'...
 [umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
 [umax_pp_low] No scanner detected by 'ringScanner(5,1)'...
 [umax_pp_low] status 120 doesn't match! umax_pp_low.c:5091
 [umax_pp_low] No scanner detected by 'ringScanner(5,1)'...
 [umax_pp_low] No 1220P/2000P scanner detected by 'ringScanner()'...
 [umax_pp_low] ringScanner passed...
 [umax_pp_low] sendCommand(0x30) passed ... (umax_pp_low.c:7367)
 [umax_pp_low] sendCommand(0x00) passed... (umax_pp_low.c:7374)
 [umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
 [umax_pp_low] testVersion(0) (umax_pp_low.c:7378) failed ...
 [umax_pp_low] testVersion(0) passed...
 [umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
 [umax_pp_low] testVersion(1) failed (expected) ... (umax_pp_low.c:7385)
 [umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
 [umax_pp_low] testVersion(0) (umax_pp_low.c:7394) failed ...
 [umax_pp_low] testVersion(0) passed...
 [umax_pp_low] status 126 doesn't match! umax_pp_low.c:5257
 [umax_pp_low] testVersion(1) failed (expected) ... (umax_pp_low.c:7401)
 [umax_pp_low] sendCommand(0x40) passed...
 [umax_pp_low] sendCommand(0xE0) passed...
 [umax_pp_low] ClearRegister(0) passed...
 [umax_pp_low] SPPResetLPT() passed...
 [umax_pp_low] Found 0x77 expected 0xC7 (umax_pp_low.c:7474)
 [umax_pp_low] Trying 610p (umax_pp_low.c:7483)
 [umax_pp_low] sync610p failed (got 0x78 expected 0x38)!
 (umax_pp_low.c:3733) [umax_pp_low] sync610p failed! Scanner not present or
 powered off ... (umax_pp_low.c:6363)
 [umax_pp_low] initTransport610p() failed (umax_pp_low.c:6673)
 [umax_pp] attach: failed to probe scanner on /dev/parport0
 [umax_pp] attach: couldn't attach to `/dev/parport0' (Error during device
 I/O) [umax_pp] umax_pp(v1.0.604-dev): line 254: debug exception
 [umax_pp] init: couldn't attach to port `/dev/parport0'
 [umax_pp] init: safe-auto attach failed ![umax_pp] init: don't know what to
 do with `astra 1220'
 [umax_pp] get_devices
 [umax_pp] unused arg: local_only = 0

 No scanners were identified. If you were expecting something different,
 check that the scanner is plugged in, turned on and detected by the
 sane-find-scanner tool (if appropriate). Please read the documentation
 which came with this software (README, FAQ, manpages).
 [umax_pp] sane_exit: (...)

 Not sure what to make of the above . . . .
 Does it mean that parport0 is the incorrect address?
 Should I be using
  port 0x378
 or
  port 0x38

 Is
  safe-port auto
 more likely to work?

 What do you read?

 Adrian

Hello,

I think that the umax_pp.conf has some unexpected keyword in it (such 
as 'device'), hence the 'don't know what to do with ...' messages. You only 
need these 2 lines in it:

option buffer 2097152
port safe-auto

The log shows that parport communication is non-working.

From your previous mail, I think your parallel port is OK:

parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
ppdev: user-space parallel port driver:

However, double check in BIOS that the parallel port settings are 
really 
these ones. You may force correct detection by giving the settings to the 
kernel module:
options parport_pc io=0x378 irq=7 dma=none

An other option would be