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

Anton Khabbaz anton.khabbaz at gmail.com
Tue Apr 28 20:36:58 BST 2020


Thank you all for your helpful feedback. Still no luck but your suggestions
led me to try the following.

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?)

2.  I installed airscan, following the airscan instructions for my
operating system:

sudo sh -c "echo 'deb
http://download.opensuse.org/repositories/home:/pzz/xUbuntu_18.04/ /'
> /etc/apt/sources.list.d/home:pzz.list"
wget -nv https://download.opensuse.org/repositories/home:pzz/xUbuntu_18.04/Release.key
-O Release.key
sudo apt-key add - < Release.key
sudo apt-get update
sudo apt-get install sane-airscan

In my synaptic package manager searching under sane I see these are installed:

sane-airscan 0.9.18+55.1

xsane    0.999-5ubuntu2

xsane-common

sane  1.0.14-12 build 1

sane-utils 1.0.29


I didn't yet run the printer protocol detector, because I have yet to
install a GO compiler.

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:

[15:33:32.923780] [bjnp] udp_command: ERROR - no data received (timeout =
2000)
[15:33:32.923885] [bjnp] bjnp_init_device_structure: Cannot read mac
address, skipping this scanner
[15:33:32.927092] [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).

I should say the printer is an all in one and it is connected through a
wired Tcp-ip cable (through a switch)

Thank you again for your help,

Anton Khabbaz

cc: printer is a Canon TS9120 all in one.






On Fri, Apr 24, 2020 at 4:40 PM Anton Khabbaz <anton.khabbaz at gmail.com>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20200428/32727151/attachment.html>


More information about the sane-devel mailing list