<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.hmmessage P
{margin:0px;padding:0px;}
body.hmmessage
{font-size:10pt;font-family:Verdana;}
</style>

Hi Nicolas, Louis,<br><br>Sorry for the late reply, but I wasn't available the last few days.<br><br>I am running sane on a Ubuntu 9.04 (also tried on 8.10) box.<br>The box is connected to a OpenWRT router, as is the scanner through ethernet.<br>Both are on the same vlan, so firewall on router shouldn't be an issue. And no firewall running on ubuntu box.<br>Attached is the log requested by Nicolas.<br><br>Again, thank you for looking into this issue,<br><br>Phil<br><br><br>&gt; Subject: Re: [sane-devel] Pixma MP600R times out after scan stats<br>&gt; From: louis@lagendijk.xs4all.nl<br>&gt; To: nicolas.martin@freesurf.fr<br>&gt; CC: pwdng@hotmail.com; llagendijk-guest@alioth.debian.org; sane-devel@lists.alioth.debian.org<br>&gt; Date: Fri, 1 May 2009 20:18:13 +0200<br>&gt; <br>&gt; hi Nicolas,<br>&gt; I already noticed this bug report. I have been pretty busy lately but am<br>&gt; planning to have a look at it this weekend.<br>&gt; Phil, when you say "over the network", does that mean over wired<br>&gt; ethernet or Wifi? Is a firewall active on the box? What OS/distribution?<br>&gt; <br>&gt; In addition to the full log that Nicolas already asked for, can you plae<br>&gt; make a wireshark tpc/ip log and mail that log to me as well (from  the<br>&gt; same scanning attempt)? Thanks in advance,<br>&gt; Louis<br>&gt; <br>&gt; On Fri, 2009-05-01 at 19:33 +0200, Nicolas Martin wrote:<br>&gt; &gt; Hi Phil, <br>&gt; &gt; <br>&gt; &gt; So probably this has to do with the bjnp part of the backend, I'll take<br>&gt; &gt; contact with Louis, who designed this part, for some help.<br>&gt; &gt; <br>&gt; &gt; In the meantime and to step further, could you get a full trace of the<br>&gt; &gt; backend using these commands:<br>&gt; &gt; <br>&gt; &gt; $ export SANE_DEBUG_PIXMA=11<br>&gt; &gt; $ scanimage -T &amp;&gt; /tmp/pixmalog<br>&gt; &gt; <br>&gt; &gt; and send back the /tmp/pixmalog file you get.<br>&gt; &gt; <br>&gt; &gt; Nicolas<br>&gt; &gt; <br>&gt; &gt; Le jeudi 30 avril 2009 à 23:46 +0200, Phil Wooding a écrit :<br>&gt; &gt; &gt; Hi Nicolas,<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Thank you for your reply. Its most appreciated.<br>&gt; &gt; &gt; Yes, I can successfully scan with a USB cable.<br>&gt; &gt; &gt; As mentioned in the compatibility list, all resolutions work except<br>&gt; &gt; &gt; 2400 dpi.<br>&gt; &gt; &gt; However, over the network, it always times out...<br>&gt; &gt; &gt; Including command scanimage -T which outputs:<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; scanimage: scanning image of size 640x877 pixels at 24 bits/pixel<br>&gt; &gt; &gt; scanimage: acquiring RGB frame, 8 bits/sample<br>&gt; &gt; &gt; scanimage: reading one scanline, 1920 bytes...    [pixma]<br>&gt; &gt; &gt; bjnp_recv_header: (recv) could not read response header, received 0<br>&gt; &gt; &gt; bytes!<br>&gt; &gt; &gt; [pixma] bjnp_recv_header: (recv) error: Success!<br>&gt; &gt; &gt; [pixma] Could not read response to command!<br>&gt; &gt; &gt; [pixma] bjnp_recv_header: (recv) could not read response header,<br>&gt; &gt; &gt; received 0 bytes!<br>&gt; &gt; &gt; [pixma] bjnp_recv_header: (recv) error: Success!<br>&gt; &gt; &gt; [pixma] Could not read response to command!<br>&gt; &gt; &gt; FAIL Error: Error during device I/O<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Do you have any ideas of something I can try?<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; PS : I won't be able to reply immediately.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Thanks,<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Phil<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Subject: Re: [sane-devel] Pixma MP600R times out after scan stats<br>&gt; &gt; &gt; &gt; Date: Sat, 25 Apr 2009 10:46:39 +0200<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; In order to facilitate investigations on this: do you successfully<br>&gt; &gt; &gt; scan<br>&gt; &gt; &gt; &gt; with an usb cable ?<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Nicolas<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Le vendredi 24 avril 2009 à 23:30 +0200, Phil Wooding a écrit :<br>&gt; &gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; I am trying to get the latest svn code working with a MP600R.<br>&gt; &gt; &gt; &gt; &gt; The scanner is properly detected, it starts scanning, but then<br>&gt; &gt; &gt; &gt; &gt; nothing...<br>&gt; &gt; &gt; &gt; &gt; Any help would be apreciated as it should work according to the<br>&gt; &gt; &gt; &gt; &gt; documentation.<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Thanks,<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Phil<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; Here are the logs with maximum debug information:<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_set_timeout(requested 10000, set 20000):<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short<br>&gt; &gt; &gt; block<br>&gt; &gt; &gt; &gt; &gt; = 0 blocksize = 0x400 = 1024<br>&gt; &gt; &gt; &gt; &gt; [pixma] So far received 0x0 bytes = 0, need 0x8 = 8<br>&gt; &gt; &gt; &gt; &gt; [pixma] No (more) scanner data available, requesting more<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_send_read_req sending command<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0b 00 09 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_header: receiving response header<br>&gt; &gt; &gt; &gt; &gt; [pixma] TCP response header(scanner data = 8 bytes):<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:42 4a 4e 50 82 20 00 00 00 0b 00 09 00 00 00 08 <br>&gt; &gt; &gt; &gt; &gt; [pixma] Scanner reports 0x8 = 8 bytes available<br>&gt; &gt; &gt; &gt; &gt; [pixma] reading 0x8 = 8 (of max 0x8 = 8) bytes more<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_data: receiving response data<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_data: read response payload (8 bytes max)<br>&gt; &gt; &gt; &gt; &gt; [pixma] Received TCP response payload (8 bytes):<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:06 06 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] IN T=6.235 len=8<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:06 06 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma]<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_set_timeout(requested 10000, set 20000):<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_write_bulk(0, bufferptr, 0x40 = 64)<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_write: sending 0x40 = 64 bytes<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:42 4a 4e 50 02 21 00 00 00 0c 00 09 00 00 00 40 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000010:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000020:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000030:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000040:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5 <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_header: receiving response header<br>&gt; &gt; &gt; &gt; &gt; [pixma] TCP response header(scanner data = 4 bytes):<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:42 4a 4e 50 82 21 00 00 00 0c 00 09 00 00 00 04 <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_data: receiving response data<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_data: read response payload (4 bytes max)<br>&gt; &gt; &gt; &gt; &gt; [pixma] Received TCP response payload (4 bytes):<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:00 00 00 40 <br>&gt; &gt; &gt; &gt; &gt; [pixma] OUT T=6.240 len=64<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000010:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000020:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000030:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5 <br>&gt; &gt; &gt; &gt; &gt; [pixma] <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_set_timeout(requested 10000, set 20000):<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short<br>&gt; &gt; &gt; block<br>&gt; &gt; &gt; &gt; &gt; = 0 blocksize = 0x400 = 1024<br>&gt; &gt; &gt; &gt; &gt; [pixma] So far received 0x0 bytes = 0, need 0x8 = 8<br>&gt; &gt; &gt; &gt; &gt; [pixma] No (more) scanner data available, requesting more<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_send_read_req sending command<br>&gt; &gt; &gt; &gt; &gt; [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0d 00 09 00 00 00 00 <br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_header: receiving response header<br>&gt; &gt; &gt; &gt; &gt; [pixma] bjnp_recv_header: could not read response header (select<br>&gt; &gt; &gt; timed<br>&gt; &gt; &gt; &gt; &gt; out): Success!<br>&gt; &gt; &gt; &gt; &gt; [pixma] IN T=26.257 len=-9<br>&gt; &gt; &gt; &gt; &gt; [pixma] ERROR: ETIMEDOUT<br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; ______________________________________________________________________<br>&gt; &gt; &gt; &gt; &gt; What can you do with the new Windows Live? Find out<br>&gt; &gt; &gt; &gt; &gt; --<br>&gt; &gt; &gt; &gt; &gt; sane-devel mailing list: sane-devel@lists.alioth.debian.org<br>&gt; &gt; &gt; &gt; &gt; http://lists.alioth.debian.org/mailman/listinfo/sane-devel<br>&gt; &gt; &gt; &gt; &gt; Unsubscribe: Send mail with subject "unsubscribe your_password"<br>&gt; &gt; &gt; &gt; &gt; to sane-devel-request@lists.alioth.debian.org<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; ______________________________________________________________________<br>&gt; &gt; &gt; What can you do with the new Windows Live? Find out<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; --<br>&gt; &gt; sane-devel mailing list: sane-devel@lists.alioth.debian.org<br>&gt; &gt; http://lists.alioth.debian.org/mailman/listinfo/sane-devel<br>&gt; &gt; Unsubscribe: Send mail with subject "unsubscribe your_password"<br>&gt; &gt;              to sane-devel-request@lists.alioth.debian.org<br>&gt; <br><br /><hr />Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>