You are not logged in.
the printing works with cups using ipp everywhere:
1. go to localhost:631
2. administration
3. add printer (not find printers because you won't get canon or ipp everywhere)
4. select internet printing protocol (not canon g7000)
5. set ip address as ipp://ip-address (you can get this from your router which would have dhcped the printer, but should make it permanent)
things have printed well so far.
the scanning with sane has me confused.
i can scan with scanimage using a usb cable connection.
but how to do it over the network?
(both computer and scanner are on the same subnetwork eg 192.168.50.)
the sane-pixma manpage says:
"The following models may use the same Pixma protocol as those listed above, but have not yet been reported to work (or not). They are declared in the backend so that they get recognized and activated. They are declared in the backend so that they get recognized and activated."
and PIXMA G7000 is listed there.
so far i haven't been able to have it be recognized.
i have added in /etc/sane.d/pixma.conf the g7020 ip:
bjnp://192.168.50.32
(and even tried the mfnp protocol there)
however scanimage -L gives
[12:22:45.029472] [bjnp] udp_command: ERROR - no data received (timeout = 10000)
[12:22:45.029599] [bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
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).the canon drivers page for this printer lists
IJ Printer Driver Ver. 6.00 for Linux
ScanGear MP Ver. 4.00 for Linux
as source files, deb, and rpm
i haven't tried these since i am hoping there will be a sane solution.
how do i get the scanner to work with sane over the network?
Last edited by pradtf (2023-02-22 07:46:11)
in friendship,
prad
Offline
nmap -p 8610,8611 192.168.50.32
nmap 192.168.50.32Offline
nmap -p 8610,8611 192.168.50.32
Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-21 14:09 PST
Nmap scan report for 192.168.50.32
Host is up (0.0026s latency).
PORT STATE SERVICE
8610/tcp closed canon-mfnp
8611/tcp closed canon-bjnp1
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
nmap 192.168.50.32
Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-21 14:09 PST
Nmap scan report for 192.168.50.32
Host is up (0.018s latency).
Not shown: 995 closed tcp ports (reset)
PORT STATE SERVICE
80/tcp open http
443/tcp open https
515/tcp open printer
631/tcp open ipp
9100/tcp open jetdirect
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
Nmap done: 1 IP address (1 host up) scanned in 2.60 seconds
so what is this 8610,8611 closed?
is this a firewall issue and i have to open those ports for tcp?
in friendship,
prad
Offline
8610 & 8611 are mfnp and bjnp (according to google) - you have various printer protocols available, but no scanner protocols
Firewall would typpically show up as "filtered"
Do you have to configure the scanner to be available on the network?
Did you try https://aur.archlinux.org/packages/scangearmp2 ?
Offline
thx seth!
i don't know if i have to configure the scanner to be on the network, but i found this:
if you have problems with discovering the scanner you should probably check UDP ports 8610 and 8612 are open.
https://wiki.debian.org/SaneOverNetwork#Opening_Ports
that suggests to me that the port(s) have to be open for my computer to work with the scanner, but i don't have a firewall on my computer. i just have the firewall on a router which goes to a shawcable hitron modem. so i don't see what it would have to do with the firewall since both my computer and the scanner are on the same subnet on the same router. the computer is etherneted in and the g7020 is wified.
the scanning works if i usb connect the computer to the g7020, so the 861x ports are not in play unless i connect through the router, i guess.
so am i supposed to open 861x ports on my computer to get through to the scanner?
(i'll give the scangear thing a try once i understand what's going on).
in friendship,
prad
Offline
so am i supposed to open 861x ports on my computer to get through to the scanner?
No. The port needs to be open on the scanner.
You don't want it to be filtered, but that's unlikely the case anyway.
sudo nmap -sU -p 8610-8612 192.168.50.32Offline
sudo nmap -sU -p 8610-8612 192.168.50.32
Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-21 15:18 PST
Nmap scan report for pixi (192.168.50.32)
Host is up (0.017s latency).
PORT STATE SERVICE
8610/udp closed canon-mfnp
8611/udp closed canon-bjnp1
8612/udp closed canon-bjnp2
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
Nmap done: 1 IP address (1 host up) scanned in 0.22 seconds
btw, i found out that the g7020 is NOT an imageclass printer (at least canon doesn't list it there), so only ports 8611,8612 seem to be of interest here.
so these are closed.
to open them on the scanner what do i do?
use scangearmp2?
is this what you meant when you asked if i need to configure the scanner?
in friendship,
prad
Offline
to open them on the scanner what do i do?
…
is this what you meant when you asked if i need to configure the scanner?
Yes, but I doubt some client tool (scangearmp2) can do that.
You'd have to do that on the printer/scanner.
Can you open
https://192.168.50.32/ ?
Offline
yes!
i'm beginning to understand what's going on here - it's access similar to my router. i never knew that a printer would be accessible this way (but that's probably because i don't print much at all).
this is excellent - i will fiddle around here for a while and post what i learn.
thx as always seth!!
in friendship,
prad
Offline
seth, here is the progress report:
1. i can find no way to open port 8611 using the browser access to the printer having gone through everything. ![]()
however, setting wsd did allow me to detect the scanner from a windows machine, so at least that works.
2. i am able to scan over wifi using scangearmp2 just as you had suggested and as per this on the wiki ![]()
Scanning over the network with Canon PIXMA or imageCLASS all-in-one printer/scanners
Find out your printer/scanner's IP address, and add it on a new line to /etc/sane.d/pixma.conf in the format bjnp://10.0.0.20.
...
Sane should now find your device. For more details refer to sane-pixma(5).
[b][edit: but it didn't find the scanner][/b]
...
Alternatively, scangearmp2AUR can be used for some Canon PIXMA all-in-one printer/scanners which are not detected over the network.so i can scan now and pragmatically the problem is solved, but i still don't see how to access the scanner via sane using the instructions given in the "scanning over the network ..." page. it seems though that this technique only works for some canon scanners.
i would like to know what they did in scangearmp2 to pick up the scanner. btw, it's a really nice program and does a great job with the scanning!
Last edited by pradtf (2023-02-22 07:26:03)
in friendship,
prad
Offline
I would like to know what they did in scangearmp2 to pick up the scanner.
https://archlinux.org/packages/communit … eshark-qt/ (or https://archlinux.org/packages/communit … termshark/ )
It'll allow you to comfortably sniff the traffic between your host and the scanner (filter by IP) and see how scangearmp2 communicates w/ the scanner.
Edit: you could also nmap the scanner while scanning.
If I had to guess, I could imagine that scangearmp2 uses port 80 or 443 to talk to the scanner and convince it to open the bjnp port and then uses that protocol - but that's wild speculation.
Last edited by seth (2023-02-22 07:36:40)
Offline
t'll allow you to comfortably sniff the traffic between your host and the scanner (filter by IP) and see how scangearmp2 communicates w/ the scanner.
Edit: you could also nmap the scanner while scanning.
If I had to guess, I could imagine that scangearmp2 uses port 80 or 443 to talk to the scanner and convince it to open the bjnp port and then uses that protocol - but that's wild speculation.
i like that wild speculation! ![]()
ok! i explore your suggestions.
thx for hanging in there with me on this seth!
i'll flag this thread as solved for now and if i learn anything, i'll post back here.
EDIT 23-03-08
i tried
sudo nmap -sU -p 8610-8612 192.168.50.32with scanning on and off.
the ports remained closed though in each case.
scanning
Starting Nmap 7.93 ( https://nmap.org ) at 2023-03-08 14:32 PST
Nmap scan report for pixi (192.168.50.32)
Host is up (0.013s latency).
PORT STATE SERVICE
8610/udp closed canon-mfnp
8611/udp closed canon-bjnp1
8612/udp closed canon-bjnp2
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
Nmap done: 1 IP address (1 host up) scanned in 0.23 secondsNOT scanning
Starting Nmap 7.93 ( https://nmap.org ) at 2023-03-08 14:32 PST
Nmap scan report for pixi (192.168.50.32)
Host is up (0.0095s latency).
PORT STATE SERVICE
8610/udp closed canon-mfnp
8611/udp closed canon-bjnp1
8612/udp closed canon-bjnp2
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
Nmap done: 1 IP address (1 host up) scanned in 0.18 secondsNOT scanning
Starting Nmap 7.93 ( https://nmap.org ) at 2023-03-08 14:36 PST
Nmap scan report for pixi (192.168.50.32)
Host is up (0.12s latency).
PORT STATE SERVICE
8610/udp closed canon-mfnp
8611/udp closed canon-bjnp1
8612/udp closed canon-bjnp2
MAC Address: 6C:3C:7C:15:F1:79 (Canon)
Nmap done: 1 IP address (1 host up) scanned in 0.38 secondsso this suggests that scangearmp2 is accessing the scanner through some other port. i'll ask tech support at canon - they supply a scargear themselves (possibly scangearmp2 is an aured version).
Last edited by pradtf (2023-03-08 22:42:46)
in friendship,
prad
Offline