[sane-devel] Mac OS X: sane pixma (not) scanning via network

Nicolas Martin nicolas.martin at freesurf.fr
Tue Mar 31 19:13:54 UTC 2009


Hi,

Yes, We can try to change the USB timeout used in the usb read/write
statements. 

It is currently set to 1s, a default standard value that probably never
got tuned. 

I can change it to 10s at least for Peter to give a try. 
Will look at this and propose a test file to Peter.

Nicolas

Le mardi 31 mars 2009 à 20:54 +0200, Louis Lagendijk a écrit :
> hi Peter
> finally some good news then! This proves that the backend basically
> works on the Mac as well. I an only suprised to see that I had to
> increase timeouts from the 10 seconds I used after Raoul had problems on
> his mp620. 
> It would be good to see the logfiles of the failing attempts again. I
> would like to check if there is a similarity in the places where the
> failures occur. It may be a case that a timeout on USB is set too short
> as well. Nicolas, could that be possible? On bjnp a read_bulk apparently
> took more than 10 seconds to return. If something similar happens on
> USB, would it be possible for the backend to loose synchronization with
> the scanner?
> 
> Peter, can you check a normal scan without -T:
> scanimage --resolution=300 --format=tiff> test.tiff and confirm that
> this works ok too?
> 
> I  will anyhow commit the changes to the pixma_bjnp.c
> 
> best regards,
> Louis
> 
> On Tue, 2009-03-31 at 11:08 -0700, Peter Schoenrank wrote:
> > > Could you please
> > > replace the pixma_bjnp.c in the backend directory with the attached  
> > > one,
> > > recompile  and try again over the network?
> > 
> > 
> > Note: since my last posting, I have installed the ScanGear software. I  
> > did, after all, buy this MX850 because I need to scan and print. If  
> > this is a problem, let me know and I can remove the Canon software  
> > temporarily for testing.
> > 
> > I saved the attached pixma_bjnp.c to
> > ~/Desktop/scanning_from_the_command_line/sane-scm-2009-03-27/sane- 
> > backends/backend/pixma_bjnp.c
> > 
> > then
> > 
> > $ cd ~/Desktop/scanning_from_the_command_line/sane-scm-2009-03-27/sane- 
> > backends/
> > $ sudo make uninstall
> > $ make distclean
> > $ export BACKENDS="canon pixma"
> > $ ./configure
> > $ make
> > $ sudo make install
> > 
> > Disconnected MX850 from USB; connected to Ethernet; confirmed self- 
> > assigned IP.
> > 
> > $ export SANE_DEBUG_SANEI_USB=255
> > $ export SANE_DEBUG_PIXMA=20
> > $ export SANE_DEBUG=255
> > $ scanimage -T &> scanimage-T.log
> > 
> > That was so successful, that I tried
> > 
> > $ scanimage --format=tiff > image.tiff 2> scanimage.log
> > 
> > and ended up with an actual scan in image.tiff.
> > 
> > The logs are in
> > http://members.shaw.ca/schoenrank.ca/2009-03-27_sane_testing.6/
> > 
> > Many thanks to you, Louis.
> > 
> > 
> > Peter
> > -----
> > Peter Schoenrank
> > mailto: peter at schoenrank.ca
> > phone: 250-655-6753
> 





More information about the sane-devel mailing list