[sane-devel] Canon ImageClass MF644Cdw
Kip Shaffer
kip at shafferhouse.org
Sat Nov 2 13:42:57 GMT 2019
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.
To start, here is what happens with an empty pixma.conf file:
$ sudo scanimage -L
device `pixma:MF642C/643C/644C_192.168.1.111' is a CANON Canon i-SENSYS
MF640 Series multi-function peripheral
Next, we will add this to pixma.conf: mfnp://MF640_192.168.1.111
$ sudo scanimage -L
[bjnp] bjnp_allocate_device: ERROR - Cannot resolve host:
MF640_192.168.1.111 port 8612
(it then goes on to find the printer anyway on its own)
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?
Lastly, we will attempt to fix point 2 above by using only the IP
address: mfnp://192.168.1.111
$ sudo scanimage -L
[bjnp] udp_command: ERROR - no data received (timeout = 10000)
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this
scanner
[bjnp] udp_command: ERROR - no data received (timeout = 10000)
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: mfnp://
192.168.1.111:8612/timeout=10000
(again, it goes on to find the printer anyway on its own, presumably with
no help from the pixma.conf file)
Again, the output is prefixed with [bjnp], and it doesn't seem like it is
able to communicate correctly. Let's generate some debugging:
$ sudo SANE_DEBUG_BJNP=5 scanimage -L 2>&1
[sanei_debug] Setting debug level of bjnp to 5.
[bjnp] sanei_bjnp_find_devices, pixma backend version: 0.25.0
[bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf: mfnp://
192.168.1.111
[bjnp] bjnp_allocate_device(mfnp://192.168.1.111:8612/timeout=10000) 0
[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service
not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port
8612
[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)
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this
scanner
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
192.168.1.111:8612
[bjnp] get_scanner_id: Get scanner identity
[bjnp] 00000000:4d 46 4e 50 02 30 00 00 00 01 00 00 00 00 00 00
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port
8612
[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)
[bjnp] get_scanner_id: ERROR - Failed to retrieve scanner identity:
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: mfnp://
192.168.1.111:8612/timeout=10000
[bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto
detection...
It continues with the auto detection (included for reference)
[bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping...
[bjnp] prepare_socket: eth0 is IPv4 capable, sending broadcast, socket = 39
[bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...
[bjnp] prepare_socket: eth0 is IPv6 capable, sending broadcast, socket = 40
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499996....
[bjnp] sanei_find_devices: Discover response:
[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10
[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f
[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service
not known
[bjnp] bjnp_allocate_device(mfnp://192.168.1.111:8610/timeout=10000) 1
[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service
not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port
8610
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10
[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it:
192.168.1.111:8610
[bjnp] get_scanner_id: Get scanner identity
[bjnp] 00000000:4d 46 4e 50 02 30 00 00 00 01 00 00 00 00 00 00
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port
8610
[bjnp] get_scanner_id: scanner identity:
[bjnp] 00000000:4d 46 4e 50 82 30 00 00 00 01 00 00 00 00 00 5a
[bjnp] 00000010:4d 46 47 3a 43 41 4e 4f 4e 3b 43 4d 44 3a 4d 46
[bjnp] 00000020:4e 50 31 2c 4d 75 6c 74 69 50 41 53 53 20 32 2e
[bjnp] 00000030:31 3b 4d 44 4c 3a 4d 46 36 34 32 43 2f 36 34 33
[bjnp] 00000040:43 2f 36 34 34 43 3b 43 4c 53 3a 49 4d 47 3b 44
[bjnp] 00000050:45 53 3a 43 61 6e 6f 6e 20 4d 46 36 34 32 43 2f
[bjnp] 00000060:36 34 33 43 2f 36 34 34 43 3b
[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
[bjnp] get_scanner_id: Scanner model = MF642C/643C/644C
[bjnp] add_scanner: New scanner added: mfnp://
192.168.1.111:8610/timeout=10000, serial 192.168.1.111, mac address:
f4a997c93d62.
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499995....
[bjnp] sanei_find_devices: Discover response:
[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10
[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f
[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service
not known
[bjnp] bjnp_allocate_device(mfnp://192.168.1.111:8610/timeout=10000) 2
[bjnp] get_scanner_name: Name for 192.168.1.111 not found : Name or service
not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.1.111 port
8610
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00 00 10
[bjnp] 00000010:00 01 80 00 06 04 f4 a9 97 c9 3d 62 c0 a8 01 6f
[bjnp] add_scanner: Scanner at mfnp://192.168.1.111:8610/timeout=10000 was
added before, good!
[bjnp] sanei_find_devices: scanner discovery finished...
device `pixma:MF642C/643C/644C_192.168.1.111' is a CANON Canon i-SENSYS
MF640 Series multi-function peripheral
Hope this data helps, and I am happy to continue testing things (hopefully
without breaking what is working)!
-Kip
On Fri, Nov 1, 2019 at 6:09 PM Louis Lagendijk <louis at fazant.net> wrote:
> On Fri, 2019-09-13 at 21:40 -0400, Kip Shaffer wrote:
>
> Scanning Results! I updated to today's version: 1.0.28+git20190913-bionic0
>
> Using Simple Scan I was able to scan at 75, 150, 300, 600, 1200, and 2400
> dpi in both Text and Photo modes. Perfect!
>
> 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".
>
> 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):
> bjnp://MF640_192.168.1.97
> bjnp://192.168.1.97
>
>
> Apologies for the late reply: have been too busy with my new server
> lately, so I only got back to sane/ bjnp this week
> 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://....
>
> 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).....
> I seem to recall that there is a switch or something similar that needs to
> be activated for network based scanning.
>
> 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)?
>
> best regards, Louis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20191102/d300ba15/attachment.html>
More information about the sane-devel
mailing list