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

Nicolas Martin nicolas.martin at freesurf.fr
Fri Apr 3 18:57:43 UTC 2009


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 reported by usb interrupt messages. 

So for now, I propose to add in the pixma code, a MAC OS X compilation
condition with this code. The pixma backend used under MACOS X will then
behave like this, all scanning feature are OK, but button scan will be
ineffective.   

Nicolas

Le vendredi 03 avril 2009 à 10:12 -0700, Peter Schoenrank a écrit :
> 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 ~/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
> $ cd ~/Desktop/scanning_from_the_command_line/2009-03-27_sane_testing.8/
> $ export SANE_DEBUG_SANEI_USB=255
> $ export SANE_DEBUG=255
> $ export SANE_DEBUG_PIXMA=20
> $ scanimage -T &> scanimage-T.log
> 
> [pixma] pixma_read_image():cancelled by software
> [pixma] Reader task terminated: ECANCELED
> [pixma] pixma_close(): Canon PIXMA MX850
> [sanei_usb] sanei_usb_close: closing device 0
> usb_os_close: 04a9:172c
> 
> $ scanimage --format=tiff > test.tiff 2> scanimage.log
> 
> [pixma] pixma_read_image():completed
> [pixma] Reader task terminated
> [pixma] pixma_close(): Canon PIXMA MX850
> [sanei_usb] sanei_usb_close: closing device 0
> usb_os_close: 04a9:172c
> 
> and test.tiff is the scanned image as expected. Thank you Nicolas.
> 
> The logs are available at
> http://members.shaw.ca/schoenrank.ca/2009-03-27_sane_testing.9/
> 
> and at
> http://schoenrank.ca/scanning_from_the_command_line/2009-03-27_sane_testing.9/
> 
> The first will be much faster and more reliably available. The second  
> site contains older logs as well if you need them.
> 
> 
> 
> Peter
> -----
> Peter Schoenrank
> mailto: peter at schoenrank.ca
> phone: 250-655-6753
> 





More information about the sane-devel mailing list