[sane-devel] canon again

Czeh Tamas garfy@tar.hu
Mon, 25 Mar 2002 12:42:37 +0100 (CET)


Hi!

here is it:

[sanei_debug] Setting debug level of canon_pp to 100.
[canon_pp] >> sane_init(0xbfffe778, 0x80550c8): Canon Parallel SANE
Backend $Revision: 1.42 $
[canon_pp] >> ieee1284_find_ports
[canon_pp] << ieee1284_find_ports
[canon_pp] 1 parallel port(s) found.
[canon_pp] port parport0
[canon_pp] >> init_device
[canon_pp] [options]
[canon_pp] configuring opt: num_options
[canon_pp] configuring opt: resolution
[canon_pp] configuring opt: colour mode
[canon_pp] configuring opt: bit depth
[canon_pp] configuring opt: tl-x
[canon_pp] configuring opt: tl-y
[canon_pp] configuring opt: br-x
[canon_pp] configuring opt: br-y
[canon_pp] configuring opt: calibrate
[canon_pp] 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] 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] calibrate line, >calibrate ~/.sane/canon_pp-calibration-pp0
parport0<[canon_pp] Successfully parsed calibrate.
[canon_pp] sane_init, ><
[canon_pp] sane_init, ># calibrate /etc/sane/my_calibration parport1<
[canon_pp] sane_init: Calibration file is good for opening!
[canon_pp] << sane_init
[canon_pp] >> sane_get_devices (0xbfffe7c8, 0)
[canon_pp] << sane_get_devices
[canon_pp] >> sane_open (h=0xBFFFF624, name="parport0")
[canon_pp] sane_open: Opening port parport0
[canon_pp] sane_open: Claiming port.
[canon_pp] sane_open: Port supports ECP-H.
[canon_pp] sane_open: Port supports interrupts.
[canon_pp] sane_open: Port supports DMA.
[canon_pp] 
[canon_pp] sane_open: Using ECP-H Mode
[canon_pp] >> initialise
[canon_pp] !! Unknown status - 080e
[canon_pp] !! Unknown status - 080e
[canon_pp] !! Unknown status - 0000
[canon_pp] !! Unknown status - 080e
[canon_pp] Checksum error reading Info Block.[canon_pp] << initialise
[canon_pp] sane_open: initialise returned 1, something is wrong with the
scanner![canon_pp] >> sane_exit
[canon_pp] << sane_exit





On Mon, 25 Mar 2002, Matthew Duggan wrote:

> Hi,
> 
> I'm interested in helping you with this problem.. please do:
> export SANE_DEBUG_CANON_PP=100
> and then run xsane again.  That will give you _heaps_ of debug output.
> If you could mail me that output - in particular, the lines just before
> it reports IO Error, I'd be happy to have a look at it.
> 
> Cheers,
> 
> Matthew Duggan
> 
> ----- Original Message -----
> From: "Czeh Tamas" <garfy@tar.hu>
> To: <sane-devel@mostang.com>
> Sent: Monday, 25 March 2002 10:02 PM
> Subject: Re: [sane-devel] canon again
> 
> 
> > Hi!
> >
> > Simon: yes, thank you, its better, but...
> > (the scanner is doing something now)
> > i start with "xsane canon_pp" and i got an error messege:
> > "Faild to open device`canon_pp:parport0`:Error during device I/O"
> >
> > in dmesg:
> > "Mar 25 11:58:39 merkur kernel: ppdev0: registered pardevice
> > Mar 25 11:58:39 merkur kernel: ppdev0: unregistered pardevice
> > Mar 25 11:58:39 merkur kernel: lp0: ECP mode
> > Mar 25 11:58:39 merkur kernel: ppdev0: registered pardevice
> > Mar 25 11:58:53 merkur kernel: ppdev0: released pardevice because
> > user-space forgot
> > Mar 25 11:58:53 merkur kernel: ppdev0: unregistered pardevice"
> >
> > i set this too:
> > /proc/sys/dev/parport/parport0/irq 11
> > /proc/sys/dev/parport/parport0/dma 3
> >
> >
> >
> > garfy
> >
> >
> > On 25 Mar 2002, Simon Krix wrote:
> >
> > > Hi Garfy,
> > >
> > > > i tried to use xsane, but its say: No devices available
> > > > /etc/sane.d/canon.conf: /dev/lp0    (or parport0?)
> > > > /etc/sane.d/dll.conf: canon
> > > > if i connect the printer to the scanner the xsane segfault.
> > > > im not a linux guru :)
> > > > i have no idea what is wrong, somebody can help me?
> > > > thanks
> > > > /sorry about my english/
> > >
> > > Don't connect the printer to the scanner. That breaks the driver. If
> you
> > > can't use a seperate port for each, get a cheap switchbox from
> somewhere
> > > (or just unplug the printer each time).
> > >
> > > To run xsane, just enter "xsane canon_pp". If that says "no scanner
> > > detected" it probably means you didn't install the
> SANE-backends-1.0.7
> > > patch properly.
> > >
> > > Does that help?
> > >
> > > -Simon
> > >
> > > --
> > > -----------------------
> > > kinsei@users.sourceforge.net
> > >
> > > _______________________________________________
> > > Sane-devel mailing list
> > > Sane-devel@www.mostang.com
> > > http://www.mostang.com/mailman/listinfo/sane-devel
> > >
> >
> > _______________________________________________
> > Sane-devel mailing list
> > Sane-devel@www.mostang.com
> > http://www.mostang.com/mailman/listinfo/sane-devel
> >
> >
> 
>