ThierryHFR / scangearmp2

This project is a sane backend for the canon's scanner, based on the source code of scangearmp2.
Other
78 stars 17 forks source link

scangear cannot see mf269dw scanner #52

Closed PinkMushroom closed 3 years ago

PinkMushroom commented 3 years ago

hi,

I saw the other issue about the out of memory error, and since i had also seen that error, i tried some of the things in that thread.

so i used scangearmp2-3.00-1-deb$ sudo ./install.sh

==================================================

ScanGear MP Version 3.00 Copyright CANON INC. 2007-2014

==================================================

Command executed = sudo dpkg -iG ./packages/scangearmp2_3.00-1_amd64.deb Selecting previously unselected package scangearmp2. (Reading database ... 437984 files and directories currently installed.) Preparing to unpack .../scangearmp2_3.00-1_amd64.deb ... Unpacking scangearmp2 (3.00-1) ... Setting up scangearmp2 (3.00-1) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Installation has been completed.

then i ran the suggested commands: scanimage -V scanimage (sane-backends) 1.0.29; backend version 1.0.29

avahi-browse -rt _uscan._tcp avahi-browse -rt _uscans._tcp

That's not a typo. Neither of the avahi-browse commands seems to find anything, but here is my scanner, or at least the printer on the scanner...

ping 192.168.1.89 PING 192.168.1.89 (192.168.1.89) 56(84) bytes of data. 64 bytes from 192.168.1.89: icmp_seq=1 ttl=255 time=0.584 ms 64 bytes from 192.168.1.89: icmp_seq=2 ttl=255 time=0.347 ms 64 bytes from 192.168.1.89: icmp_seq=3 ttl=255 time=0.386 ms

and scangear gives me an error that it cannot find available scanners.

any suggestions ?

thank you !

ThierryHFR commented 3 years ago

Hi @PinkMushroom; 1 - Can you give me the exact model of your device? 2 - Can you tell me what your distribution is?

Thierry

PinkMushroom commented 3 years ago

1 - the model name is Imageclass MF269dw. I found the product sticker, it doesn't explicitly say that there is a model number however I can see "F173302" in large bold font on the sticker 2 - Linux Mint 20.2 Uma

I have story which might provide a clue. When i first installed the printer driver for the Canon, magically the scanner worked too. However it was showing 3 devices (which was very weird) and you had to pick the right one or it didn't work. Well , one upgrade to Mint later (I think I was on 19.2), there is only 1 device showing

CANON Canon i-SENSYS MF260 Series

and it doesn't work. And I realize i should be more specific about "doesn't work". it scans, but provides about 10 pixel lines of garbage when it does. I still see that device when i use simplescan.

Even now when i bring up the print dialog, 3 devices show up.

Canon-MF260 Canon_MF260 Canon-MF260-Series-UFRII-LT Also the print dialog from an application (like firefox for example) and the system printer dialog show different numbers of printers. There is little doubt this is all due to CUPS which i find really frustrating to work with.

Happy to do whatever i can to help. Thank you.

ThierryHFR commented 3 years ago

Hi @PinkMushroom ,

oip.manual.canon Scangearmp2 is not useful for your device. Cups only takes care of the printing, indeed several protocols can be used on your device, I advise you ipp (Airprint, doc attached above to activate it) Then for the scanner, I advise you to update sane :

sudo add-apt-repository ppa:sane-project/sane-git
sudo apt-get update
sudo apt install libsane1 libsane-comon sane-utils

Thierry

PinkMushroom commented 3 years ago

LOL. i read through the description carefully and thought for sure it was what I needed.

Yes I knew cups only handled printing, i figured that the scanner thing was a weird coincidence.

Executing: /tmp/apt-key-gpghome.R1azeTA6RU/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys B5904B171A07B33815710C02DDEAC554C101175B gpg: keyserver receive failed: General error

I know it's not your job to help me debug Linux mint. However i show you the above error in case it's not a mint problem, but a problem at the other end.

i can't seem to add ppas...

ThierryHFR commented 3 years ago

Try this:

sudo apt update
sudo apt install sane-airscan
PinkMushroom commented 3 years ago

that installed no problem. but i get a "cannot start scan error".

BTW, i'm a bit confused. when i read the description of scangearmp2 it says:

This backend is for making the CANON's scanners, using the new communication protocol, to be supported by sane and any of the frontends implementing sane.

But apparently that is not my situation. BTW i have posted to linux mint forum to try and resolve my ppa issue. also, since the package is "airscan" does that mean i need to have the wireless enabled on the MF269 ? I don't so, i guess i'll need to turn that on to try this properly.

However, if the driver doesn't work on the wired connection, why would it work on the wireless ? different protocols ?

Thanks for your help !

ThierryHFR commented 3 years ago

AirPrint and AirScan are network communication protocols for printers or scanners. It is possible to use this protocol with the help of ipp-usb, which transforms http requests into usb requests. Can you give me the result of this order: scanimage -L

PinkMushroom commented 3 years ago

device pixma:MF260_192.168.1.89' is a CANON Canon i-SENSYS MF260 Series multi-function peripheral deviceescl:https://192.168.1.89:443' is a ESCL Canon MF260 SSL flatbed scanner device escl:http://192.168.1.89:80' is a ESCL Canon MF260 flatbed scanner deviceairscan:e0:Canon MF260' is a eSCL Canon MF260 ip=192.168.1.89

PinkMushroom commented 3 years ago

well that's weird...

This one works ==> escl:https://192.168.1.89:443' is a ESCL Canon MF260 SSL flatbed scanner

Now if only i knew why, but I did do another Mint update about 1 hour ago, quite a few package updates had accumulated.

hopefully this thread helps someone else trying to get there MF269dw working :-)

Thank you again for your help.

ThierryHFR commented 3 years ago

Hi @PinkMushroom, This is good news, I will postpone to the Sane Project, the operation of this device. I will have to wait for the next release, your model will be present in version 1.0.34. For info I did a big work on the ESCL backend of Sane, many features have been added, the 1.0.33 version will be released soon, I have no doubt that your distribution will integrate it. I don't know what version of Sane you have ? scanimage --version

Thierry

PinkMushroom commented 3 years ago

Here is the version

scanimage (sane-backends) 1.0.29; backend version 1.0.29

Let me know if there is anything i can do to help. I'm happy to test code :-)

ThierryHFR commented 3 years ago

Your distribution is very late, the current version is 1.0.32 and 1.0.33 will be released.