<div dir="ltr">Thank you Louis! As mentioned further back in the thread, Rolf's latest PPA worked well without anything in the file 'pixma.conf' (except for an error generated at the end of reading from the sheet feeder). But I thought it might be helpful to test the mfnp:// protocol directive for the sake of completeness. It did not seem to work.<div><br></div><div>To start, here is what happens with an empty pixma.conf file:</div><div>$ sudo scanimage -L<br>device `pixma:MF642C/643C/644C_192.168.1.111' is a CANON Canon i-SENSYS MF640 Series multi-function peripheral<br><div><br></div><div>Next, we will add this to pixma.conf: mfnp://MF640_192.168.1.111</div><div>$ sudo scanimage -L<br>[bjnp] bjnp_allocate_device: ERROR - Cannot resolve host: MF640_192.168.1.111 port 8612<br></div><div>(it then goes on to find the printer anyway on its own)</div><div><br></div><div>This is curious for a couple reasons. 1) Why does the error start with [bjnp] when I specified mfnp? 2) Why does it think that MF640_ is part of the host name when the documentation shows putting the model number ahead of the IP address?</div><div><br></div><div>Lastly, we will attempt to fix point 2 above by using only the IP address: mfnp://<a href="http://192.168.1.111">192.168.1.111</a></div><div>$ sudo scanimage -L<br></div><div>[bjnp] udp_command: ERROR - no data received (timeout = 10000)<br>[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner<br>[bjnp] udp_command: ERROR - no data received (timeout = 10000)<br>[bjnp] add_scanner: ERROR - Cannot read scanner make & model: mfnp://<a href="http://192.168.1.111:8612/timeout=10000">192.168.1.111:8612/timeout=10000</a><br></div><div>(again, it goes on to find the printer anyway on its own, presumably with no help from the pixma.conf file)</div><div><br></div><div>Again, the output is prefixed with [bjnp], and it doesn't seem like it is able to communicate correctly. Let's generate some debugging:</div><div>$ sudo SANE_DEBUG_BJNP=5 scanimage -L 2>&1<br>[sanei_debug] Setting debug level of bjnp to 5.<br>[bjnp] sanei_bjnp_find_devices, pixma backend version: 0.25.0<br>[bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf: mfnp://<a href="http://192.168.1.111">192.168.1.111</a><br>[bjnp] bjnp_allocate_device(mfnp://<a href="http://192.168.1.111:8612/timeout=10000">192.168.1.111:8612/timeout=10000</a>) 0<br>[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service not known<br>[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port 8612<br>[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no data received (timeout = 10000)<br>[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner<br>[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: <a href="http://192.168.1.111:8612">192.168.1.111:8612</a><br>[bjnp] get_scanner_id: Get scanner identity<br>[bjnp] 00000000:4d 46 4e 50 02 30 00 00 00 01 00 00 00 00 00 00 <br>[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port 8612<br>[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - recv failed: Connection refused[bjnp] udp_command: ERROR - no data received (timeout = 10000)<br>[bjnp] get_scanner_id: ERROR - Failed to retrieve scanner identity:<br>[bjnp] add_scanner: ERROR - Cannot read scanner make & model: mfnp://<a href="http://192.168.1.111:8612/timeout=10000">192.168.1.111:8612/timeout=10000</a><br>[bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto detection...<br><br></div><div>It continues with the auto detection (included for reference)</div><div>[bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping...<br>[bjnp] prepare_socket: eth0 is IPv4 capable, sending broadcast, socket = 39<br>[bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...<br>[bjnp] prepare_socket: eth0 is IPv6 capable, sending broadcast, socket = 40<br>[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499996....<br>[bjnp] sanei_find_devices: Discover response:<br>[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10 <br>[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f <br>[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service not known<br>[bjnp] bjnp_allocate_device(mfnp://<a href="http://192.168.1.111:8610/timeout=10000">192.168.1.111:8610/timeout=10000</a>) 1<br>[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service not known<br>[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port 8610<br>[bjnp] bjnp_get_scanner_mac_address: Discover response:<br>[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10 <br>[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f <br>[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: <a href="http://192.168.1.111:8610">192.168.1.111:8610</a><br>[bjnp] get_scanner_id: Get scanner identity<br>[bjnp] 00000000:4d 46 4e 50 02 30 00 00 00 01 00 00 00 00 00 00 <br>[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port 8610<br>[bjnp] get_scanner_id: scanner identity:<br>[bjnp] 00000000:4d 46 4e 50 82 30 00 00 00 01 00 00 00 00 00 5a <br>[bjnp] 00000010:4d 46 47 3a 43 41 4e 4f 4e 3b 43 4d 44 3a 4d 46 <br>[bjnp] 00000020:4e 50 31 2c 4d 75 6c 74 69 50 41 53 53 20 32 2e <br>[bjnp] 00000030:31 3b 4d 44 4c 3a 4d 46 36 34 32 43 2f 36 34 33 <br>[bjnp] 00000040:43 2f 36 34 34 43 3b 43 4c 53 3a 49 4d 47 3b 44 <br>[bjnp] 00000050:45 53 3a 43 61 6e 6f 6e 20 4d 46 36 34 32 43 2f <br>[bjnp] 00000060:36 34 33 43 2f 36 34 34 43 3b <br>[bjnp] get_scanner_id: Scanner identity string = MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:MF642C/643C/644C;CLS:IMG;DES:Canon MF642C/643C/644C; - length = 90<br>[bjnp] get_scanner_id: Scanner model = MF642C/643C/644C<br>[bjnp] add_scanner: New scanner added: mfnp://<a href="http://192.168.1.111:8610/timeout=10000">192.168.1.111:8610/timeout=10000</a>, serial 192.168.1.111, mac address: f4a997c93d62.<br>[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499995....<br>[bjnp] sanei_find_devices: Discover response:<br>[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10 <br>[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f <br>[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service not known<br>[bjnp] bjnp_allocate_device(mfnp://<a href="http://192.168.1.111:8610/timeout=10000">192.168.1.111:8610/timeout=10000</a>) 2<br>[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service not known<br>[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port 8610<br>[bjnp] bjnp_get_scanner_mac_address: Discover response:<br>[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10 <br>[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f <br>[bjnp] add_scanner: Scanner at mfnp://<a href="http://192.168.1.111:8610/timeout=10000">192.168.1.111:8610/timeout=10000</a> was added before, good!<br>[bjnp] sanei_find_devices: scanner discovery finished...<br>device `pixma:MF642C/643C/644C_192.168.1.111' is a CANON Canon i-SENSYS MF640 Series multi-function peripheral<br></div><div><br></div></div><div>Hope this data helps, and I am happy to continue testing things (hopefully without breaking what is working)!</div><div>-Kip</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 6:09 PM Louis Lagendijk <<a href="mailto:louis@fazant.net">louis@fazant.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div>On Fri, 2019-09-13 at 21:40 -0400, Kip Shaffer wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr">Scanning Results! I updated to today's version: 1.0.28+git20190913-bionic0<div><br></div><div>Using Simple Scan I was able to scan at 75, 150, 300, 600, 1200, and 2400 dpi in both Text and Photo modes. Perfect!</div><div><br></div><div>When scanning from the document feeder, it scans front and back, one sheet or many, but after the job is done there is a pause, and then it says "Error communicating with scanner". </div><div><br></div><div>Also, this has all been through USB. I tried to connect with the network and scanimage -L cannot find it. I added the address to pixma.conf (neither line helped):</div><div>bjnp://MF640_192.168.1.97<br>bjnp://<a href="http://192.168.1.97" target="_blank">192.168.1.97</a><br></div></div></blockquote><div><br></div><div>Apologies for the late reply: have been too busy with my new server lately, so I only got back to sane/ bjnp this week</div><div>As the MF644Cdw is a laserjet, it does not use bjnp as all laserjets use mfnp as protocol. This is almost identical to bjnp but uses a different port and has a few deviations. The bjnp code supports mfnp as well, just change the bjnp in bjnp://MF640_192.168.1.97 to mfnp://....</div><div><br></div><div>The backend should normally detect the scanner when computer and scanner are on the same subnet. I have never worked with a laserjet myself (wrote the code while testing over a tunnel to are remote device in Canada (I am in Europe).....</div><div>I seem to recall that there is a switch or something similar that needs to be activated for network based scanning.</div><div><br></div><div>Now Canon may have dropped mfnp from the laserjet series completely like they are doing with bjnp for the inkjets. Can you try to see what the scanner advertises with something like "avahi-browse -a" (press control-c after a few seconds)?</div><div><br></div><div>best regards, Louis</div></div>
</blockquote></div>