[sane-devel] Getting a Canon TS9120 scanner to be recognized

Anton Khabbaz anton.khabbaz at gmail.com
Fri Apr 24 21:40:38 BST 2020


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:

I added these rules:
To                         Action      From
--                         ------      ----               ALLOW 80/tcp               ALLOW 443/tcp               ALLOW
515,1900,5222,5357,8611,8612,9100/tcp               ALLOW
515,1900,5222,5357,8611,8612,9100/udp               ALLOW 137,138,139/udp               ALLOW 137,138,139/tcp               ALLOW 8610/udp
Anywhere on eno1           ALLOW 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
fe80::6767:4545:141b:9fc7  ALLOW       fe80::9e32:ceff:fe99:933c
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 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
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 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
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or
/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,

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

That file now has the address of the TS9120 printer

bjnp:// // 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

6.  Tried scanimage -L.  No luck finding this.

scanimage -L
[16:39:10.000767] [bjnp] udp_command: ERROR - no data received (timeout =
[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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200424/27239723/attachment.html>

More information about the sane-devel mailing list