<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I found out my problem. I'm embarrased to admit it, but I had too many versions of the source lying around.<div><br></div><div>It's all fixed now, and the pixma_mp730.c finds the 4150. I left the full debug info on and here's the end of the output:</div><div><br></div><div><div>[pixma] pixma_open(): Canon MultiPASS MP4150</div><div>[sanei_usb] sanei_usb_open: trying to open device `libusb:003:004-04a9-26a3-00-00'</div><div>usb_os_open: 04a9:26a3</div><div>usb_set_configuration: called for config 1</div><div>usb_claim_interface: called for interface 0</div><div>Interface 0 of device is 0x000010c3</div><div>claim_interface: Interface 0 of device from QueryInterface is 0x10da00</div><div>libusb/darwin.c get_endpoints: building table of endpoints.</div><div>get_endpoints: Pipe 1: DIR: 0 number: 1</div><div>get_endpoints: Pipe 2: DIR: 1 number: 2</div><div>get_endpoints: Pipe 3: DIR: 1 number: 3</div><div>libusb/darwin.c get_endpoints: complete.</div><div>[sanei_usb] sanei_usb_open: configuration nr: 0</div><div>[sanei_usb] sanei_usb_open: interface nr: 0</div><div>[sanei_usb] sanei_usb_open: alt_setting nr: 0</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 0</div><div>[sanei_usb] sanei_usb_open: direction: 0</div><div>[sanei_usb] sanei_usb_open: address: 1 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x01)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-out endpoint (address: 0x01), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 1</div><div>[sanei_usb] sanei_usb_open: direction: 128</div><div>[sanei_usb] sanei_usb_open: address: 2 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x02)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-in endpoint (address: 0x82), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 2</div><div>[sanei_usb] sanei_usb_open: direction: 128</div><div>[sanei_usb] sanei_usb_open: address: 3 transfertype: 3</div><div>[sanei_usb] sanei_usb_open: found interrupt-in endpoint (address 0x03)</div><div>[sanei_usb] sanei_usb_open: we already have a int-in endpoint (address: 0x83), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: configuration nr: 0</div><div>[sanei_usb] sanei_usb_open: interface nr: 1</div><div>[sanei_usb] sanei_usb_open: alt_setting nr: 0</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 0</div><div>[sanei_usb] sanei_usb_open: direction: 0</div><div>[sanei_usb] sanei_usb_open: address: 4 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x04)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-out endpoint (address: 0x01), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 1</div><div>[sanei_usb] sanei_usb_open: direction: 128</div><div>[sanei_usb] sanei_usb_open: address: 5 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x05)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-in endpoint (address: 0x82), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: configuration nr: 0</div><div>[sanei_usb] sanei_usb_open: interface nr: 2</div><div>[sanei_usb] sanei_usb_open: alt_setting nr: 0</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 0</div><div>[sanei_usb] sanei_usb_open: direction: 0</div><div>[sanei_usb] sanei_usb_open: address: 6 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x06)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-out endpoint (address: 0x01), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: endpoint nr: 1</div><div>[sanei_usb] sanei_usb_open: direction: 128</div><div>[sanei_usb] sanei_usb_open: address: 7 transfertype: 2</div><div>[sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x07)</div><div>[sanei_usb] sanei_usb_open: we already have a bulk-in endpoint (address: 0x82), ignoring the new one</div><div>[sanei_usb] sanei_usb_open: opened usb device `libusb:003:004-04a9-26a3-00-00' (*dn=1)</div><div>[pixma] Trying to clear the interrupt buffer...</div><div>[sanei_usb] sanei_usb_read_int: trying to read 16 bytes</div><div>libusb/darwin.c ep_to_pipeRef: Converting ep address to pipeRef.</div><div>libusb/darwin.c usb_bulk_transfer: Transfering 16 bytes of data on endpoint 0x83</div><div>libusb/darwin.c usb_bulk_transfer: USB pipe is an interrupt pipe. Timeouts will not be used.</div><div><br></div><div><br></div><div>So no, it's not surreal when an idiot like me is working on things!</div><div><br></div><div>bob</div><div><br></div><div><br></div><div><br></div><div><div>On Sep 1, 2008, at 2:52 PM, Nicolas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> This is a surrealistic<font color="#000000">!</font><br> <br> Could you load again the file pixma_mp730.c from CVS, and inside, just change one of the PIDs declared at the beginning<font color="#000000">,</font> by MF4150 one's :<br> <br> Original pixma_mp730.c:<br> <br> #define IMAGE_BLOCK_SIZE (0xc000)<br> #define CMDBUF_SIZE 512<br> <br> #define MP360_PID 0x263c<br> #define MP370_PID 0x263d<br> #define MP390_PID 0x263e<br> #define MP700_PID 0x2630<br> <br> #define MP740_PID 0x264c        /* Untested */<br> #define MP710_PID 0x264d<br> #define MP730_PID 0x262f<br> <br> <br> Just change the line for MP700:<br> <br> #define IMAGE_BLOCK_SIZE (0xc000)<br> #define CMDBUF_SIZE 512<br> <br> #define MP360_PID 0x263c<br> #define MP370_PID 0x263d<br> #define MP390_PID 0x263e<br> #define MP700_PID <font color="#ff0000">0x26a3</font><br> <br> #define MP740_PID 0x264c /* Untested */<br> #define MP710_PID 0x264d<br> #define MP730_PID 0x262f<br> <br> Then, before running your scanimage -L , activate a full usb trace log:<br> <br> <tt>$ export SANE_DEBUG_SANEI_USB=255</tt><br> <tt>$ export SANE_DEBUG=255</tt><br> <tt>$ export </tt><tt><font color="#000000">SANE_DEBUG_PIXMA=20</font></tt><br> <tt>$ scanimage -</tt><tt><font color="#000000">L</font></tt><tt> </tt><br> <br> <br> <font color="#000000">You should get a very "verbose" trace.</font><br> <br> <font color="#000000">Nicolas</font><br> <br> Le lundi 01 septembre 2008 à 11:28 -0500, Bob Dronski a écrit :<br> <blockquote type="CITE"> Nicolas, </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> I really don't understand what may be happening. Here are the appropriate sections in the 2 files with my changes: </blockquote> <blockquote type="CITE"> --------------------------------------- </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> pixma_imageclass.c: </blockquote> <blockquote type="CITE"> #define IMAGE_BLOCK_SIZE (<font color="#1c00cf">0xffff</font>) </blockquote> <blockquote type="CITE"> #define MAX_CHUNK_SIZE (<font color="#1c00cf">0x1000</font>) </blockquote> <blockquote type="CITE"> #define MIN_CHUNK_SIZE (<font color="#1c00cf">0x0200</font>) </blockquote> <blockquote type="CITE"> #define CMDBUF_SIZE <font color="#1c00cf">512</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> #define MF4200_PID <font color="#1c00cf">0x26b5</font> </blockquote> <blockquote type="CITE"> /* the following are all untested */ </blockquote> <blockquote type="CITE"> #define MF5630_PID <font color="#1c00cf">0x264e</font> </blockquote> <blockquote type="CITE"> #define MF5650_PID <font color="#1c00cf">0x264f</font> </blockquote> <blockquote type="CITE"> #define MF8100_PID <font color="#1c00cf">0x2659</font> </blockquote> <blockquote type="CITE"> #define MF5730_PID <font color="#1c00cf">0x265d</font> </blockquote> <blockquote type="CITE"> #define MF5750_PID <font color="#1c00cf">0x265e</font> </blockquote> <blockquote type="CITE"> #define MF5770_PID <font color="#1c00cf">0x265f</font> </blockquote> <blockquote type="CITE"> #define MF3110_PID <font color="#1c00cf">0x2660</font> </blockquote> <blockquote type="CITE"> #define MF3200_PID <font color="#1c00cf">0x2684</font> </blockquote> <blockquote type="CITE"> #define MF6500_PID <font color="#1c00cf">0x2686</font> </blockquote> <blockquote type="CITE"> //#define MF4100_PID 0x26a3 </blockquote> <blockquote type="CITE"> #define MF4600_PID <font color="#1c00cf">0x26b0</font> </blockquote> <blockquote type="CITE"> #define MF4010_PID <font color="#1c00cf">0x26b4</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font color="#aa0d91">enum</font> iclass_state_t </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font size="2">AND</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font size="2"><font color="#aa0d91">const</font></font><font size="2"> pixma_config_t pixma_iclass_devices[] = {</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF4270"</font></font><font size="2">, MF4200_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2">/* FIXME: the following capabilities all need updating/verifying */</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF5630"</font></font><font size="2">, MF5630_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon laserBase MF5650"</font></font><font size="2">, MF5650_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF8170c"</font></font><font size="2">, MF8100_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF5730"</font></font><font size="2">, MF5730_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF5750"</font></font><font size="2">, MF5750_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF5770"</font></font><font size="2">, MF5770_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF3110"</font></font><font size="2">, MF3110_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF3240"</font></font><font size="2">, MF3200_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon MF6500 Series"</font></font><font size="2">, MF6500_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2">// DEV ("Canon imageCLASS MF4150", MF4100_PID, 600, 640, 877, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF4690"</font></font><font size="2">, MF4600_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#c41a16">"Canon imageCLASS MF4010"</font></font><font size="2">, MF4010_PID, </font><font size="2"><font color="#1c00cf">600</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">640</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">877</font></font><font size="2">, PIXMA_CAP_ADF),</font> </blockquote> <blockquote type="CITE"> <font size="2"> DEV (</font><font size="2"><font color="#aa0d91">NULL</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">0</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">0</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">0</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">0</font></font><font size="2">, </font><font size="2"><font color="#1c00cf">0</font></font><font size="2">)</font> </blockquote> <blockquote type="CITE"> <font size="2">};</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font size="2">-----------------</font> </blockquote> <blockquote type="CITE"> pixma_mp730.c: </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> #define IMAGE_BLOCK_SIZE (<font color="#1c00cf">0xc000</font>) </blockquote> <blockquote type="CITE"> #define CMDBUF_SIZE <font color="#1c00cf">512</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> #define MP360_PID <font color="#1c00cf">0x263c</font> </blockquote> <blockquote type="CITE"> #define MP370_PID <font color="#1c00cf">0x263d</font> </blockquote> <blockquote type="CITE"> #define MP390_PID <font color="#1c00cf">0x263e</font> </blockquote> <blockquote type="CITE"> #define MP700_PID <font color="#1c00cf">0x2630</font> </blockquote> <blockquote type="CITE"> #define MP730_PID <font color="#1c00cf">0x262f</font> </blockquote> <blockquote type="CITE"> #define MF4100_PID <font color="#1c00cf">0x26a3</font> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font color="#aa0d91">enum</font> mp730_state_t </blockquote> <blockquote type="CITE"> { </blockquote> <blockquote type="CITE"> <br> <br> <br> <br> AND <br> <br> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <font color="#aa0d91">const</font> pixma_config_t pixma_mp730_devices[] = { </blockquote> <blockquote type="CITE"> /* TODO: check area limits */ </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon SmartBase MP360"</font>, MP360_PID, <font color="#1c00cf">1200</font>, <font color="#1c00cf">636</font>, <font color="#1c00cf">868</font>, <font color="#1c00cf">0</font>), </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon SmartBase MP370"</font>, MP370_PID, <font color="#1c00cf">1200</font>, <font color="#1c00cf">636</font>, <font color="#1c00cf">868</font>, <font color="#1c00cf">0</font>), </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon SmartBase MP390"</font>, MP390_PID, <font color="#1c00cf">1200</font>, <font color="#1c00cf">636</font>, <font color="#1c00cf">868</font>, <font color="#1c00cf">0</font>), </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon MultiPASS MP700"</font>, MP700_PID, <font color="#1c00cf">1200</font>, <font color="#1c00cf">638</font>, <font color="#1c00cf">877</font> <font color="#007400">/*1035 */</font> , <font color="#1c00cf">0</font>), </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon MultiPASS MP730"</font>, MP730_PID, <font color="#1c00cf">1200</font>, <font color="#1c00cf">637</font>, <font color="#1c00cf">868</font>, PIXMA_CAP_ADF), </blockquote> <blockquote type="CITE"> DEVICE (<font color="#c41a16">"Canon imageCLASS MF4150"</font>, MF4100_PID, <font color="#1c00cf">600</font>, <font color="#1c00cf">640</font>, <font color="#1c00cf">877</font>, PIXMA_CAP_ADF), </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> DEVICE (<font color="#aa0d91">NULL</font>, <font color="#1c00cf">0</font>, <font color="#1c00cf">0</font>, <font color="#1c00cf">0</font>, <font color="#1c00cf">0</font>, <font color="#1c00cf">0</font>) </blockquote> <blockquote type="CITE"> }; </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> ----------------- </blockquote> <blockquote type="CITE"> When I implement those changes, here are the results: </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Monster:sane bob$ scanimage -T -vv </blockquote> <blockquote type="CITE"> [sanei_debug] Setting debug level of pixma to 20. </blockquote> <blockquote type="CITE"> [pixma] pixma version 0.14.5 </blockquote> <blockquote type="CITE"> [pixma] pixma_find_scanners() found 0 devices </blockquote> <blockquote type="CITE"> scanimage: no SANE devices found </blockquote> <blockquote type="CITE"> Calling sane_exit </blockquote> <blockquote type="CITE"> scanimage: finished </blockquote> <blockquote type="CITE"> Monster:sane bob$ </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Here is the debug output on the unmodified code: </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Monster:sane bob$ scanimage -T -vv </blockquote> <blockquote type="CITE"> [sanei_debug] Setting debug level of pixma to 20. </blockquote> <blockquote type="CITE"> [pixma] pixma version 0.14.5 </blockquote> <blockquote type="CITE"> [pixma] pixma_collect_devices() found Canon imageCLASS MF4150 at libusb:003:004-04a9-26a3-00-00 </blockquote> <blockquote type="CITE"> [pixma] pixma_find_scanners() found 1 devices </blockquote> <blockquote type="CITE"> [pixma] pixma_collect_devices() found Canon imageCLASS MF4150 at libusb:003:004-04a9-26a3-00-00 </blockquote> <blockquote type="CITE"> [pixma] pixma_open(): Canon imageCLASS MF4150 </blockquote> <blockquote type="CITE"> [pixma] Trying to clear the interrupt buffer... </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> and it hangs.... </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Wandering into dangerous territory, since I know nothing about the code, I commented out the code to clear the buffer: </blockquote> <blockquote type="CITE"> <font color="#000000"> PDBG (pixma_dbg (</font><font color="#1c00cf">3</font><font color="#000000">, </font>" Trying to clear the interrupt buffer...\n"<font color="#000000">));</font> </blockquote> <blockquote type="CITE"> <font color="#000000"> </font>/* if (handle_interrupt (s, 200) == 0) </blockquote> <blockquote type="CITE"> { </blockquote> <blockquote type="CITE"> PDBG (pixma_dbg (3, " no packets in buffer\n")); </blockquote> <blockquote type="CITE"> }*/ </blockquote> <blockquote type="CITE"> <font color="#000000"> </font>return<font color="#000000"> </font><font color="#1c00cf">0</font><font color="#000000">;</font> </blockquote> <blockquote type="CITE"> } </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> And got this result: </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Monster:sane bob$ scanimage -T -vv </blockquote> <blockquote type="CITE"> [sanei_debug] Setting debug level of pixma to 20. </blockquote> <blockquote type="CITE"> [pixma] pixma version 0.14.5 </blockquote> <blockquote type="CITE"> [pixma] pixma_collect_devices() found Canon imageCLASS MF4150 at libusb:003:004-04a9-26a3-00-00 </blockquote> <blockquote type="CITE"> [pixma] pixma_find_scanners() found 1 devices </blockquote> <blockquote type="CITE"> [pixma] pixma_collect_devices() found Canon imageCLASS MF4150 at libusb:003:004-04a9-26a3-00-00 </blockquote> <blockquote type="CITE"> [pixma] pixma_open(): Canon imageCLASS MF4150 </blockquote> <blockquote type="CITE"> [pixma] Trying to clear the interrupt buffer... </blockquote> <blockquote type="CITE"> [pixma] Reader task started </blockquote> <blockquote type="CITE"> [pixma] </blockquote> <blockquote type="CITE"> [pixma] pixma_scan(): start </blockquote> <blockquote type="CITE"> [pixma] line_size=1920 image_size=1683840 channels=3 depth=8 </blockquote> <blockquote type="CITE"> [pixma] dpi=75x75 offset=(0,0) dimension=640x877 </blockquote> <blockquote type="CITE"> [pixma] gamma_table=0x8125f0 source=0 </blockquote> <blockquote type="CITE"> [pixma] Reader task id=-267907072 (threaded) </blockquote> <blockquote type="CITE"> scanimage: scanning image of size 640x877 pixels at 24 bits/pixel </blockquote> <blockquote type="CITE"> scanimage: acquiring RGB frame, 8 bits/sample </blockquote> <blockquote type="CITE"> scanimage: reading one scanline, 1920 bytes... </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> before it hangs. </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Next step? </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> Thanks, </blockquote> <blockquote type="CITE"> bob </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> <blockquote type="CITE"> <br> </blockquote> <blockquote type="CITE"> On Aug 31, 2008, at 2:12 PM, Nicolas wrote: </blockquote> <blockquote type="CITE"> <br> </blockquote> <blockquote type="CITE"> <blockquote type="CITE"> Moving the USB PID to pixma_mp730.c and adding a line declaration at<br> the end of this file (in pixma_mp730_devices[]) should be enough to have<br> the scanner detected by scanimage. Don't forget to remove both from<br> pixma_imageclass.c<br> <br> Bob, if you don't succeed doing this, please activate the trace logs to<br> see what's going on:<br> <br> $ export SANE_DEBUG_PIXMA=20<br> $ scanimage -T -vv<br> <br> Nicolas<br> <br> Le samedi 30 août 2008 à 19:15 -0700, Dennis Lou a écrit :<br> <blockquote type="CITE"> Nicolas,<br> <br> I told Bob to move the USB PID macro and device entry from<br> pixma_imageclass.c to pixma_mp730.c and see if that works.<br> He did that but then he wasn't able to see the scanner any more. Any<br> ideas?<br> <br> -Dennis<br> <br> <br> ----- Original Message ----<br> From: Bob Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br> To: Dennis Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br> Cc: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br> Sent: Saturday, August 30, 2008 8:49:24 AM<br> Subject: Re: [sane-devel] Canon MF4140<br> <br> So much for the lark....<br> <br> <br> scanimage -L no longer finds the scanner after the patch. Now I am<br> working off of a newer build than you are (7-20-CVS), but I only<br> changed the 2 files by hand, and when changing back, it was once again<br> able to find the device.<br> <br> <br> bob<br> <br> On Aug 25, 2008, at 12:18 AM, Dennis Lou wrote:<br> <br> <blockquote type="CITE"> Just on a lark, can you try commenting out the MF4100 PID and device<br> entry from pixma_imageclass.c and add it to pixma_mp730.c? Here's<br> the patch:<br> <br> Index: pixma_imageclass.c<br> ===================================================================<br> RCS file: /cvsroot/sane/sane-backends/backend/pixma_imageclass.c,v<br> retrieving revision 1.4<br> diff -u -r1.4 pixma_imageclass.c<br> --- pixma_imageclass.c 25 Jun 2008 20:54:16 -0000 1.4<br> +++ pixma_imageclass.c 25 Aug 2008 05:17:37 -0000<br> @@ -78,7 +78,7 @@<br> #define MF3110_PID 0x2660<br> #define MF3200_PID 0x2684<br> #define MF6500_PID 0x2686<br> -#define MF4100_PID 0x26a3<br> +//#define MF4100_PID 0x26a3<br> #define MF4600_PID 0x26b0<br> #define MF4010_PID 0x26b4<br> <br> @@ -612,7 +612,7 @@<br> DEV ("Canon imageCLASS MF3110", MF3110_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF3240", MF3200_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEV ("Canon MF6500 Series", MF6500_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> - DEV ("Canon imageCLASS MF4150", MF4100_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> +// DEV ("Canon imageCLASS MF4150", MF4100_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF4690", MF4600_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF4010", MF4010_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEV (NULL, 0, 0, 0, 0, 0)<br> Index: pixma_mp730.c<br> ===================================================================<br> RCS file: /cvsroot/sane/sane-backends/backend/pixma_mp730.c,v<br> retrieving revision 1.7<br> diff -u -r1.7 pixma_mp730.c<br> --- pixma_mp730.c 22 Feb 2008 21:40:32 -0000 1.7<br> +++ pixma_mp730.c 25 Aug 2008 05:17:37 -0000<br> @@ -69,6 +69,7 @@<br> #define MP740_PID 0x264c /* Untested */<br> #define MP710_PID 0x264d<br> #define MP730_PID 0x262f<br> +#define MF4100_PID 0x26a3<br> <br> enum mp730_state_t<br> {<br> @@ -638,5 +639,6 @@<br> DEVICE ("Canon MultiPASS MP710", MP710_PID, 1200, 637, 868, 0),<br> DEVICE ("Canon MultiPASS MP730", MP730_PID, 1200, 637, 868,<br> PIXMA_CAP_ADF),<br> DEVICE ("Canon MultiPASS MP740", MP740_PID, 1200, 637, 868,<br> PIXMA_CAP_ADF),<br> + DEVICE ("Bob's MF4150", MF4100_PID, 600, 640, 877,<br> PIXMA_CAP_ADF),<br> DEVICE (NULL, 0, 0, 0, 0, 0)<br> };<br> <br> <br> <br> ----- Original Message ----<br> From: Bob Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br> To: Dennis Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br> Sent: Saturday, August 23, 2008 1:20:22 PM<br> Subject: Re: [sane-devel] Canon MF4140<br> <br> Got a couple more. 150dpi color from the bottom of the scan and 300<br> dpi b/w along the left edge.<br> <br> <br> This enough to get you started?<br> bob<br> <br> On Sat, Aug 23, 2008 at 3:07 PM, Bob<br> Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>> wrote:<br> Dennis,<br> <br> <br> Parallels, the scanner, and USB sniffer are a<br> bit temperamental together. I've been playing, and I have<br> one greyscale log so far. If the log got too big, I<br> apologize. LIke I said, it was really tricky. I'll<br> continue to play to get some more stuff out for you<br> <br> <br> bob<br> <br> <br> <br> On Sat, Aug 23, 2008 at 2:34 PM, Dennis<br> Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>> wrote:<br> For the first one, empty is fine. Later, might want<br> to try different colors of paper. But I'm guessing<br> that the protocol will be similar enough to another<br> existing supported scanner that it probably might<br> not be necessary.<br> <br> -Dennis<br> <br> <br> ----- Original Message ----<br> From: Bob Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br> To: Dennis Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br> <br> <br> Sent: Saturday, August 23, 2008 7:09:55 AM<br> Subject: Re: [sane-devel] Canon MF4140<br> <br> dumb quick question--I'll try to look it up, but I<br> figured I'd check with you as well. Is it better to<br> scan an empty flatbed or put a doc on it? I don't<br> know what data would be easier to work with (or if<br> it makes a difference)<br> <br> <br> Otherwise, I'm hooked up to parallels and am<br> functioning. I'll start w/ an empty bed and go from<br> there.<br> <br> <br> bob<br> <br> <br> On Fri, Aug 22, 2008 at 1:16 PM, Dennis<br> Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>> wrote:<br> Well, I'm very confident somebody can do<br> something with the logs and get it working.<br> Whether that person is me depends (that was<br> my first time doing a scanner). But even if<br> that person is not me, the SANE guys are<br> pretty smart from what I've seen and<br> consumer-grade scanners seem pretty well<br> understood at this point.<br> <br> Especially if the protocol isn't much more<br> complicated than the MF4270, then I'm pretty<br> sure I can get something going.<br> <br> BTW, where are you located? I'm in the<br> Silicon Valley.<br> <br> -Dennis<br> <br> <br> ----- Original Message ----<br> From: Bob Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br> To: Dennis Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br> Sent: Friday, August 22, 2008 10:40:15 AM<br> Subject: Re: [sane-devel] Canon MF4140<br> <br> Dennis,<br> <br> <br> I've got a crazy day or two ahead of me.<br> I'm going to really try to get you<br> something tonight or tomorrow.<br> <br> <br> Do you think the odds will be good to get<br> the driver working if I get you the data<br> (and I presume a few more dumps)?<br> <br> <br> Just trying to prioritize my time. If<br> you're not sure, I need to get it to you<br> ASAP, as I only have through thursday to<br> return easily. If you're pretty confident,<br> I'll believe in you and not worry about the<br> date.<br> <br> <br> take care,<br> bob<br> <br> <br> <br> On Aug 22, 2008, at 12:15 AM, Dennis Lou<br> wrote:<br> <br> <blockquote type="CITE"> Great, thanks!<br> <br> 1. Unplug the device<br> 2. Install the Canon drivers<br> 3. Install a USB sniffer. I used<br> SniffUSB v1.7 because my VM is Win2k. You<br> can certainly do better if you are running<br> a more recent version of Windows.<br> 4. Plug in the device and direct it to the<br> virtual machine (select the device from<br> the "Device" menu in VMWare)<br> 5. Start the USB sniffer (on mine, there<br> are four possible devices/subdevices; I<br> select "Canon MF4200 Series" and click the<br> "Install" button)<br> 6. If you are using XP or Win2k, click<br> Start->Programs->Accessories->WindowsImaging then File->Acquire<br> 7. Pick 75 DPI, grayscale and select a<br> small area to scan, preferably full width<br> and minimal height then hit "Scan".<br> 8. Save the log file. In SniffUSB 1.7,<br> this means clicking the "Uninstall"<br> button, copying the log file somewhere<br> else, then clicking the "Delete" button.<br> 9. Repeat steps 5-8 (possibly step 4 if<br> your setup is as finicky as mine) using<br> different color and dpi settings and<br> different areas.<br> 10. Send me and/or the SANE list the log<br> file(s).<br> <br> Thanks again for your help.<br> <br> -Dennis<br> <br> <br> <br> ----- Original Message ----<br> From: Bob Dronski <<a href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br> To: Dennis Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br> Sent: Thursday, August 21, 2008 2:47:26 PM<br> Subject: Re: [sane-devel] Canon MF4140<br> <br> Dennis,<br> <br> May have missed the message. Sorry.<br> <br> Yes, I have a MacBookPro running parallels<br> I can use to sniff for you. As I haven't<br> done this before, please tell me what to<br> do.<br> <br> Thanks,<br> bob<br> <br> <br> On Thu, Aug 21, 2008 at 4:32 PM, Dennis<br> Lou <<a href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>> wrote:<br> Hi Bob,<br> <br> I sent you a private email<br> regarding this but apparently you<br> didn't get it.<br> <br> I wrote the Imageclass section and<br> Allan is correct. Your all-in-one<br> shares the same Windows front-end<br> stuff from Canon as mine. But<br> beyond that, I have no idea<br> whether the base USB<br> communications protocol is the<br> same or not. What's really needed<br> are USB snoop logs, preferably<br> from a Windows scan. Can you run<br> Parallels or Bootcamp into Win2k<br> or higher?<br> <br> -Dennis<br> <br> <br> <br> <br> <br> <br> --<br> sane-devel mailing<br> list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br> <a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br> Unsubscribe: Send mail with<br> subject "unsubscribe<br> your_password"<br> <br> to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br> <br> <br> <br> <br> <br> <br> </blockquote> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> </blockquote> <br> <br> <br> </blockquote> <br> <br> </blockquote> </blockquote> <blockquote type="CITE"> <br> <br> </blockquote> </div> </blockquote></div><br></div></body></html>