[sane-devel] Canon Pixma MX925
Rolf Bensch
rolf at bensch-online.de
Wed Jun 5 09:14:39 UTC 2013
Hi Hans,
Am 05.06.2013 00:46, schrieb Hans Pirnay:
> Hi Rolf,
>
> I will get back to you with the scanning tests as soon as I can. For
> now, I just tried the button tests on a PIXMA MX895 (over wifi), and I'm
> not quite sure if I'm doing what you asked me to, so here's what I did:
>
> $ export SANE_DEBUG_PIXMA=11
> $ scanimage -A
>
> press any button
>
> $ scanimage -A
>
> no result. However, if I actually listen for buttons I get this:
>
> $ scanimage -d pixma:MX890_192.168.2.102 --button-controlled=yes > output
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled without pthread support.
> [pixma] pixma version 0.17.2
> [pixma] Scanner model found: Name MX890(Canon PIXMA MX890 Series)
> matches MX890 series
> [pixma] pixma_collect_devices() found Canon PIXMA MX890 Series at
> bjnp://192.168.2.102:8612 <http://192.168.2.102:8612>
> [pixma] pixma_open(): Canon PIXMA MX890 Series
> [pixma] Reader task id=16613 (forked)
> [pixma] Reader task started
> [pixma] ==== Button-controlled scan mode is enabled.
> [pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel,
> press 'GRAY' or 'END' button.
> [pixma] INTR T=54.760 len=64
> [pixma] 00000000:00 00 00 00 01 01 01 01 02 01 01 03 03 01 01 02
> [pixma] 00000010:01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma] 00000020:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma] 00000030:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma]
> [pixma] INTR T=100.088 len=64
> [pixma] 00000000:00 00 00 00 01 01 01 02 02 01 01 03 03 01 01 02
> [pixma] 00000010:01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma] 00000020:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma] 00000030:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> [pixma]
> ... here I quit with CTRL-C
>
> The first button is "Color", the second "Black". After I hit these
> buttons the printer sits there for a while, seemingly not doing
> anything; no scanning noise/movements, and the scanner's screen shows
> "Processing. Please wait momentarily".
>
> Is this what you are looking for?
>
That looks good.
Please try the attached patch. This should enable button support for
your scanner.
Save the attached file to the folder '[sane source/]backend' and patch
pixma_mp150.c with 'patch pixma_mp150.c pixma_mp150.c.diff1'.
Now you can test with 'scanimage -d pixma:MX890_192.168.2.102 -A'.
Button-1 is your color button and button-2 is your black button.
Original contains the image size (01=A4; 02=Letter; 08=10x15; 09=13x18;
0b=auto) and target contains the scan format (01=JPEG; 02=TIFF; 03=PDF;
04=Kompakt-PDF). If your scanner shows other or more parameters, please
report them.
Cheers,
Rolf
-------------- next part --------------
--- ./pixma_mp150.c 2013-06-05 10:51:39.000000000 +0200
+++ ../sane-backends/backend/pixma_mp150.c 2013-06-05 10:52:57.000000000 +0200
@@ -932,7 +932,8 @@
* tt: target
* poll event with 'scanimage -A' */
if (s->cfg->pid == MG6200_PID
- || s->cfg->pid == MG6300_PID)
+ || s->cfg->pid == MG6300_PID
+ || s->cfg->pid == MX920_PID)
/* button no. in buf[7]
* size in buf[10] 01=A4; 02=Letter; 08=10x15; 09=13x18; 0b=auto
* format in buf[11] 01=JPEG; 02=TIFF; 03=PDF; 04=Kompakt-PDF
More information about the sane-devel
mailing list