Canon N640P EX & Xsane don't work
Hi there,
I have one of these Canon N640P parallel port scanners which I cant get to work in xsane or kooka.
All sane tests pass ok using the test backend.
I have made the changes to canon_pp as in the instructions, and made sure that users have permissions on /dev/parport0 without success.
Even loggin in as root will not get the sucker to work.
Here is the ouput of scanimage -L:
john@yos ~ $ export SANE_DEBUG_CANON_PP=100
john@yos ~ $ scanimage -L
[sanei_debug] Setting debug level of canon_pp to 100.
[canon_pp] >> sane_init(0xbfff6690, 0x8049350): sane-backends 1.0.14-cvs
[canon_pp] sane_init: >> ieee1284_find_ports
[canon_pp] sane_init: 0 << ieee1284_find_ports
[canon_pp] sane_init: 1 parallel port(s) found.
[canon_pp] sane_init: port parport0
[canon_pp] >> init_device
[canon_pp] init_device: [configuring options]
[canon_pp] init_device: configuring opt: num_options
[canon_pp] init_device: configuring opt: resolution
[canon_pp] init_device: configuring opt: colour mode
[canon_pp] init_device: configuring opt: bit depth
[canon_pp] init_device: configuring opt: tl-x
[canon_pp] init_device: configuring opt: tl-y
[canon_pp] init_device: configuring opt: br-x
[canon_pp] init_device: configuring opt: br-y
[canon_pp] init_device: configuring opt: calibrate
[canon_pp] init_device: done opts
[canon_pp] << init_device
[canon_pp] sane_init: ># Define which port to use if one isn't specified - you should only have<
[canon_pp] sane_init: ># one of these lines!<
[canon_pp] sane_init: ># This is the default port to be used - others will be detected<
[canon_pp] sane_init: >ieee1284 parport0<
[canon_pp] sane_init: Successfully parsed default scanner.
[canon_pp] sane_init: ><
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># Define the location of our pixel weight file, can begin with ~/ if needed.<
[canon_pp] sane_init: ># You can have as many of these as you like - lines withports that don't exist<
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># will be ignored.<
[canon_pp] sane_init: >#<
[canon_pp] sane_init: ># Parameters are:<
[canon_pp] sane_init: ># calibrate /path/to/calibration-file port-name<
[canon_pp] sane_init: >#<
[canon_pp] sane_init: ># The format of port-name is dependant on your OS version.<
[canon_pp] sane_init: >#<
[canon_pp] sane_init: ># If a file isn't speficied, the default name will be<
[canon_pp] sane_init: ># ~/.sane/canon_pp-calibration-[port-name]<
[canon_pp] sane_init: ><
[canon_pp] sane_init: >calibrate ~/.sane/canon_pp-calibration-pp0 parport0<
[canon_pp] sane_init: calibrate line, calibrate ~/.sane/canon_pp-calibration-pp0 parport0
[canon_pp] sane_init: Finding scanner on port 'parport0'
[canon_pp] sane_init: Found!
[canon_pp] sane_init: Parsed cal, for port 'parport0', weight file is '~/.sane/canon_pp-calibration-pp0'.
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># calibrate /etc/sane/my_calibration 378<
[canon_pp] sane_init: ><
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># Enable the next line if you're having trouble with ECPmode such as I/O<
[canon_pp] sane_init: ># errors. Nibble mode is slower, but more reliable.<
[canon_pp] sane_init: ><
[canon_pp] sane_init: >#force_nibble<
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># Set a default initialisation mode for each port. Valid modes are:<
[canon_pp] sane_init: ># AUTO (attempts to automatically detect by trying both methods)<
[canon_pp] sane_init: ># FB620P (10101010 style.. also works for FB320P)<
[canon_pp] sane_init: ># FB630P (11001100 style.. also works for FB330P, N340P,N640P)<
[canon_pp] sane_init: ><
[canon_pp] sane_init: >init_mode AUTO parport0<
[canon_pp] sane_init: Parsed init.
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># init_mode FB620P parport0<
[canon_pp] sane_init: >#init_mode FB630P parport0<
[canon_pp] sane_init: >#usb<
[canon_pp] sane_init: ><
[canon_pp] detect_mode: Opening port parport0
[canon_pp] detect_mode: Claiming port.
[canon_pp] detect_mode: Port supports ECP-S.
[canon_pp] detect_mode: Port supports interrupts.
[canon_pp] detect_mode: Using ECP-S Mode
[canon_pp] sane_init: >> initialise
[canon_pp] Scanner not ready (0xb). Attempting to reset...
[canon_pp] Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Timeout: Scanner wakeup reply 1 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Timeout: Scanner wakeup reply 2 (0x03 in 0x1f) - Status = 0x1f
[canon_pp] Had to reset scanner, waiting for the head to get back.
[canon_pp] initialise: >> scanner_init
[canon_pp] NEW Send Command (length 10):
[canon_pp] << write[canon_pp] -> ieee_transfer(2) *
[canon_pp] IEEE transfer (2 bytes)
[canon_pp] <- (-8)
[canon_pp] Couldn't read enough data (need 2 more of 2)
[canon_pp] NEW Send Command (length 10):
[canon_pp] << write[canon_pp] Timeout: Read Data 1 (0x00 in 0x01) - Status = 0x07
[canon_pp] Error 1
[canon_pp] initialise: Could not init scanner.
[canon_pp] sane_init: << 1 initialise
[canon_pp] sane_init: Couldn't contact scanner on port parport0. Probably no scanner there?
[canon_pp] << sane_init
[canon_pp] >> sane_get_devices (0xbfff66c8, 0)
[canon_pp] << sane_get_devices
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).
[canon_pp] >> sane_exit
[canon_pp] << sane_exit
**Edit**
Just found this in dmesg:
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
parport: IEEE1284 not supported in this kernel
ppdev0: negotiated back to compatibility mode because user-space forgot
ppdev0: unregistered pardevice
Can someone give me a clue to fixing this?
Thanks
N
Last edited by Neeko; 02-21-2005 at 12:22 AM.
|