<div dir="ltr"><div>Thank you all for your helpful feedback. Still no luck but your suggestions led me to try the following.</div><div><br></div><div>1 I installed ajour sane the commands that Theirry Hucahrd listed. The update went through, but I see no new packages in my package manager. (I assume this is like an upgrade to sane?)</div><div><br></div><div>2. I installed airscan, following the airscan instructions for my operating system:</div><div><pre>sudo sh -c "echo 'deb <a href="http://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04/">http://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04/</a> /' > /etc/apt/sources.list.d/home:pzz.list"
wget -nv <a href="https://download.opensuse.org/repositories/home:pzz/xUbuntu_18.04/Release.key">https://download.opensuse.org/repositories/home:pzz/xUbuntu_18.04/Release.key</a> -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install sane-airscan<br><br></pre><pre>In my synaptic package manager searching under sane I see these are installed:<br><br></pre><pre>sane-airscan 0.9.18+55.1<br></pre><pre>xsane 0.999-5ubuntu2<br></pre><pre>xsane-common <br><br></pre><pre>sane 1.0.14-12 build 1<br></pre><pre>sane-utils 1.0.29<br></pre></div><div><br></div><div>I didn't yet run the printer protocol detector, because I have yet to install a GO compiler.<br></div><div><br></div><div>Now when I run scanimage --list-devices I get a pause. That did not happen before. I think that is airscan. Then this error message:</div><div><br></div><div>[15:33:32.923780] [bjnp] udp_command: ERROR - no data received (timeout = 2000)<br>[15:33:32.923885] [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner<br>[15:33:32.927092] [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>I should say the printer is an all in one and it is connected through a wired Tcp-ip cable (through a switch)</div><div><br></div><div>Thank you again for your help,</div><div><br></div><div>Anton Khabbaz</div><div><br></div><div>cc: printer is a Canon TS9120 all in one.<br></div><div><br></div><div><br></div><div><br></div><div> <br></div><div> </div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Fri, Apr 24, 2020 at 4:40 PM Anton Khabbaz <<a href="mailto:anton.khabbaz@gmail.com" target="_blank">anton.khabbaz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><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" target="_blank">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" target="_blank">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/" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote></div>