<div dir="ltr"><div>Feedback on MB2350 button support:<br><br></div><div><div>> SANE_DEBUG_PIXMA=11 scanimage -A<br></div><div><br></div><div>Buttons:<br></div><div><div> --button-update</div><div> Update button state</div><div> --button-1 <int> [0] [read-only]</div><div> Button 1</div><div> --button-2 <int> [0] [read-only]</div><div> Button 2</div><div> --original <int> [0] [read-only]</div><div> Type of original to scan</div><div> --target <int> [0] [read-only]</div><div> Target operation type</div><div> --scan-resolution <int> [0] [read-only]</div><div> Scan resolution</div></div></div><div><br></div><div>I noticed that when scanimage is listening for button control, if I go Home->Scan->PC on the scanner touch panel, I see as available target of the scan:</div><div>- "patrick patrick-desktop" (if connected by lan)</div><div>- "Locale (USB)" (if connected by USB)</div><div> </div><div>Then, If I press the green color scan button, the pixma backend behaves differently:</div><div>LAN: logs four rows of data<br></div><div>USB: among a low-rate burst of most-zeros logs and warnings, a different line appears when i press the button</div><div><br></div><div>Note that the two rows "<span style="font-family:monospace">00 00 00 00 01 01 01 01 01 00 01 01 01 01 02 02" appear when I press SCAN in both USB and LAN mode.<br><br>After pressing the scan button, the scanner displays the message "scanning..." for approx 20 seconds, without any sign of flatbed activity, then returns to the scan UI page without any errors. scanimage continues to listen.</span></div><div><br></div><div><font face="monospace">> SANE_DEBUG_PIXMA=11 scanimage -d "pixma:MB2300_192.168.1.5" --format=jpeg -p --mode Color --resolution 75 --button-controlled=yes</font></div><div><font face="monospace"><br></font></div><div><div><font face="monospace">[pixma] ==== Button-controlled scan mode is enabled.</font></div><div><font face="monospace">[pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel, press 'GRAY' or 'END' button.</font></div><div><font face="monospace">[pixma] INTR T=4.634 len=64 <<< I PRESSED THE BUTTON >>></font></div><div><font face="monospace">[pixma] 00000000:00 00 00 00 01 01 01 01 01 00 01 01 01 01 02 02 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000020:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000030:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</font></div></div><div><br></div><div><font face="monospace">> SANE_DEBUG_PIXMA=11 scanimage -d "pixma:04A91779_21CEAB" --format=jpeg -p --mode Color --resolution 75 --button-controlled=yes</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"><div>[pixma] ==== Button-controlled scan mode is enabled.</div><div>[pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel, press 'GRAY' or 'END' button.</div></font></div><div><div><font face="monospace">[pixma] INTR T=0.768 len=32</font></div><div><font face="monospace">[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] </font></div><div><font face="monospace">[pixma] WARNING:send_time() disabled!</font></div><div><font face="monospace">[pixma] INTR T=1.024 len=32</font></div><div><font face="monospace">[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] </font></div><div><font face="monospace">[pixma] WARNING:send_time() disabled!</font></div><div><font face="monospace">[pixma] INTR T=2.688 len=32</font></div><div><font face="monospace">[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] </font></div><div><font face="monospace">[pixma] WARNING:send_time() disabled!</font></div><div><font face="monospace">[pixma] INTR T=11.136 len=32 <<< I PRESSED THE BUTTON >>></font></div><div><font face="monospace">[pixma] 00000000:00 00 00 00 01 01 01 01 01 00 01 01 01 01 02 02 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] </font></div><div><font face="monospace">[pixma] INTR T=13.696 len=32</font></div><div><font face="monospace">[pixma] 00000000:00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 </font></div><div><font face="monospace">[pixma] 00000010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 </font></div></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 4 feb 2018 alle ore 18:54 Patrick Roncagliolo <<a href="mailto:ronca.pat@gmail.com">ronca.pat@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(33,33,33);font-size:13px">Hi Rolf, </span><br style="color:rgb(33,33,33);font-size:13px"><span style="color:rgb(33,33,33);font-size:13px">MB2350 supports only one-side scan ADF. I used USBPcapCMD.exe to get a USB log from windows (Wireshark on Windows do not support direct USB port capturing AFAIK).</span> <br></div><div dir="ltr">I sent you .pcap files of one-sheet and two-sheets scans from Win. </div><div dir="ltr"><div><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 4 feb 2018 alle ore 13:14 Patrick Roncagliolo <<a href="mailto:ronca.pat@gmail.com" target="_blank">ronca.pat@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Oh I see, thank you so much. I'll give you USB logfiles ASAP.</p>
<br><div class="gmail_quote"><div dir="ltr">Il dom 4 feb 2018, 13:10 Rolf Bensch <<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Patrick,<br>
<br>
Here you can find further infos:<br>
<a href="https://wiki.wireshark.org/CaptureSetup/USB" rel="noreferrer" target="_blank">https://wiki.wireshark.org/CaptureSetup/USB</a><br>
<br>
You need to connect your scanner via USB and disconnect Ethernet|WiFi.<br>
<br>
Hope this helps.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
<br>
Am 04.02.2018 um 12:50 schrieb Patrick Roncagliolo:<br>
> Hi Rolf,<br>
><br>
> Can you point to a short guide for getting proper USB logfiles?<br>
><br>
> Meanwhile, I noticed that wireshark do not have full support for BJNP. I<br>
> browsed SANE and CUPS sources, and the BJNP dissector, and maybe in my<br>
> spare time I'd like to improve the dissector. If you have any unofficial<br>
> doc or article/analysis about BJNP outside what's already in C sources,<br>
> I'd like to get some links.<br>
><br>
><br>
> Il dom 4 feb 2018, 12:44 Rolf Bensch <<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a><br>
> <mailto:<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>>> ha scritto:<br>
><br>
> Hi Patrick,<br>
><br>
> It seems that we have a general problem with ADF scanning from all<br>
> Maxify scanners.<br>
><br>
> If possible, please provide USB logfiles from a Windows machine scanning<br>
> from ADF and duplex ADF, one page and two pages, using Wireshark. Then I<br>
> can try to fix this.<br>
><br>
> In the meantime I'll update the doc files.<br>
><br>
> Many thanks for your help.<br>
><br>
> Cheers,<br>
> Rolf<br>
><br>
> Am 28.01.2018 um 15:26 schrieb Patrick Roncagliolo:<br>
> > Hi Rolf,<br>
> ><br>
> > I tested scanimage with different options today. In particular, I<br>
> tested<br>
> > all the combinations of connection/resolution/color available with<br>
> > flatbed mode:<br>
> ><br>
> > --Connection: usb/net<br>
> > --Resolution: 75/150/300/600/1200<br>
> > --Color: color/gray/lineart<br>
> ><br>
> > ...for a total of 30 tests. I can confirm that all the combinations<br>
> > work, I have a folder with all the scans and a script, so I can<br>
> > replicate the operation while collecting debug info by<br>
> > setting SANE_DEBUG_PIXMA if necessary, and share all the results<br>
> > somewhere (eg. Google Drive). <br>
> ><br>
> > But ADF _do not_ work for me using scanimage or scanadf. Here's a<br>
> sample<br>
> > output (SANE_DEBUG_PIXMA=3 PIXMA_EXPERIMENT=1):<br>
> ><br>
> > [pixma] pixma is compiled with pthread support.<br>
> > [pixma] pixma version 0.17.45<br>
> > [pixma] pixma_collect_devices() found Canon MAXIFY MB2300 Series at<br>
> > libusb:003:005<br>
> > [pixma] Scanner model found: Name MB2300(Canon MAXIFY MB2300 Series)<br>
> > matches MB2300 series<br>
> > [pixma] pixma_collect_devices() found Canon MAXIFY MB2300 Series at<br>
> > bjnp://<a href="http://192.168.1.5:8612/timeout=1000" rel="noreferrer" target="_blank">192.168.1.5:8612/timeout=1000</a><br>
> <<a href="http://192.168.1.5:8612/timeout=1000" rel="noreferrer" target="_blank">http://192.168.1.5:8612/timeout=1000</a>><br>
> <<a href="http://192.168.1.5:8612/timeout=1000" rel="noreferrer" target="_blank">http://192.168.1.5:8612/timeout=1000</a>><br>
> > [pixma] pixma_open(): Canon MAXIFY MB2300 Series<br>
> > [pixma] *mp150_open***** This is a generation 5 scanner. *****<br>
> > [pixma] Reader task started<br>
> > [pixma] <br>
> > [pixma] [pixma] Reader task id=139915254597376 (threaded)<br>
> > scanimage: scanning image of size 638x1050 pixels at 24 bits/pixel<br>
> > scanimage: acquiring RGB frame<br>
> > pixma_scan(): start<br>
> > [pixma] line_size=1914 image_size=2009700 channels=3 depth=8<br>
> > [pixma] dpi=75x75 offset=(0,0) dimension=638x1050<br>
> > [pixma] gamma_table=0x704fc8 source=1<br>
> > [pixma] threshold=127 threshold_curve=0<br>
> > [pixma] adf-wait=0<br>
> > [pixma] ADF page count: 0<br>
> > [pixma] WARNING:send_time() disabled!<br>
> > [pixma] Current status: paper=0 cal=0 lamp=0 busy=0<br>
> > [pixma] pixma_scan() failed ECANCELED<br>
> > [pixma] read_image():reader task closed the pipe:0 bytes received,<br>
> > 2009700 bytes expected<br>
> > [pixma] Reader task terminated: ECANCELED<br>
> > scanimage: min/max graylevel value = 255/0<br>
> > scanimage: sane_read: Operation was cancelled<br>
> > [pixma] pixma_close(): Canon MAXIFY MB2300 Series<br>
> ><br>
> > Seems that pages in the ADF are not recognised: see "ADF page<br>
> count=0".<br>
> ><br>
> ><br>
> > Il giorno sab 27 gen 2018 alle ore 18:05 Rolf Bensch<br>
> > <<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a> <mailto:<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>><br>
> <mailto:<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a> <mailto:<a href="mailto:rolf@bensch-online.de" target="_blank">rolf@bensch-online.de</a>>>> ha<br>
> scritto:<br>
> ><br>
> > Hi Patrick,<br>
> ><br>
> > Please scan all scan options (color, grayscale, lineart, 75...600<br>
> > dpi) from flatbed.<br>
> ><br>
> > Then test the document feeder with your preferred settings<br>
> (e.g. A4,<br>
> > 300 dpi) and the whole sheet size. With a single sheet and<br>
> multiple<br>
> > sheets. At least test duplex scanning from ADF, single sheet and<br>
> > multiple sheets.<br>
> ><br>
> > I'm getting the best ADF scan results with gscan2pdf (I really<br>
> never<br>
> > got best results using scanimage or xsane). For scanning single<br>
> > sheets from flatbed or ADF (one side only) you can use your<br>
> favorite<br>
> > frontend, e.g. xsane.<br>
> ><br>
> > If you might have problems, please test also connected with<br>
> USB only.<br>
> ><br>
> > Many thanks for report.<br>
> ><br>
> > Cheers,<br>
> > Rolf<br>
> ><br>
> ><br>
> > Am 26.01.2018 um 00:33 schrieb Patrick Roncagliolo:<br>
> >> I forgot to specify that obviously SANE driver worked and allowed<br>
> >> me to do some scans with Xsane and ScanImage.<br>
> >> My reference to ScanGearMP is simply for completeness, but does<br>
> >> not relate with the main point of my previous mail.<br>
> >><br>
> >> So, rephrasing: "I can say LibSane works with MB2350 via LAN<br>
> >> connection".<br>
> >><br>
> >> Il giorno ven 26 gen 2018 alle ore 00:27 Patrick Roncagliolo<br>
> >> <<a href="mailto:ronca.pat@gmail.com" target="_blank">ronca.pat@gmail.com</a> <mailto:<a href="mailto:ronca.pat@gmail.com" target="_blank">ronca.pat@gmail.com</a>><br>
> <mailto:<a href="mailto:ronca.pat@gmail.com" target="_blank">ronca.pat@gmail.com</a> <mailto:<a href="mailto:ronca.pat@gmail.com" target="_blank">ronca.pat@gmail.com</a>>>> ha scritto:<br>
> >><br>
> >> Hello, <br>
> >> I saw testers are needed for this series of scanners.<br>
> >><br>
> >> I have a Canon Maxify MB2350 scanner, connected through LAN. <br>
> >> I can detect the scanner from Canon ScanGearMP 3.40 from<br>
> >> Ubuntu Linux 16.04. <br>
> >> I added "bjnp://<a href="http://192.168.1.5" rel="noreferrer" target="_blank">192.168.1.5</a> <<a href="http://192.168.1.5" rel="noreferrer" target="_blank">http://192.168.1.5</a>><br>
> <<a href="http://192.168.1.5" rel="noreferrer" target="_blank">http://192.168.1.5</a>>" to my<br>
> >> pixma.conf file, where 192.168.1.5 is my scanner IP address.<br>
> >> LibSane is taken from the daily git snapshots from<br>
> >> RolfBensch's PPA (now: 1.0.27+git20180122).<br>
> >><br>
> >> _I can say it works._ But I hope to help more if I can.<br>
> So: is<br>
> >> there a way to do something useful other than scanning a<br>
> >> random sheet of paper? Do you have standard tests or data<br>
> >> collection procedure that could help you to improve<br>
> support or<br>
> >> verify that all is working great? Do you need some packet<br>
> >> sniffing or something like that?<br>
> >><br>
> >> Best regards,<br>
> >> Patrick Roncagliolo<br>
> >><br>
> ><br>
><br>
</blockquote></div></blockquote></div></div></div></blockquote></div></div>