[sane-devel] Canon PIXMA MX430 Support (USB ID 0x04a9/0x175b)
Rolf Bensch
rolf at bensch-online.de
Fri Feb 28 19:42:53 UTC 2014
Hi Fredrik,
Sorry for answering your request so late.
Please follow these steps to start debugging:
(1) Install latest Sane from git, as described here:
http://www.sane-project.org/README.linux
(2) Read 'man sane-pixma' to catch available environment settings for
debug levels. I'm usually using 'export SANE_DEBUG_PIXMA=4' for common
debug output and 'export SANE_DEBUG_PIXMA=11' to see the USB protocols.
(3) Work on a terminal to see debug outputs. You only need to set
'export SANE_DEBUG_PIXMA...' once for each terminal session.
(4) To redirect debug output in a file use 'scanimage [options] 2>
pixma.log > pixma.pnm' or 'xsane &> pixma.log'. xsane starts with its gui.
(5) The source code for your scanner is in 'backend/pixma_mp150.c'.
(6) To get familiar with the code start with the functions mp150_*().
(7) You can uncomment commented debug output, e.g. in lines 1219 and
1220 in backend/pixma_mp150.c. The debug level in this example is 4.
(8) Feel free to create additional debug output for your understanding
and debugging ( PDBG (pixma_dbg (4, ...)); ).
(9) You should start to test flatbed functions with a low resolution and
a small scan area. If everything is working increase only one scan
parameter. If you go to higher resolutions you might choose small scan
areas to reduce scan time and log file size.
(10) You should know that the MP150 backend has problems with ADF empty
detection. We can discuss this item after everything else is working for
you.
Don't hesitate to contact me and/or the mailing list to discuss details
of your work.
Cheers,
Rolf
Am 12.02.2014 05:41, schrieb Fredrik Haikarainen:
> Hi,
>
> I noticed that this scanner (as stated in the subjectline) is on your
> list of untested scanners, and I want to be of any help I can to you
> as I have this very scanner.
>
> I have no prior experience of either sane or working with scanners
> under a GNU/Linux environment, but I do have very much experience in
> programming (C++ mainly, also grasp C very well).
>
> I managed to scan some documents I needed to, although with some
> trouble. Sometimes the "scanimage" program would just sit and wait
> with no output, while the scanner did pretty much the same (didn't
> even make a single noise), other times I'd get some I/O error, where
> half the time the scanner would also display a totally unrelated error
> (that didn't even happen, like "Close this lid" while it really was
> closed, and didn't matter at all to the scanning process). One thing
> that always fixed this was replugging the USB and running
> sane-find-scanner again.
>
> To proceed testing (and eventually patching the pixma backend), I
> would be so delighted if you had any test-suite ready for these kinds
> of things, or perhaps a checklist of sorts. Any documentation/tools
> that I could use to ease this process would be highly appreciated,
> although I have no problem to start with nothing at all as well, I'm
> simply wondering what exists for this already.
>
> PS. I'm on ArchLinux and not Debian, if that matters a lot. I'll have
> you know I've used debian for about 7 years before switching though,
> so I know a lot about it.
>
> Looking forward to add another scanner to your bunch.
>
> Regards,
> Fredrik Haikarainen
>
More information about the sane-devel
mailing list