<div dir="ltr">Hi,<br><br>I tested pixma version 0.17.46 thru USB. It works. <br><br>However, after updating from your PPa, I'm not able to discover my printer on the network. pixma.conf seems to be ignored, no matter if I set the IP and multiple port combinations (8610, 8611, 8612, but whit wireshark I see only requests as broadcast on ports 8610 8612). What could have been changed? Any hints about some dumb things that I can have forgotten since last configuration?<br><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 11 mar 2018 alle ore 12:26 Rolf Bensch <<a href="mailto:rolf@bensch-online.de">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>
I just added button support for your scanner.<br>
<br>
If you're fetching the sources from git you can start testing now.<br>
Otherwise you must wait 'til tomorrow to get the update from my ppa.<br>
<br>
Button support is basicly implemented in standard frontends. You should<br>
use gscan2pdf to get best results. Or if you're familiar programming<br>
bash scripts, you can use scanbd<br>
(<a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/projects/scanbd/</a>). If you like I can provide my<br>
pixma scripts.<br>
<br>
Hope this helps.<br>
<br>
Cheers,<br>
Rolf<br>
<br>
Am 05.02.2018 um 12:44 schrieb Patrick Roncagliolo:<br>
> Feedback on MB2350 button support:<br>
><br>
>> SANE_DEBUG_PIXMA=11 scanimage -A<br>
><br>
> Buttons:<br>
>     --button-update<br>
>         Update button state<br>
>     --button-1 <int> [0] [read-only]<br>
>         Button 1<br>
>     --button-2 <int> [0] [read-only]<br>
>         Button 2<br>
>     --original <int> [0] [read-only]<br>
>         Type of original to scan<br>
>     --target <int> [0] [read-only]<br>
>         Target operation type<br>
>     --scan-resolution <int> [0] [read-only]<br>
>         Scan resolution<br>
><br>
> I noticed that when scanimage is listening for button control, if I go<br>
> Home->Scan->PC on the scanner touch panel, I see as available target of<br>
> the scan:<br>
> - "patrick patrick-desktop"  (if connected by lan)<br>
> - "Locale (USB)" (if connected by USB)<br>
>  <br>
> Then, If I press the green color scan button, the pixma backend behaves<br>
> differently:<br>
> LAN: logs four rows of data<br>
> USB: among a low-rate burst of most-zeros logs and warnings, a different<br>
> line appears when i press the button<br>
><br>
> Note that the two rows "00 00 00 00 01 01 01 01  01 00 01 01 01 01 02<br>
> 02" appear when I press SCAN in both USB and LAN mode.<br>
><br>
> After pressing the scan button, the scanner displays the message<br>
> "scanning..." for approx 20 seconds, without any sign of flatbed<br>
> activity, then returns to the scan UI page without any errors. scanimage<br>
> continues to listen.<br>
><br>
>> SANE_DEBUG_PIXMA=11 scanimage -d "pixma:MB2300_192.168.1.5"<br>
> --format=jpeg -p --mode Color --resolution 75 --button-controlled=yes<br>
><br>
> [pixma] ==== Button-controlled scan mode is enabled.<br>
> [pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel,<br>
> press 'GRAY' or 'END' button.<br>
> [pixma] INTR T=4.634 len=64                                             <br>
>      <<< I PRESSED THE BUTTON >>><br>
> [pixma]  00000000:00 00 00 00 01 01 01 01  01 00 01 01 01 01 02 02 <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000020:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000030:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00<br>
><br>
>> SANE_DEBUG_PIXMA=11 scanimage -d "pixma:04A91779_21CEAB" --format=jpeg<br>
> -p --mode Color --resolution 75 --button-controlled=yes<br>
><br>
> [pixma] ==== Button-controlled scan mode is enabled.<br>
> [pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel,<br>
> press 'GRAY' or 'END' button.<br>
> [pixma] INTR T=0.768 len=32<br>
> [pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma] <br>
> [pixma] WARNING:send_time() disabled!<br>
> [pixma] INTR T=1.024 len=32<br>
> [pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma] <br>
> [pixma] WARNING:send_time() disabled!<br>
> [pixma] INTR T=2.688 len=32<br>
> [pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma] <br>
> [pixma] WARNING:send_time() disabled!<br>
> [pixma] INTR T=11.136 len=32                                           <br>
>       <<< I PRESSED THE BUTTON >>><br>
> [pixma]  00000000:00 00 00 00 01 01 01 01  01 00 01 01 01 01 02 02    <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma] <br>
> [pixma] INTR T=13.696 len=32<br>
> [pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 <br>
> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 <br>
><br>
><br>
><br>
><br>
> Il giorno dom 4 feb 2018 alle ore 18:54 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>>> ha scritto:<br>
><br>
>     Hi Rolf, <br>
>     MB2350 supports only one-side scan ADF. I used USBPcapCMD.exe to get<br>
>     a USB log from windows (Wireshark on Windows do not support direct<br>
>     USB port capturing AFAIK). <br>
>     I sent you .pcap files of one-sheet and two-sheets scans from Win. <br>
><br>
>     Il giorno dom 4 feb 2018 alle ore 13:14 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>>> ha scritto:<br>
><br>
>         Oh I see, thank you so much. I'll give you USB logfiles ASAP.<br>
><br>
><br>
>         Il dom 4 feb 2018, 13:10 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>
>             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<br>
>             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<br>
>             logfiles?<br>
>             ><br>
>             > Meanwhile, I noticed that wireshark do not have full<br>
>             support for BJNP. I<br>
>             > browsed SANE and CUPS sources, and the BJNP dissector, and<br>
>             maybe in my<br>
>             > spare time I'd like to improve the dissector. If you have<br>
>             any unofficial<br>
>             > doc or article/analysis about BJNP outside what's already<br>
>             in C sources,<br>
>             > I'd like to get some links.<br>
>             ><br>
>             ><br>
>             > Il dom 4 feb 2018, 12:44 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><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<br>
>             scanning from all<br>
>             >     Maxify scanners.<br>
>             ><br>
>             >     If possible, please provide USB logfiles from a<br>
>             Windows machine scanning<br>
>             >     from ADF and duplex ADF, one page and two pages, using<br>
>             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<br>
>             particular, I<br>
>             >     tested<br>
>             >     > all the combinations of connection/resolution/color<br>
>             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<br>
>             the combinations<br>
>             >     > work, I have a folder with all the scans and a<br>
>             script, so I can<br>
>             >     > replicate the operation while collecting debug info by<br>
>             >     > setting SANE_DEBUG_PIXMA if necessary, and share all<br>
>             the results<br>
>             >     > somewhere (eg. Google Drive). <br>
>             >     ><br>
>             >     > But ADF _do not_ work for me using scanimage or<br>
>             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<br>
>             MB2300 Series at<br>
>             >     > libusb:003:005<br>
>             >     > [pixma] Scanner model found: Name MB2300(Canon<br>
>             MAXIFY MB2300 Series)<br>
>             >     > matches MB2300 series<br>
>             >     > [pixma] pixma_collect_devices() found Canon MAXIFY<br>
>             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>
>             >     <<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<br>
>             scanner.  *****<br>
>             >     > [pixma] Reader task started<br>
>             >     > [pixma] <br>
>             >     > [pixma] [pixma] Reader task id=139915254597376<br>
>             (threaded)<br>
>             >     > scanimage: scanning image of size 638x1050 pixels at<br>
>             24 bits/pixel<br>
>             >     > scanimage: acquiring RGB frame<br>
>             >     > pixma_scan(): start<br>
>             >     > [pixma]   line_size=1914 image_size=2009700<br>
>             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<br>
>             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<br>
>             "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><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><br>
>             <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><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><br>
>             <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,<br>
>             lineart, 75...600<br>
>             >     >     dpi) from flatbed.<br>
>             >     ><br>
>             >     >     Then test the document feeder with your<br>
>             preferred settings<br>
>             >     (e.g. A4,<br>
>             >     >     300 dpi) and the whole sheet size. With a single<br>
>             sheet and<br>
>             >     multiple<br>
>             >     >     sheets. At least test duplex scanning from ADF,<br>
>             single sheet and<br>
>             >     >     multiple sheets.<br>
>             >     ><br>
>             >     >     I'm getting the best ADF scan results with<br>
>             gscan2pdf (I really<br>
>             >     never<br>
>             >     >     got best results using scanimage or xsane). For<br>
>             scanning single<br>
>             >     >     sheets from flatbed or ADF (one side only) you<br>
>             can use your<br>
>             >     favorite<br>
>             >     >     frontend, e.g. xsane.<br>
>             >     ><br>
>             >     >     If you might have problems, please test also<br>
>             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<br>
>             worked and allowed<br>
>             >     >>     me to do some scans with Xsane and ScanImage.<br>
>             >     >>     My reference to ScanGearMP is simply for<br>
>             completeness, but does<br>
>             >     >>     not relate with the main point of my previous mail.<br>
>             >     >><br>
>             >     >>     So, rephrasing:  "I can say LibSane works with<br>
>             MB2350 via LAN<br>
>             >     >>     connection".<br>
>             >     >><br>
>             >     >>     Il giorno ven 26 gen 2018 alle ore 00:27<br>
>             Patrick Roncagliolo<br>
>             >     >>     <<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><br>
>             <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><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><br>
>             <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<br>
>             scanners.<br>
>             >     >><br>
>             >     >>         I have a Canon Maxify MB2350 scanner,<br>
>             connected through LAN. <br>
>             >     >>         I can detect the scanner from Canon<br>
>             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><br>
>             <<a href="http://192.168.1.5" rel="noreferrer" target="_blank">http://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<br>
>             scanner IP address.<br>
>             >     >>         LibSane is taken from the daily git<br>
>             snapshots from<br>
>             >     >>         RolfBensch's PPA (now: 1.0.27+git20180122).<br>
>             >     >><br>
>             >     >>         _I can say it works._ But I hope to help<br>
>             more if I can.<br>
>             >     So: is<br>
>             >     >>         there a way to do something useful other<br>
>             than scanning a<br>
>             >     >>         random sheet of paper? Do you have standard<br>
>             tests or data<br>
>             >     >>         collection procedure that could help you to<br>
>             improve<br>
>             >     support or<br>
>             >     >>         verify that all is working great? Do you<br>
>             need some packet<br>
>             >     >>         sniffing or something like that?<br>
>             >     >><br>
>             >     >>         Best regards,<br>
>             >     >>         Patrick Roncagliolo<br>
>             >     >><br>
>             >     ><br>
>             ><br>
><br>
</blockquote></div></div>