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

2009-04-03 Thread Nicolas Martin
Hi Peter, Ok, this is a first step, it confirms the behavior of libusb interrupts reads with darwin / MAC OS X, and that it does not handle timeouts. In fact, the small change brought here (using a bulk read instead of interrupt) leads to disabling the scan button features, as button events are

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

2009-04-03 Thread Peter Schoenrank
On 09-Apr-02, at 14:29, Nicolas Martin wrote: > Could you give a try with this file attached, as before, replace CVS > one > in bakend sub directory with this one. >> Saved pixma_io_sanei.c to ~/Desktop/scanning_from_the_command_line/sane-scm-2009-03-27/sane- backends/backend/ then $ cd ~/

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

2009-04-01 Thread Nicolas Martin
Have taken a look at the libusb/darwin.c code, and as far as I can see, usb _interrupt_ read sequences do not support a timeout. Timeouts are only used for normal read or write operations. Now I understand the meaning of the last message that appears in your logs: "USB pipe is an interrupt pipe. T

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

2009-04-01 Thread Peter Schoenrank
On 09-Mar-31, at 11:54, Louis Lagendijk wrote: > It would be good to see the logfiles of the failing attempts again. On 09-Apr-01, at 08:55, Peter Schoenrank wrote: > I am limited by my ISP to 20 MB of web space. I can put the old logs > back up, but that means having to take down the most r

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

2009-04-01 Thread Peter Schoenrank
On 09-Mar-31, at 14:00, Nicolas Martin wrote: > Following Louis idea, I tried to change some timing constants around > usb > timeouts. > > Could you give a try to it, just replace the 2 place files to replace > the existing ones in your Sane CVS directory (subdir backend) and > recompile/reinst

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

2009-04-01 Thread Peter Schoenrank
On 09-Mar-31, at 11:54, Louis Lagendijk wrote: > It would be good to see the logfiles of the failing attempts again. I am limited by my ISP to 20 MB of web space. I can put the old logs back up, but that means having to take down the most recent ones. > Peter, can you check a normal scan wit

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

2009-03-31 Thread Nicolas Martin
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 mar

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

2009-03-31 Thread Louis Lagendijk
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 w

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

2009-03-31 Thread m. allan noah
FYI- most other backends seem to have usb timeouts on the order of 30 seconds, unless it is a command that routinely fails, in which case it is often set quite short. allan On Tue, Mar 31, 2009 at 3:13 PM, Nicolas Martin wrote: > Hi, > > Yes, We can try to change the USB timeout used in the usb

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

2009-03-31 Thread Peter Schoenrank
> 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

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

2009-03-27 Thread Nicolas Martin
Hi all Le vendredi 27 mars 2009 ? 22:01 +0100, Louis Lagendijk a ?crit : > Hi Peter > Thanks for your patience. Here is some more input > Louis > On Fri, 2009-03-27 at 11:27 -0700, Peter Schoenrank wrote: > > On 09-Mar-26, at 14:17, Louis Lagendijk wrote: > > > > > This could be because the M

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

2009-03-27 Thread Louis Lagendijk
Hi Peter Thanks for your patience. Here is some more input Louis On Fri, 2009-03-27 at 11:27 -0700, Peter Schoenrank wrote: > On 09-Mar-26, at 14:17, Louis Lagendijk wrote: > > > This could be because the MX850 is not connected on that Lan (duh) > > So, I disconnected the USB cable and connec

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

2009-03-27 Thread Peter Schoenrank
On 09-Mar-27, at 14:01, Louis Lagendijk wrote: > Could you compile a recent CVS version? On my OS X 10.5 iMac, I re-installed Xcode 3.1. I downloaded the nightly CVS tree snapshot http://alioth.debian.org/snapshots.php?group_id=30186 Then $ cd ~/Desktop/scanning_from_the_command_line/sane-s

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

2009-03-27 Thread Peter Schoenrank
On 09-Mar-26, at 14:17, Louis Lagendijk wrote: > This could be because the MX850 is not connected on that Lan (duh) So, I disconnected the USB cable and connected the MX850 to my D-Link switch. Then, from the 10.5 iMac (which currently has gettext 0.17, libusb 0.1.13 beta 2009-02-22 and san