<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
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>
</BODY>
</HTML>