[sane-devel] Canon ImageClass MF269dw

Colin DuPlantis colin at marketcetera.com
Tue Apr 16 17:40:19 BST 2019


Alas, I cannot report success.

I was able to modify and build as you suggested.

I now get this:

$ sane-find-scanner

   # sane-find-scanner will now attempt to detect your scanner. If the
   # result is different from what you expected, first make sure your
   # scanner is powered up and properly connected to your computer.

   # No SCSI scanners found. If you expected something different, make 
sure that
   # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9, product=0x27f4) at libusb:012:002
   # Your USB scanner was (probably) detected. It may or may not be 
supported by
   # SANE. Try scanimage -L and read the backend's manpage.

   # Not checking for parallel port scanners.

   # Most Scanners connected to the parallel port or other proprietary ports
   # can't be detected by this program.

   # You may want to run this program as root to find all devices. Once you
   # found the scanner devices, be sure to adjust access permissions as
   # necessary.

and:

$ scanimage -L
device `pixma:04A927F4' is a CANON Canon i-SENSYS MF269 Series 
multi-function peripheral

but:

$ scanimage -T
scanimage: open of device pixma:04A927F4 failed: Access to resource has 
been denied

and:

$ sudo scanimage -T
scanimage: scanning image of size 634x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1902 bytes...    FAIL Error: Error 
during device I/O

$ sudo scanimage -V
scanimage (sane-backends) 1.0.27; backend version 1.0.27

Any other info that might help?

I've attached the patch.

Regardless, thanks very much for your help.

On 4/16/19 9:18 AM, Ralph Little wrote:
> Hi,
> Good luck!
> A lot of the imageClass (I-SENSYS in Europe, I think) printers seem to 
> be pretty much the same inside with slight software variations.
> Seems like they keep having to churn the designs externally.
>
> Cheers,
> Ralph
>
> ------------------------------------------------------------------------
> *From:* Colin DuPlantis <colin at marketcetera.com>
> *To:* Ralph Little <littlesincanada at yahoo.co.uk>; 
> "sane-devel at alioth-lists.debian.net" <sane-devel at alioth-lists.debian.net>
> *Sent:* Tuesday, April 16, 2019 9:09 AM
> *Subject:* Re: [sane-devel] Canon ImageClass MF269dw
>
> Thanks for the quick response, Ralph, I'll take a swing at building it 
> and post the results to the list.
> On 4/16/19 9:07 AM, Ralph Little wrote:
> Hi,
> It is an imageClass printer by the looks of it.
> The USB code does not seem to be listed in the source so probably not 
> a supported printer.
> The relevant code is in the SANE backends here:
>
> https://gitlab.com/sane-project/backends/blob/master/backend/pixma_imageclass.c
>
> See the list of #defines at the top.
> If you're feeling adventurous, you could add the printer to the source 
> and see if it works.
> It looks very similar to the MF244 so you could use that as a template.
>
> At the top, add:
> #define MF269_PID 0x27f4
>
> and towards the bottom, add:
> DEV ("Canon i-SENSYS MF269 Series", "MF269", MF269_PID, 600, 300, 634, 
> 1050, PIXMA_CAP_ADF), /* max. w = 215mm, */
>
> ...and build it and test it. Better to start with USB rather than network.
>
> Failing that, perhaps Rolf could add it tentatively for his PPA.
> He is usually pretty responsive.
>
> Cheers,
> Ralph
>
>
> ------------------------------------------------------------------------
> *From:* Colin DuPlantis <colin at marketcetera.com> 
> <mailto:colin at marketcetera.com>
> *To:* sane-devel at alioth-lists.debian.net 
> <mailto:sane-devel at alioth-lists.debian.net>
> *Sent:* Tuesday, April 16, 2019 8:33 AM
> *Subject:* [sane-devel] Canon ImageClass MF269dw
>
> I was able to use a Canon ImageClass MF260-series with vanilla Ubuntu
> 18.04 recently, I'm pretty sure it was the MF264dw.
>
> I ordered one for myself, but failed to notice that I was getting the
> MF269dw instead of the 264.
>
> SANE-powered apps don't seem to be able to detect the scanner, though
> the printer works fine.
>
> $ sudo sane-find-scanner
>
>   # sane-find-scanner will now attempt to detect your scanner. If the
>   # result is different from what you expected, first make sure your
>   # scanner is powered up and properly connected to your computer.
>
>   # No SCSI scanners found. If you expected something different, make
> sure that
>   # you have loaded a kernel SCSI driver for your SCSI adapter.
>
> could not fetch string descriptor: Pipe error
> could not fetch string descriptor: Pipe error
> found USB scanner (vendor=0x04a9 [Language Error], product=0x27f4
> [Language Error]) at libusb:012:002
>   # Your USB scanner was (probably) detected. It may or may not be
> supported by
>   # SANE. Try scanimage -L and read the backend's manpage.
>
>   # Not checking for parallel port scanners.
>
>   # Most Scanners connected to the parallel port or other proprietary 
> ports
>   # can't be detected by this program.
>
> I also tried using the network connection. I looked at the pixma.conf as
> the best bet for the driver, but noticed that the printer is not
> listening on port 8612.
>
> $ nmap 10.0.25.165
>
> Starting Nmap 7.60 ( https://nmap.org <https://nmap.org/>) at 
> 2019-04-16 08:06 PDT
> Nmap scan report for 10.0.25.165
> Host is up (0.019s latency).
> Not shown: 995 closed ports
> PORT     STATE SERVICE
> 80/tcp   open  http
> 443/tcp  open  https
> 515/tcp  open  printer
> 631/tcp  open  ipp
> 9100/tcp open  jetdirect
>
> Nmap done: 1 IP address (1 host up) scanned in 0.57 seconds
>
> Any suggestions?
>
> Thanks.
>
>
> -- 
> sane-devel mailing list: sane-devel at alioth-lists.debian.net 
> <mailto:sane-devel at alioth-lists.debian.net>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to sane-devel-request at lists.alioth.debian.org 
> <mailto:sane-devel-request at lists.alioth.debian.org>
>
>
> -- 
> Colin DuPlantis
> Chief Architect, Marketcetera
> Download, Run, Trade
> 888.868.4884
> https://www.marketcetera.com  <https://www.marketcetera.com/>
>
>
-- 
Colin DuPlantis
Chief Architect, Marketcetera
Download, Run, Trade
888.868.4884
https://www.marketcetera.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20190416/a48346d1/attachment-0001.html>
-------------- next part --------------
diff --git a/backend/pixma_imageclass.c b/backend/pixma_imageclass.c
index 8ad0083..94b1b6b 100644
--- a/backend/pixma_imageclass.c
+++ b/backend/pixma_imageclass.c
@@ -105,7 +105,7 @@
 #define MF210_PID  0x27a9
 #define MF230_PID  0x27d1
 #define MF240_PID  0x27d2
-
+#define MF269_PID  0x27f4
 
 enum iclass_state_t
 {
@@ -943,5 +943,6 @@ const pixma_config_t pixma_iclass_devices[] = {
   DEV ("Canon i-SENSYS MF210 Series", "MF210", MF210_PID, 600, 0, 640, 1050, PIXMA_CAP_ADF),
   DEV ("Canon i-SENSYS MF230 Series", "MF230", MF230_PID, 600, 0, 640, 1050, PIXMA_CAP_ADF),
   DEV ("Canon i-SENSYS MF240 Series", "MF240", MF240_PID, 600, 0, 640, 1050, PIXMA_CAP_ADF),
+  DEV ("Canon i-SENSYS MF269 Series", "MF269", MF269_PID, 600, 300, 634, 1050, PIXMA_CAP_ADF),               /* max. w = 215mm, */
   DEV (NULL, NULL, 0, 0, 0, 0, 0, 0)
 };


More information about the sane-devel mailing list