[sane-devel] Looking for help with scanner
Louis Lagendijk
louis at fazant.net
Sat Mar 17 13:59:09 UTC 2018
On Fri, 2018-03-16 at 10:07 -0700, John Oliver wrote:
> On Ubuntu 16.04.04, using "Simple Scan" which is, apparently, SANE.
>
> I bought a Canon imageCLASS MF416dw and had to jump through some
> hoops
> to get it printing. It's on the network, wired, local subnet. I'm
> using the PIXMA backend.
>
> joliver at blinky:~$ sudo nmap -sU -p 8610-8612 192.168.0.20
>
> Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-16 09:56 PDT
> Nmap scan report for 192.168.0.20
> Host is up (0.038s latency).
> PORT STATE SERVICE
> 8610/udp open|filtered unknown
> 8611/udp closed canon-bjnp1
> 8612/udp closed canon-bjnp2
> MAC Address: F4:81:39:E5:85:CE (Canon)
>
> Nmap done: 1 IP address (1 host up) scanned in 1.74 seconds
> joliver at blinky:~$ sudo nmap -sT -p 8610-8612 192.168.0.20
>
> Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-16 09:56 PDT
> Nmap scan report for 192.168.0.20
> Host is up (0.0017s latency).
> PORT STATE SERVICE
> 8610/tcp open unknown
> 8611/tcp closed unknown
> 8612/tcp closed unknown
> MAC Address: F4:81:39:E5:85:CE (Canon)
>
> Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds
>
>
> So, I tried mfnp://192.168.0.20 but simple-scan quickly bombs out
> with
> "No scanners detected" So I sniffed traffic while starting sane:
>
> joliver at blinky:~$ sudo tcpdump -vvv host 192.168.0.20
> tcpdump: listening on wlp2s0, link-type EN10MB (Ethernet), capture
> size
> 262144 bytes
> 10:04:03.030738 IP (tos 0x0, ttl 64, id 41990, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.44468 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:03.032672 IP (tos 0x0, ttl 64, id 6518, offset 0, flags [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.44468: [udp sum ok] UDP, length
> 32
> 10:04:03.032757 IP (tos 0x0, ttl 64, id 41991, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.48892 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:03.036182 IP (tos 0x0, ttl 64, id 17032, offset 0, flags
> [none],
> proto UDP (17), length 126)
> 192.168.0.20.8610 > 192.168.0.15.48892: [udp sum ok] UDP, length
> 98
> 10:04:03.040416 IP (tos 0x0, ttl 64, id 23405, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.8612: [udp sum ok] UDP, length
> 32
> 10:04:03.050893 IP (tos 0x0, ttl 64, id 11420, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.8612: [udp sum ok] UDP, length
> 32
> 10:04:03.082441 IP (tos 0x0, ttl 64, id 41994, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.41346 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:03.083924 IP (tos 0x0, ttl 64, id 7595, offset 0, flags [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.41346: [udp sum ok] UDP, length
> 32
> 10:04:03.104825 IP (tos 0x0, ttl 64, id 41998, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.42059 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:03.106075 IP (tos 0x0, ttl 64, id 46684, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.42059: [udp sum ok] UDP, length
> 32
> 10:04:05.956867 IP (tos 0x0, ttl 255, id 7957, offset 0, flags
> [none],
> proto UDP (17), length 343)
> 192.168.0.20.mdns > 224.0.0.251.mdns: [udp sum ok] 0- [0q] 1/0/5
> _scanner._tcp.local. [4m15s] PTR Canon MF410
> Series._scanner._tcp.local.
> ar: Canone585ce.local. (Cache flush) [4m15s] A 192.168.0.20, Canon
> MF410
> Series._scanner._tcp.local. (Cache flush) [4m15s] SRV
> Canone585ce.local.:8610 0 0, Canon MF410 Series._scanner._tcp.local.
> (Cache flush) [4m15s] TXT "txtvers=1" "note="
> "adminurl=http://Canone585ce.local/airprint.html" "ty=Canon MF410
> Series" "UUID=f48139e585ce" "mfg=Canon" "mdl=MF410 Series"
> "scannerAvailable=0", Canone585ce.local. (Cache flush) [4m15s] NSEC,
> Canon MF410 Series._scanner._tcp.local. (Cache flush) [4m15s] NSEC
> (315)
> 10:04:07.186519 IP (tos 0x0, ttl 64, id 42873, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.41949 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:07.187775 IP (tos 0x0, ttl 64, id 41168, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.41949: [udp sum ok] UDP, length
> 32
> 10:04:07.187834 IP (tos 0x0, ttl 64, id 42874, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.49897 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:07.192040 IP (tos 0x0, ttl 64, id 8611, offset 0, flags [none],
> proto UDP (17), length 126)
> 192.168.0.20.8610 > 192.168.0.15.49897: [udp sum ok] UDP, length
> 98
> 10:04:07.193488 IP (tos 0x0, ttl 64, id 43608, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.8612: [udp sum ok] UDP, length
> 32
> 10:04:07.203582 IP (tos 0x0, ttl 64, id 58366, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.8612: [udp sum ok] UDP, length
> 32
> 10:04:07.232969 IP (tos 0x0, ttl 64, id 42886, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.57656 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:07.238180 IP (tos 0x0, ttl 64, id 38127, offset 0, flags
> [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.57656: [udp sum ok] UDP, length
> 32
> 10:04:07.259478 IP (tos 0x0, ttl 64, id 42889, offset 0, flags [DF],
> proto UDP (17), length 44)
> 192.168.0.15.54438 > 192.168.0.20.8610: [udp sum ok] UDP, length
> 16
> 10:04:07.260717 IP (tos 0x0, ttl 64, id 9572, offset 0, flags [none],
> proto UDP (17), length 60)
> 192.168.0.20.8610 > 192.168.0.15.54438: [udp sum ok] UDP, length
> 32
> 10:04:08.264073 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
> 192.168.0.20 tell 192.168.0.15, length 28
> 10:04:08.266137 ARP, Ethernet (len 6), IPv4 (len 4), Reply
> 192.168.0.20
> is-at f4:81:39:e5:85:ce (oui Unknown), length 46
> 10:04:10.013019 IP (tos 0x0, ttl 255, id 7850, offset 0, flags
> [none],
> proto UDP (17), length 343)
> 192.168.0.20.mdns > 224.0.0.251.mdns: [udp sum ok] 0- [0q] 1/0/5
> _scanner._tcp.local. [4m15s] PTR Canon MF410
> Series._scanner._tcp.local.
> ar: Canone585ce.local. (Cache flush) [4m15s] A 192.168.0.20, Canon
> MF410
> Series._scanner._tcp.local. (Cache flush) [4m15s] SRV
> Canone585ce.local.:8610 0 0, Canon MF410 Series._scanner._tcp.local.
> (Cache flush) [4m15s] TXT "txtvers=1" "note="
> "adminurl=http://Canone585ce.local/airprint.html" "ty=Canon MF410
> Series" "UUID=f48139e585ce" "mfg=Canon" "mdl=MF410 Series"
> "scannerAvailable=0", Canone585ce.local. (Cache flush) [4m15s] NSEC,
> Canon MF410 Series._scanner._tcp.local. (Cache flush) [4m15s] NSEC
> (315)
> ^C
> 24 packets captured
> 24 packets received by filter
> 0 packets dropped by kernel
>
Did you try the scanner over USB? If that works we can continue with
the network scanning. Network just adds some additional complexity, so
lets first ensure that the scanner works over USB.
A quick grep on the source code seems to suggest that it is not yet
supported.
What does lsusb say for the scanner when connected over USB?
You could also try:
export SANE_DEBUG_PIXMA=20
export SANE_DEBUG_BJNP=20
scanimage -L 2> log
and mail me the logfile
See espacially the lines starting with
[pixma] Scanner model
if the last line does not have a "matches" followed by [bjnp]
add_scanner: New scanner added: bjnp:.... or mfnp:// the scanner is not
yet suppoprted for bjnp/mfnp...
BR, Louis
More information about the sane-devel
mailing list