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