[sane-devel] Pixma MP600R times out after scan stats

Michael Brasse michael.brasse at gmail.com
Wed May 13 11:06:03 UTC 2009


Hello everybody,
May I ask if there is any progress on this topic?

I have an MP600R as well connected via Wifi to my Wireless Router.
Also my laptop (running opensuse 11.0) is connected via Wireless to
the same Wireless Router (no firewall, etc.).

Today I installed the latest version of sane-backends from cvs
according to the very good how-to from Nicolas.

Everything works exactly as described below.

If I run scanimage -T the device says "Scanner is warming up", then it
says "Scanning" for a very short time and after about 20 seconds
scanimage comes back with the error described below.

Also I can scan with an USB connection (even though I can't get xsane
to work at the moment because of version numbers - 1.0.21 vs. 1.1.0).

If there is anything I can do to support testing, please let me know.
I would be happy if I could scan with my Linux desktop.

Currently I am struggling getting wireshark installed on my laptop - I
will try a bit further.

Best regards
            Micha

> Message: 1
> Date: Fri, 01 May 2009 20:18:13 +0200
> From: Louis Lagendijk <louis at lagendijk.xs4all.nl>
> Subject: Re: [sane-devel] Pixma MP600R times out after scan stats
> To: Nicolas Martin <nicolas.martin at freesurf.fr>
> Cc: Louis Lagendijk <llagendijk-guest at alioth.debian.org>,
>        sane-devel at lists.alioth.debian.org
> Message-ID: <1241201893.4698.27.camel at travel.pheasant>
> Content-Type: text/plain; charset="UTF-8"
>
> hi Nicolas,
> I already noticed this bug report. I have been pretty busy lately but am
> planning to have a look at it this weekend.
> Phil, when you say "over the network", does that mean over wired
> ethernet or Wifi? Is a firewall active on the box? What OS/distribution?
>
> In addition to the full log that Nicolas already asked for, can you plae
> make a wireshark tpc/ip log and mail that log to me as well (from  the
> same scanning attempt)? Thanks in advance,
> Louis
>
> On Fri, 2009-05-01 at 19:33 +0200, Nicolas Martin wrote:
>> Hi Phil,
>>
>> So probably this has to do with the bjnp part of the backend, I'll take
>> contact with Louis, who designed this part, for some help.
>>
>> In the meantime and to step further, could you get a full trace of the
>> backend using these commands:
>>
>> $ export SANE_DEBUG_PIXMA=11
>> $ scanimage -T &> /tmp/pixmalog
>>
>> and send back the /tmp/pixmalog file you get.
>>
>> Nicolas
>>
>> Le jeudi 30 avril 2009 ? 23:46 +0200, Phil Wooding a ?crit :
>> > Hi Nicolas,
>> >
>> > Thank you for your reply. Its most appreciated.
>> > Yes, I can successfully scan with a USB cable.
>> > As mentioned in the compatibility list, all resolutions work except
>> > 2400 dpi.
>> > However, over the network, it always times out...
>> > Including command scanimage -T which outputs:
>> >
>> > scanimage: scanning image of size 640x877 pixels at 24 bits/pixel
>> > scanimage: acquiring RGB frame, 8 bits/sample
>> > scanimage: reading one scanline, 1920 bytes...    [pixma]
>> > bjnp_recv_header: (recv) could not read response header, received 0
>> > bytes!
>> > [pixma] bjnp_recv_header: (recv) error: Success!
>> > [pixma] Could not read response to command!
>> > [pixma] bjnp_recv_header: (recv) could not read response header,
>> > received 0 bytes!
>> > [pixma] bjnp_recv_header: (recv) error: Success!
>> > [pixma] Could not read response to command!
>> > FAIL Error: Error during device I/O
>> >
>> > Do you have any ideas of something I can try?
>> >
>> > PS : I won't be able to reply immediately.
>> >
>> > Thanks,
>> >
>> > Phil
>> >
>> > > Subject: Re: [sane-devel] Pixma MP600R times out after scan stats
>> > > Date: Sat, 25 Apr 2009 10:46:39 +0200
>> > >
>> > > In order to facilitate investigations on this: do you successfully
>> > scan
>> > > with an usb cable ?
>> > >
>> > > Nicolas
>> > >
>> > > Le vendredi 24 avril 2009 ? 23:30 +0200, Phil Wooding a ?crit :
>> > > > Hi,
>> > > >
>> > > > I am trying to get the latest svn code working with a MP600R.
>> > > > The scanner is properly detected, it starts scanning, but then
>> > > > nothing...
>> > > > Any help would be apreciated as it should work according to the
>> > > > documentation.
>> > > >
>> > > > Thanks,
>> > > >
>> > > > Phil
>> > > >
>> > > > Here are the logs with maximum debug information:
>> > > >
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)
>> > > > [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short
>> > block
>> > > > = 0 blocksize = 0x400 = 1024
>> > > > [pixma] So far received 0x0 bytes = 0, need 0x8 = 8
>> > > > [pixma] No (more) scanner data available, requesting more
>> > > > [pixma] bjnp_send_read_req sending command
>> > > > [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0b 00 09 00 00 00 00
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] TCP response header(scanner data = 8 bytes):
>> > > > [pixma] 00000000:42 4a 4e 50 82 20 00 00 00 0b 00 09 00 00 00 08
>> > > > [pixma] Scanner reports 0x8 = 8 bytes available
>> > > > [pixma] reading 0x8 = 8 (of max 0x8 = 8) bytes more
>> > > > [pixma] bjnp_recv_data: receiving response data
>> > > > [pixma] bjnp_recv_data: read response payload (8 bytes max)
>> > > > [pixma] Received TCP response payload (8 bytes):
>> > > > [pixma] 00000000:06 06 00 00 00 00 00 00
>> > > > [pixma] IN T=6.235 len=8
>> > > > [pixma] 00000000:06 06 00 00 00 00 00 00
>> > > > [pixma]
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_write_bulk(0, bufferptr, 0x40 = 64)
>> > > > [pixma] bjnp_write: sending 0x40 = 64 bytes
>> > > > [pixma] 00000000:42 4a 4e 50 02 21 00 00 00 0c 00 09 00 00 00 40
>> > > > [pixma] 00000010:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30
>> > > > [pixma] 00000020:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00
>> > > > [pixma] 00000030:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00
>> > > > [pixma] 00000040:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] TCP response header(scanner data = 4 bytes):
>> > > > [pixma] 00000000:42 4a 4e 50 82 21 00 00 00 0c 00 09 00 00 00 04
>> > > > [pixma] bjnp_recv_data: receiving response data
>> > > > [pixma] bjnp_recv_data: read response payload (4 bytes max)
>> > > > [pixma] Received TCP response payload (4 bytes):
>> > > > [pixma] 00000000:00 00 00 40
>> > > > [pixma] OUT T=6.240 len=64
>> > > > [pixma] 00000000:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30
>> > > > [pixma] 00000010:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00
>> > > > [pixma] 00000020:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00
>> > > > [pixma] 00000030:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5
>> > > > [pixma]
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)
>> > > > [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short
>> > block
>> > > > = 0 blocksize = 0x400 = 1024
>> > > > [pixma] So far received 0x0 bytes = 0, need 0x8 = 8
>> > > > [pixma] No (more) scanner data available, requesting more
>> > > > [pixma] bjnp_send_read_req sending command
>> > > > [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0d 00 09 00 00 00 00
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] bjnp_recv_header: could not read response header (select
>> > timed
>> > > > out): Success!
>> > > > [pixma] IN T=26.257 len=-9
>> > > > [pixma] ERROR: ETIMEDOUT
>> > > >
>> > > >
>> > > >
>> > ______________________________________________________________________
>> > > > What can you do with the new Windows Live? Find out
>> > > > --
>> > > > sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> > > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> > > > Unsubscribe: Send mail with subject "unsubscribe your_password"
>> > > > to sane-devel-request at lists.alioth.debian.org
>> > >
>> > >
>> >
>> >
>> > ______________________________________________________________________
>> > What can you do with the new Windows Live? Find out
>>
>>
>>
>> --
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>              to sane-devel-request at lists.alioth.debian.org
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 1 May 2009 20:30:44 +0200
> From: Jeffrey Ratcliffe <jeffrey.ratcliffe at gmail.com>
> Subject: [sane-devel] gscan2pdf 0.9.28 released
> To: gscan2pdf-announce at lists.sourceforge.net,
>        gnome-announce-list at gnome.org,  sane-devel at lists.alioth.debian.org,
>        gscan2pdf-help at lists.sourceforge.net
> Message-ID:
>        <30e395780905011130x72457b6anfdf49e9851b9e434 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> I have released gscan2pdf v0.9.28, A GUI to produce a multipage PDF or
> DjVu from a scan.
>
> The full changelog is below, but the main improvement is that
> gscan2pdf can now use the SANE API directly, rather than using
> scanimage or scanadf (which are still supported). The new interface,
> libsane-perl (selected via Preferences/Frontend), allows gscan2pdf to
> support any option offered by the SANE backend.
>
> Source code, RPM and deb packages are available at
> http://gscan2pdf.sourceforge.net/
>
> Please test!
>
> * + Rescan devices.
>  Closes 2433654 (gscan2pdf loses USB scanner connection after replugging)
> * Fix JPEG compression for TIFF, broken in 0.9.27, changeset 60f40d2c0cf4
> * Display any errors from tiffcp
> * Fix TIFF compression in PDF
>  Closes Debian bug #506150 (gscan2pdf: pdf creation failes when using
> LZW compression)
> * Rename scanimage.pl and scanadf.pl to scanimage-perl and scanadf-perl
>  to fix lintian warnings about .pl suffices.
> * + Progress bar for scanadf frontend
> * + Renumber selected pages
> * + adf-mode. Closes 2533708 (Duplex ability not recognized)
> * Catch "sane_read: Operation was cancelled" message
>  Closes Debian bug #512758 (Error handling: 'Unknown message:
> "scanimage: sane_read: Operation was cancelled"')
> * Print 'Document feeder out of documents' message
>  Closes Debian bug #512760 (Error reporting: empty document feeder
> not reported)
> * Hide save window after saving PNM or DjVu
>  Closes Debian bug #515605 (gscan2pdf: repeating save-dialog when
> saving as pnm)
> * Fix bug preventing non-PNM being passed to GIMP.
>  Closes Debian bug #517913 (gscan2pdf: Tools -> Gimp broken)
> * + overscan-(top|bottom) options
> * Set batch-scan to yes if ADF used, or #pages is all or > 1
>  Closes LP #340099 (Scan all pages option doesn't stop when all pages are done)
> * Make sure languages combobox is hidden unless tesseract is selected for OCR
>  Closes LP #340096 (Tesseract languages options shown when GOCR is
> default selected)
> * Make rubberband selections persist between pages
>  Closes 2629351 (Rectangular Crop Area)
> * Use Test::Pod on documentation
> * + Select blank and dark pages. Closes 2567485 (auto detect blank pages)
>  Thanks to Roy Shahbazian for the patch.
> * Fixed bug where temp dir not created after previous session killed and old
>  temp dir deleted.
>  Closes 2735303 (Import function fails when stale session variable set)
> * Fixed bug after unpaper --output-pages=2 where OCR not carried out for second
>  page.
> * + Option to select whether OCR output is replaced, appended or prepended.
>  Closes 2578995 (prepend new OCR text to old text)
>  Thanks to Roy Shahbazian for the patch.
> * + Option to select pages modified since last OCR run.
>  Closes 2579015 (auto select modified pages)
>  Thanks to Roy Shahbazian for the patch.
> * Update to Brazilian Portuguese translation (thanks to Andr? Gondim)
> * Update to Croatian translation (thanks to DarioSeparovic)
> * Update to Dutch translation (thanks to Jan Klopper)
> * Update to German translation (thanks to Manuel Rennecke)
> * + Hebrew translation (thanks to liorda)
> * Update to Italian translation (thanks to Andrea)
> * Update to Korean translation (thanks to You Hyun Jo)
> * Update to Norwegian Bokmal translation (thanks to Roger Skjerping Urstad)
> * Update to Russian translation (thanks to Vadim Peretokin)
> * Update to Slovenian translation (thanks to Robert Hrovat)
> * Update to Spanish translation (thanks to Szerelem)
> * Update to Traditional Chinese translation (thanks to Chien Cheng Wei)
> * Update to Ukranian translation
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 01 May 2009 20:59:50 +0200
> From: Louis Lagendijk <louis at lagendijk.xs4all.nl>
> Subject: Re: [sane-devel] Pixma MP600R times out after scan stats
> To: Nicolas Martin <nicolas.martin at freesurf.fr>
> Cc: Louis Lagendijk <llagendijk-guest at alioth.debian.org>,
>        sane-devel at lists.alioth.debian.org
> Message-ID: <1241204390.4698.61.camel at travel.pheasant>
> Content-Type: text/plain; charset="UTF-8"
>
> hi again
> I jad a look at the available logfile:
> Apparently everything goes right upto the point where we send a
> de20/cmd_scan_param. The 4 bytes ack (confirming a packet of 0x40 bytes)
> on the command is received back(T=6.240).
>
> We then expect to start read an 8 byte response from the scanner, so we
> send a BJNP read request to the scanner and wait for a response, but
> nothing arrives, not even a data header.
>
> Sp it would indeed be good to see a wireshark trace of the TCP/IP data
> flow as well as a trace. Nicolas, would it normally be possible that a
> response to de20 could take more than 20 seconds? I seem to recall that
> timeouts in the past were in the order of seconds and less than 10
> seconds,so I would guess that 20 seconds is way too long, right?
>
> kind regards, Louis
>
>
> On Fri, 2009-05-01 at 19:33 +0200, Nicolas Martin wrote:
>> Hi Phil,
>>
>> So probably this has to do with the bjnp part of the backend, I'll take
>> contact with Louis, who designed this part, for some help.
>>
>> In the meantime and to step further, could you get a full trace of the
>> backend using these commands:
>>
>> $ export SANE_DEBUG_PIXMA=11
>> $ scanimage -T &> /tmp/pixmalog
>>
>> and send back the /tmp/pixmalog file you get.
>>
>> Nicolas
>>
>> Le jeudi 30 avril 2009 ? 23:46 +0200, Phil Wooding a ?crit :
>> > Hi Nicolas,
>> >
>> > Thank you for your reply. Its most appreciated.
>> > Yes, I can successfully scan with a USB cable.
>> > As mentioned in the compatibility list, all resolutions work except
>> > 2400 dpi.
>> > However, over the network, it always times out...
>> > Including command scanimage -T which outputs:
>> >
>> > scanimage: scanning image of size 640x877 pixels at 24 bits/pixel
>> > scanimage: acquiring RGB frame, 8 bits/sample
>> > scanimage: reading one scanline, 1920 bytes...    [pixma]
>> > bjnp_recv_header: (recv) could not read response header, received 0
>> > bytes!
>> > [pixma] bjnp_recv_header: (recv) error: Success!
>> > [pixma] Could not read response to command!
>> > [pixma] bjnp_recv_header: (recv) could not read response header,
>> > received 0 bytes!
>> > [pixma] bjnp_recv_header: (recv) error: Success!
>> > [pixma] Could not read response to command!
>> > FAIL Error: Error during device I/O
>> >
>> > Do you have any ideas of something I can try?
>> >
>> > PS : I won't be able to reply immediately.
>> >
>> > Thanks,
>> >
>> > Phil
>> >
>> > > Subject: Re: [sane-devel] Pixma MP600R times out after scan stats
>> > > Date: Sat, 25 Apr 2009 10:46:39 +0200
>> > >
>> > > In order to facilitate investigations on this: do you successfully
>> > scan
>> > > with an usb cable ?
>> > >
>> > > Nicolas
>> > >
>> > > Le vendredi 24 avril 2009 ? 23:30 +0200, Phil Wooding a ?crit :
>> > > > Hi,
>> > > >
>> > > > I am trying to get the latest svn code working with a MP600R.
>> > > > The scanner is properly detected, it starts scanning, but then
>> > > > nothing...
>> > > > Any help would be apreciated as it should work according to the
>> > > > documentation.
>> > > >
>> > > > Thanks,
>> > > >
>> > > > Phil
>> > > >
>> > > > Here are the logs with maximum debug information:
>> > > >
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)
>> > > > [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short
>> > block
>> > > > = 0 blocksize = 0x400 = 1024
>> > > > [pixma] So far received 0x0 bytes = 0, need 0x8 = 8
>> > > > [pixma] No (more) scanner data available, requesting more
>> > > > [pixma] bjnp_send_read_req sending command
>> > > > [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0b 00 09 00 00 00 00
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] TCP response header(scanner data = 8 bytes):
>> > > > [pixma] 00000000:42 4a 4e 50 82 20 00 00 00 0b 00 09 00 00 00 08
>> > > > [pixma] Scanner reports 0x8 = 8 bytes available
>> > > > [pixma] reading 0x8 = 8 (of max 0x8 = 8) bytes more
>> > > > [pixma] bjnp_recv_data: receiving response data
>> > > > [pixma] bjnp_recv_data: read response payload (8 bytes max)
>> > > > [pixma] Received TCP response payload (8 bytes):
>> > > > [pixma] 00000000:06 06 00 00 00 00 00 00
>> > > > [pixma] IN T=6.235 len=8
>> > > > [pixma] 00000000:06 06 00 00 00 00 00 00
>> > > > [pixma]
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_write_bulk(0, bufferptr, 0x40 = 64)
>> > > > [pixma] bjnp_write: sending 0x40 = 64 bytes
>> > > > [pixma] 00000000:42 4a 4e 50 02 21 00 00 00 0c 00 09 00 00 00 40
>> > > > [pixma] 00000010:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30
>> > > > [pixma] 00000020:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00
>> > > > [pixma] 00000030:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00
>> > > > [pixma] 00000040:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] TCP response header(scanner data = 4 bytes):
>> > > > [pixma] 00000000:42 4a 4e 50 82 21 00 00 00 0c 00 09 00 00 00 04
>> > > > [pixma] bjnp_recv_data: receiving response data
>> > > > [pixma] bjnp_recv_data: read response payload (4 bytes max)
>> > > > [pixma] Received TCP response payload (4 bytes):
>> > > > [pixma] 00000000:00 00 00 40
>> > > > [pixma] OUT T=6.240 len=64
>> > > > [pixma] 00000000:de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30
>> > > > [pixma] 00000010:00 00 00 00 80 4b 80 4b 00 00 00 00 00 00 00 00
>> > > > [pixma] 00000020:00 00 02 80 00 00 03 6d 08 18 00 00 00 00 00 00
>> > > > [pixma] 00000030:ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 d5
>> > > > [pixma]
>> > > > [pixma] bjnp_set_timeout(requested 10000, set 20000):
>> > > > [pixma] bjnp_read_bulk(0, bufferptr, 0x8 = -1075284088)
>> > > > [pixma] bjnp_read_bulk: 0x0 = 0 bytes available at start, Short
>> > block
>> > > > = 0 blocksize = 0x400 = 1024
>> > > > [pixma] So far received 0x0 bytes = 0, need 0x8 = 8
>> > > > [pixma] No (more) scanner data available, requesting more
>> > > > [pixma] bjnp_send_read_req sending command
>> > > > [pixma] 00000000:42 4a 4e 50 02 20 00 00 00 0d 00 09 00 00 00 00
>> > > > [pixma] bjnp_recv_header: receiving response header
>> > > > [pixma] bjnp_recv_header: could not read response header (select
>> > timed
>> > > > out): Success!
>> > > > [pixma] IN T=26.257 len=-9
>> > > > [pixma] ERROR: ETIMEDOUT
>> > > >
>> > > >
>> > > >
>> > ______________________________________________________________________
>> > > > What can you do with the new Windows Live? Find out
>> > > > --
>> > > > sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> > > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> > > > Unsubscribe: Send mail with subject "unsubscribe your_password"
>> > > > to sane-devel-request at lists.alioth.debian.org
>> > >
>> > >
>> >
>> >
>> > ______________________________________________________________________
>> > What can you do with the new Windows Live? Find out
>>
>>
>>
>> --
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>              to sane-devel-request at lists.alioth.debian.org
>
>
>
>
> ------------------------------
>
> _______________________________________________
> sane-devel mailing list
> sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>
> End of sane-devel Digest, Vol 47, Issue 2
> *****************************************
>



-- 
____________________________________
Michael Brasse
Kelliweg 26
CH-8810 Horgen

+41 44 381 4046
+41 79 636 8960



More information about the sane-devel mailing list