Hello,<br>I&#39;ve got a Canon MP180 scanner that is not working with sane.<br>I&#39;ve downloaded the source code of the driver pixma_mp150 that&#39;s part of the sane project. It supports the following scanners : MP150, MP170, MP450, MP500, MP530, MP800, MP800R and MP830.
<br><br>I want to make my scanner to work with this backend, but I don&#39;t know if it&#39;s safe.<br><br>I&#39;ve searched for the word MP170 :<br>$ grep -ri MP170 *<br>pixma.desc::model &quot;PIXMA MP170&quot;<br>pixma_mp150.c:#define MP170_PID 0x170a
<br>pixma_mp150.c:&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP170&quot;, MP170_PID, 1200, 0),<br>( and some html pages, manpages... )<br>_________________<br>Details of the files found:<br>*pixma.desc @ line 33:<br>:model &quot;PIXMA MP170&quot;
<br>:interface &quot;USB&quot;<br>:usbid &quot;0x04a9&quot; &quot;0x170a&quot;<br>:status :good<br><br>*pixma_mp150.c @ line 59:<br>#define MP150_PID 0x1709<br>#define MP170_PID 0x170a<br>#define MP450_PID 0x170b<br>#define MP500_PID 0x170c
<br>#define MP530_PID 0x1712<br>#define MP800_PID 0x170d<br>#define MP800R_PID 0x170e<br>#define MP830_PID 0x1713<br><br>*pixma_mp150.c @ line 718:<br>const pixma_config_t pixma_mp150_devices[] = {<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP150&quot;, MP150_PID, 1200, 0),
<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP170&quot;, MP170_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP450&quot;, MP450_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP500&quot;, MP500_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP530&quot;, MP530_PID, 1200, PIXMA_CAP_ADF),
<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP800&quot;, MP800_PID, 2400, PIXMA_CAP_TPU|PIXMA_CAP_48BIT),<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP800R&quot;, MP800R_PID, 2400, PIXMA_CAP_TPU|PIXMA_CAP_48BIT),<br>&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP830&quot;, MP830_PID, 2400, PIXMA_CAP_ADFDUP|PIXMA_CAP_48BIT),
<br>&nbsp;&nbsp;&nbsp; DEVICE(NULL, 0, 0, 0)<br>};<br>_________________<br><br>So the only things specific to this scanner are :<br>- Its name : &quot;Canon PIXMA MP170&quot;<br>- Its usbid : &quot;0x04a9&quot; &quot;0x170a&quot;<br>- Its resolution : 1200
<br>- Its capability : 0 (nothing)<br>_________________<br><br>With the command sane-find-scanner I&#39;ve this :<br>found USB scanner (vendor=0x04a9 [Canon], product=0x1715 [MP180]) at libusb:002:002<br><br>So I think that my scanner has these specific values :
<br>- Its name : &quot;Canon PIXMA MP180&quot;<br>- Its usbid : &quot;0x04a9&quot; &quot;0x1715&quot;<br>- Its resolution : 1200 (this resolution is the same)<br>- Its capability : 0 (nothing because I don&#39;t know)<br>
<br>If I want to use this driver, I only need to add the entries for this scanner :<br><br>--- pixma.desc.orig&nbsp;&nbsp;&nbsp;&nbsp; 2007-01-20 19:49:56.000000000 +0100<br>+++ pixma.desc&nbsp; 2007-01-20 19:50:23.000000000 +0100<br>@@ -35,6 +35,11 @@
<br>&nbsp;:usbid &quot;0x04a9&quot; &quot;0x170a&quot;<br>&nbsp;:status :good<br><br>+:model &quot;PIXMA MP180&quot;<br>+:interface &quot;USB&quot;<br>+:usbid &quot;0x04a9&quot; &quot;0x1715&quot;<br>+:status :minimal<br>+<br>&nbsp;:model &quot;SmartBase MP360&quot;
<br>&nbsp;:interface &quot;USB&quot;<br>&nbsp;:usbid &quot;0x04a9&quot; &quot;0x263c&quot;<br><br>--- pixma_mp150.c.orig&nbsp; 2007-01-20 19:49:44.000000000 +0100<br>+++ pixma_mp150.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2007-01-20 19:52:03.000000000 +0100<br>@@ -58,6 +58,7 @@
<br><br>&nbsp;#define MP150_PID 0x1709<br>&nbsp;#define MP170_PID 0x170a<br>+#define MP180_PID 0x1715<br>&nbsp;#define MP450_PID 0x170b<br>&nbsp;#define MP500_PID 0x170c<br>&nbsp;#define MP530_PID 0x1712<br>@@ -718,6 +719,7 @@<br>&nbsp;const pixma_config_t pixma_mp150_devices[] = {
<br>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP150&quot;, MP150_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP170&quot;, MP170_PID, 1200, 0),<br>+&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP180&quot;, MP180_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP450&quot;, MP450_PID, 1200, 0),
<br>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP500&quot;, MP500_PID, 1200, 0),<br>&nbsp;&nbsp;&nbsp;&nbsp; DEVICE(&quot;Canon PIXMA MP530&quot;, MP530_PID, 1200, PIXMA_CAP_ADF),<br><br>_________________<br><br>But before to do this, I have a question : Is it dangerous for my scanner? For the system? Or at worse it just won&#39;t work?
<br><br>If I do this, I&#39;ll send you some feedback.<br><br>-- <br>Pierre ReniĆ© <br>