<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So much for the lark....<div><br></div><div>scanimage -L no longer finds the scanner after the patch. Now I am working off of a newer build than you are (7-20-CVS), but I only changed the 2 files by hand, and when changing back, it was once again able to find the device.</div><div><br></div><div>bob</div><div><br><div><div>On Aug 25, 2008, at 12:18 AM, Dennis Lou wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Just on a lark, can you try commenting out the MF4100 PID and device entry from pixma_imageclass.c and add it to pixma_mp730.c? Here's 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, PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF3240", MF3200_PID, 600, 640, 877, PIXMA_CAP_ADF),<br> DEV ("Canon MF6500 Series", MF6500_PID, 600, 640, 877, PIXMA_CAP_ADF),<br>- DEV ("Canon imageCLASS MF4150", MF4100_PID, 600, 640, 877, PIXMA_CAP_ADF),<br>+// DEV ("Canon imageCLASS MF4150", MF4100_PID, 600, 640, 877, PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF4690", MF4600_PID, 600, 640, 877, PIXMA_CAP_ADF),<br> DEV ("Canon imageCLASS MF4010", MF4010_PID, 600, 640, 877, 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, PIXMA_CAP_ADF),<br> DEVICE ("Canon MultiPASS MP740", MP740_PID, 1200, 637, 868, PIXMA_CAP_ADF),<br>+ DEVICE ("Bob's MF4150", MF4100_PID, 600, 640, 877, PIXMA_CAP_ADF),<br> DEVICE (NULL, 0, 0, 0, 0, 0)<br> };<br><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----- 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><div dir="ltr" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Got a couple more. 150dpi color from the bottom of the scan and 300 dpi b/w along the left edge.<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This enough to get you started?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">bob<br><br><div class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Sat, Aug 23, 2008 at 3:07 PM, Bob Dronski<span class="Apple-converted-space"> </span><span dir="ltr"><<a rel="nofollow" ymailto="mailto:dronski@gmail.com" target="_blank" href="mailto:dronski@gmail.com">dronski@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; "><div dir="ltr" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dennis,<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Parallels, the scanner, and USB sniffer are a bit temperamental together. I've been playing, and I have one greyscale log so far. If the log got too big, I apologize. LIke I said, it was really tricky. I'll continue to play to get some more stuff out for you</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><font color="#888888"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">bob</div></font><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div><div class="Wj3C7c" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><br><div class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Sat, Aug 23, 2008 at 2:34 PM, Dennis Lou<span class="Apple-converted-space"> </span><span dir="ltr"><<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For the first one, empty is fine. Later, might want to try different colors of paper. But I'm guessing that the protocol will be similar enough to another existing supported scanner that it probably might not be necessary.<br><br>-Dennis<br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----- Original Message ----<br>From: Bob Dronski <<a rel="nofollow" ymailto="mailto:dronski@gmail.com" target="_blank" href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br>To: Dennis Lou <<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Sent: Saturday, August 23, 2008 7:09:55 AM<br>Subject: Re: [sane-devel] Canon MF4140<br><br><div dir="ltr" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dumb quick question--I'll try to look it up, but I figured I'd check with you as well. Is it better to scan an empty flatbed or put a doc on it? I don't know what data would be easier to work with (or if it makes a difference)<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Otherwise, I'm hooked up to parallels and am functioning. I'll start w/ an empty bed and go from there.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">bob</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> <br><br><div class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Fri, Aug 22, 2008 at 1:16 PM, Dennis Lou<span class="Apple-converted-space"> </span><span dir="ltr"><<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Well, I'm very confident somebody can do something with the logs and get it working. Whether that person is me depends (that was my first time doing a scanner). But even if that person is not me, the SANE guys are pretty smart from what I've seen and consumer-grade scanners seem pretty well understood at this point.<br><br>Especially if the protocol isn't much more complicated than the MF4270, then I'm pretty sure I can get something going.<br><br>BTW, where are you located? I'm in the Silicon Valley.<br><br>-Dennis<br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----- Original Message ----<br>From: Bob Dronski <<a rel="nofollow" ymailto="mailto:dronski@gmail.com" target="_blank" href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br>To: Dennis Lou <<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" 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,<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I've got a crazy day or two ahead of me. I'm going to really try to get you something tonight or tomorrow.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Do you think the odds will be good to get the driver working if I get you the data (and I presume a few more dumps)?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Just trying to prioritize my time. If you're not sure, I need to get it to you ASAP, as I only have through thursday to return easily. If you're pretty confident, I'll believe in you and not worry about the date.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">take care,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">bob</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Aug 22, 2008, at 12:15 AM, Dennis Lou wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Great, thanks!<br><br>1. Unplug the device<br>2. Install the Canon drivers<br>3. Install a USB sniffer. I used SniffUSB v1.7 because my VM is Win2k. You can certainly do better if you are running a more recent version of Windows.<br>4. Plug in the device and direct it to the virtual machine (select the device from the "Device" menu in VMWare)<br>5. Start the USB sniffer (on mine, there are four possible devices/subdevices; I select "Canon MF4200 Series" and click the "Install" button)<br>6. If you are using XP or Win2k, click Start->Programs->Accessories->WindowsImaging then File->Acquire<br>7. Pick 75 DPI, grayscale and select a small area to scan, preferably full width and minimal height then hit "Scan".<br>8. Save the log file. In SniffUSB 1.7, this means clicking the "Uninstall" button, copying the log file somewhere else, then clicking the "Delete" button.<br>9. Repeat steps 5-8 (possibly step 4 if your setup is as finicky as mine) using different color and dpi settings and different areas.<br>10. Send me and/or the SANE list the log file(s).<br><br>Thanks again for your help.<br><br>-Dennis<br><br></div><div style="font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="font-size: 12pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----- Original Message ----<br>From: Bob Dronski <<a rel="nofollow" ymailto="mailto:dronski@gmail.com" target="_blank" href="mailto:dronski@gmail.com">dronski@gmail.com</a>><br>To: Dennis Lou <<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" 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><div dir="ltr" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dennis,<br><br>May have missed the message. Sorry.<br><br>Yes, I have a MacBookPro running parallels I can use to sniff for you. As I haven't done this before, please tell me what to do.<br><br>Thanks,<br>bob<br><br><br><div class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Thu, Aug 21, 2008 at 4:32 PM, Dennis Lou<span> </span><span dir="ltr"><<a rel="nofollow" ymailto="mailto:dlou99@yahoo.com" target="_blank" href="mailto:dlou99@yahoo.com">dlou99@yahoo.com</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; ">Hi Bob,<br><br>I sent you a private email regarding this but apparently you didn't get it.<br><br>I wrote the Imageclass section and Allan is correct. Your all-in-one shares the same Windows front-end stuff from Canon as mine. But beyond that, I have no idea whether the base USB communications protocol is the same or not. What's really needed are USB snoop logs, preferably from a Windows scan. Can you run Parallels or Bootcamp into Win2k or higher?<br><font color="#888888"><br>-Dennis<br></font><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><br><br><br><br>--<br>sane-devel mailing list:<span> </span><a rel="nofollow" ymailto="mailto:sane-devel@lists.alioth.debian.org" target="_blank" href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br><a rel="nofollow" target="_blank" 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 subject "unsubscribe your_password"<br> to<span> </span><a rel="nofollow" ymailto="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank" href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br></div></div></blockquote></div><br></div></div></div></div><br></div></span><br></blockquote></div><br></div></div></div></div><br></div></blockquote></div><br></div></div></div></div></div></div></div><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></div></div></div><br></div></span><br class="Apple-interchange-newline"></blockquote></div><br></div></body></html>