Hello, I would like to use my Canon TS9120 scanner but I am not able to find it through Sane. I believe I am doing all the right things. It is untested as a multifunction printer/scanner according to Sane backend documentation. I am running Ubuntu 18.04
Here are my steps that I have taken so far. 1) I changed the firewall using ufw to allow communication via udp 8612. Following a faq at Canon: https://support.usa.canon.com/kb/index?page=content&id=ART109227. I added these rules: To Action From -- ------ ---- 192.168.1.25 ALLOW 192.168.1.16 80/tcp 192.168.1.25 ALLOW 192.168.1.16 443/tcp 192.168.1.25 ALLOW 192.168.1.16 515,1900,5222,5357,8611,8612,9100/tcp 192.168.1.25 ALLOW 192.168.1.16 515,1900,5222,5357,8611,8612,9100/udp 192.168.1.25 ALLOW 192.168.1.16 137,138,139/udp 192.168.1.25 ALLOW 192.168.1.16 137,138,139/tcp 192.168.1.25 ALLOW 192.168.1.16 8610/udp Anywhere on eno1 ALLOW 192.168.1.16 8612/udp fe80::6767:4545:141b:9fc7 ALLOW fe80::9e32:ceff:fe99:933c 80/tcp fe80::6767:4545:141b:9fc7 ALLOW fe80::9e32:ceff:fe99:933c 443/tcp fe80::6767:4545:141b:9fc7 ALLOW fe80::9e32:ceff:fe99:933c 137,138,139,515,1900,5222,5357,8611,8612,9100/tcp fe80::6767:4545:141b:9fc7 ALLOW fe80::9e32:ceff:fe99:933c 137,138,139,515,1900,5222,5357,8611,8612,9100/udp fe80::6767:4545:141b:9fc7 ALLOW fe80::9e32:ceff:fe99:933c 8610/udp Anywhere (v6) on eno1 ALLOW fe80::9e32:ceff:fe99:933c 8612/udp 192.168.1.16 8612/udp ALLOW OUT Anywhere on eno1 fe80::9e32:ceff:fe99:933c 8612/udp ALLOW OUT Anywhere (v6) on eno1 my interface on ubuntu is eno1 2. I tried first Canon's linux driver. It installed and I ran sudo -i scangearmp2 That took maybe 1 minute but never found the scanner. 3. Turning to Sane documentation https://gitlab.com/sane-project/backends/-/raw/master/INSTALL.linux I followed the steps. I got the backends from http://www.sane-project.org/snapshots/ and followed the readme. I think I ran ./configure BACKENDS="pixma". make make install. That seemed to build with no errors. 4. I checked and the latest backend seems to be installed sudo ldconfig -v | grep libsane /sbin/ldconfig.real: Can't stat /usr/local/lib/i386-linux-gnu: No such file or directory /sbin/ldconfig.real: Can't stat /usr/local/lib/i686-linux-gnu: No such file or directory /sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory /sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory /sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory /sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: /lib/i386-linux-gnu/ld-2.27.so is the dynamic linker, ignoring libsane.so.1 -> libsane.so.1.0.29 /sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.27.so is the dynamic linker, ignoring 5. The udev rules step never worked: sudo cp tools/udev/libsane.rules /etc/udev/rules.d cp: cannot stat 'tools/udev/libsane.rules': No such file or directory 4. Modified the conf file as documented here http://www.sane-project.org/man/sane-pixma.5.html That file now has the address of the TS9120 printer bjnp://192.168.1.16:8612/timeout=2000 // uses the default 1000ms timeout bjnp://fe80:0000:0000:0000:9e32:ceff:fe99:933c:8612/timeout=2000 // uses the default 1000ms timeout 5. The TS9120 works as a printer and even responds to ping with its ip4 address. 6. Tried scanimage -L. No luck finding this. scanimage -L [16:39:10.000767] [bjnp] udp_command: ERROR - no data received (timeout = 2000) [16:39:10.000879] [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner [16:39:10.003823] [bjnp] bjnp_allocate_device: ERROR - Cannot resolve host: fe80 port 8612 No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). If you have any suggestions, I would certainly appreciate it. Thank you
