[sane-devel] scanadf on Mac OS X

2007-10-13 Thread Yoshi
Hello Mattias:

On 2007/10/13, at 14:19, Mattias Ellert wrote:

> fre 2007-10-12 klockan 21:26 -0400 skrev m. allan noah:
>
>> so- it appears that after we close the usb device, we cannot re-open
>> it under osx? we need some OSX/USB help here.
>>
>> allan
>
> Hi!
>
> The libusb is known to behave strangely together with SANE on
> darwin/MacOS X. The libusb code tries to support timeouts on interrupt
> pipes, which is not supported. I my experience most problems are  
> solved
> if this "feature" is removed. The attached patch normally solves a lot
> of problems. Since I didn't see the complete debug log in this case, I
> cannot tell if this particular problem is caused by this "feature".
>
>   Mattias
>
> 
> -- 
> 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

And I want to know where to see discussion of making that patch?

Thank you

Yoshi



[sane-devel] scanadf on Mac OS X

2007-10-13 Thread Yoshi
Dear Mattias, Allan:

On 2007/10/13, at 14:19, Mattias Ellert wrote:

> fre 2007-10-12 klockan 21:26 -0400 skrev m. allan noah:
>
>> so- it appears that after we close the usb device, we cannot re-open
>> it under osx? we need some OSX/USB help here.
>>
>> allan
>
> Hi!
>
> The libusb is known to behave strangely together with SANE on
> darwin/MacOS X. The libusb code tries to support timeouts on interrupt
> pipes, which is not supported. I my experience most problems are  
> solved
> if this "feature" is removed. The attached patch normally solves a lot
> of problems. Since I didn't see the complete debug log in this case, I
> cannot tell if this particular problem is caused by this "feature".
>
>   Mattias
>
> 
> -- 
> 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

First of all, by patching to libusb, the scanners (not only fi-5110c
but also ScanSnap S500) worked quite good! Thank you for
analyzing and giving me great helps!

Your guess was right, I saw errors in system.log when scanimage -L  
complained.
Logs is like following:

kernel[0]: USBF:69086.103
AppleUSBEHCI[0x28b9000]::Found a transaction which hasn't moved in 5  
seconds on bus 253, timing out!
kernel[0]: USBF:69092.103
AppleUSBEHCI[0x28b9000]::Found a transaction which hasn't moved in 5  
seconds on bus 253, timing out!
kernel[0]: USBF:69094.103
AppleUSBEHCI[0x28b9000]::Found a transaction past the completion  
deadline on bus 253, timing out!
kernel[0]: USBF:69095.103
AppleUSBEHCI[0x28b9000]::Found a transaction past the completion  
deadline on bus 253, timing out!

And now there's no log like that.

My beginning question of 'no scanadf on Max OS X' is resolved at the  
same time.
I learned we can get same functionality by using --source and --batch  
option.

I write down the procedure for future help:

tar xvzf libusb-0.1.12.tar.gz
cd libusb-0.1.12
patch -p 1 < libusb-runloop.patch
./configure
make && sudo make install
make clean
cd ..
tar xvzf sane-backends-1.0.18
cd sane-backends-1.0.18
./configure
make && sudo make install
make clean

then connect the scanner
/usr/local/bin/scanimage --source "ADF Duplex" --batch=hoge%d.tiff -- 
format=tiff

Thank you very much

Yoshi



[sane-devel] scanadf on Mac OS X

2007-10-12 Thread Yoshi
Excuse me, mailing list address was not included in reply.

Hello jass_johnson:

On 2007/10/12, at 1:48, jazz_johnson at verizon.net wrote:

> On Thursday 11 October 2007, Yoshi wrote:
>> Hello.
>>
>> I am a Mac OS X 10.4.10 user and I installed latest sane-backends
>> from source code with installing libusb on it, but then I couldn't  
>> find
>> scanadf command. I have ever installed sane-backends on a gentoo
>> linux server where I could successfully use scanadf.
>>
>> I have to use ADF scanner(fujitsu fi-5110C or scansnap S500) on that
>> Mac machine. The build log seemed not to have critical errors.
>>
>> I build sane-backends and libusb by just
>> ./configure
>> make && sudo make install
>>
>> And I installed sane-backends after libusb.
>>
>> I would like to get advices to build it.
>>
>> Thank you.
>>
>> Yoshi
>
> scanadf is provided by sane-frontends

Thank you for advice.
I've already found this site, but couldn't download the patch.
http://www.martoneconsulting.com/sane-scanadf.html
So I considered that the scanadf patch is already merged into
sane-backends repository.

Is there any other place to get it?

Thank you

Yoshi




[sane-devel] scanadf on Mac OS X

2007-10-12 Thread Yoshi
Excuse me, mailing list address was not included in reply.

Hello Allan:

On 2007/10/11, at 23:02, m. allan noah wrote:

> scanadf is not part of sane-backends. its in sane-frontends. scanimage
> is in sane-backends, it can do most of what scanadf can do, so you
> could try that first.
>
> please let us know how you come out.
>
> allan (fujitsu backend maintainer)
>
> On 10/11/07, Yoshi  wrote:
>> Hello.
>>
>> I am a Mac OS X 10.4.10 user and I installed latest sane-backends
>> from source code with installing libusb on it, but then I couldn't  
>> find
>> scanadf command. I have ever installed sane-backends on a gentoo
>> linux server where I could successfully use scanadf.
>>
>> I have to use ADF scanner(fujitsu fi-5110C or scansnap S500) on that
>> Mac machine. The build log seemed not to have critical errors.
>>
>> I build sane-backends and libusb by just
>> ./configure
>> make && sudo make install
>>
>> And I installed sane-backends after libusb.
>>
>> I would like to get advices to build it.
>>
>> Thank you.
>>
>> Yoshi
>>
>>
>> --
>> 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
>>
>
>
> -- 
> "The truth is an offense, but not a sin"
>
> -- 
> 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

Thank you for your advice.
Then I tried to scan by scanimage but another problem occured.

I could find scanner by sane-find-scanner, and it said
found USB scanner (vendor=0x04c5, product=0x1097) at libusb: 
005:002-04c5-1097-00-00

Next I tried scanimage -L, but the scanner was not found.
And ignoring the complaining, I did
'scanimage -d fujitsu:libusb:005:002-04c5-1097-00-00',
first time it said
failed: Error during devie I/O
and I did same command but the message has changed
failed: Invalid argument
although the scanner device address found by sane-find-scanner
is not changed.

with SANE_DEBUG_SANEI_USB, scanimage -L said:

[sanei_debug] Setting debug level of sanei_usb to 1.
[sanei_usb] sanei_usb_init: device 0x05ac/0x8005 is not configured
[sanei_usb] sanei_usb_init: device 0x05ac/0x8005 is not configured
:
(snip. repeat those for more than 10 times)
:
[sanei_usb] sanei_usb_open: libusb complained: usb_set_configuration 
(SetConfiguration): pipe is stalled
[sanei_debug] Setting debug level of sanei_usb to 1.
[sanei_usb] sanei_usb_init: device 0x05ac/0x8005 is not configured
[sanei_usb] sanei_usb_init: device 0x05ac/0x8005 is not configured
[sanei_debug] Setting debug level of sanei_usb to 1.
(snip this also more 4times)

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


My environment is:
PC: Mac mini with Mac OS X 10.4.10 (Xcode installed)
Scanner: fujitsu fi-5110c

Thank you.

Yoshi




[sane-devel] scanadf on Mac OS X

2007-10-11 Thread Yoshi
Hello.

I am a Mac OS X 10.4.10 user and I installed latest sane-backends
from source code with installing libusb on it, but then I couldn't find
scanadf command. I have ever installed sane-backends on a gentoo
linux server where I could successfully use scanadf.

I have to use ADF scanner(fujitsu fi-5110C or scansnap S500) on that
Mac machine. The build log seemed not to have critical errors.

I build sane-backends and libusb by just
./configure
make && sudo make install

And I installed sane-backends after libusb.

I would like to get advices to build it.

Thank you.

Yoshi