[sane-devel] canon_pp problem

Dries Hoet dries.hoet@student.kuleuven.ac.be
Sat, 06 Nov 2004 17:02:31 +0000


I can't get my scanner working. scanimage -L says there are no scanners 
available. The scanner produces some noise however and the head moves a bit.

This is the output of sane-troubleshoot:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sane-troubleshoot version 2004-09-02 started Sat Nov  6 16:59:32 2004
System information: Linux 2.6.8-gentoo-r7 i686
Searching for libsane in /lib
Searching for libsane in /usr/lib
Found /usr/lib/libsane.so.1.0.14
Searching for libsane in /usr/local/lib
Searching for libsane in /usr/X11R6/lib
Searching for dll.conf in /etc/sane.d
Found /etc/sane.d/dll.conf
Searching for sane.h in /usr/include/sane
Found /usr/include/sane/sane.h
trying dlopen
dlopen (libsane.so) succeeded
--> sane_init ()
<-- sane_init (): Success
SANE version 1.0.14
--> sane_open (test:1)
<-- sane_open (test:1): Success
--> sane_close ()
<-- sane_close ()
--> sane_get_devices ()
<-- sane_get_devices (): Success
Manual selection from list
Selected Canon CanoScan FB630P -> canon_pp backend
manpage: sane-canon_pp
URL: http://canon-fb330p.sourceforge.net
Backend canon_pp found in /etc/sane.d/dll.conf
--> sane_exit ()
<-- sane_exit ()
dlopen (/usr/lib/sane/libsane-canon_pp.so) succeeded
Setting SANE_DEBUG_CANON_PP=255
--> sane_init ()
[sanei_debug] Setting debug level of canon_pp to 255.
[canon_pp] >> sane_init(0xbfffe4e0, (nil)): sane-backends 1.0.14
[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 with ports 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 parport1<
[canon_pp] sane_init: ><
[canon_pp] sane_init: ><
[canon_pp] sane_init: ># Enable the next line if you're having trouble 
with ECP mode 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: ># init_mode FB620P parport0<
[canon_pp] sane_init: >#init_mode FB630P parport0<
[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: 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] NEW Send Command (length 10):
[canon_pp] << write[canon_pp] * Check Status:
[canon_pp] NEW read_data (2 bytes):
[canon_pp] -> ieee_transfer(2) *
[canon_pp] IEEE transfer (2 bytes)
[canon_pp] <- (2)
[canon_pp] Ready - 0x0606
[canon_pp] NEW Send Command (length 10):
[canon_pp] << write[canon_pp] * Check Status:
[canon_pp] NEW read_data (2 bytes):
[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
<-- sane_init (): Success
--> sane_get_devices ()
[canon_pp] >> sane_get_devices (0x8058cac, 0)
[canon_pp] << sane_get_devices
<-- sane_get_devices (): Success
test succeeded, interface_type = Parport (ECP)
--> sane_exit ()
[canon_pp] >> sane_exit
[canon_pp] << sane_exit
<-- sane_exit ()
Exiting Sat Nov  6 17:00:26 2004

Anybody knows this problem?