[sane-devel] canon lide 20 + mac os x + usb
Tobias Ernst
tobi at casino.uni-stuttgart.de
Tue Jul 1 09:16:52 BST 2003
Hi!
I have a Canon Lide 20 scanner and want to make it work on Mac OS X 10.1.5,
because of some limitations in the Canon-supplied OSX drivers. I have
read (on www.mostang.com) that the color quality with Sane and that
scanner is "poor", but that's OK, I only need Sane for commandline-driven
batch scans in b&w.
I have compiled and installed libusb from CVS (28 June 2003), and after no
success with the release version of sane I also installed sane from CVS
(30 June 2003).
sane-find-scanner does find the scanner:
found USB scanner (vendor=0x04a9, product=0x220d) at libusb:001:002
I then made sure plustek is in dll.conf and (after no success with the
standard plustek.conf) adjusted plustek.conf as follows
[usb] 0x04A9 0x220D
scanimage does not find the scanner in default settings:
$ scanimage -L
No scanners were identified. If you were expecting something different,
however as soon as I enable debugging to find out why, it DOES find the
scanner:
$ SANE_DEBUG_SANEI_USB=5 scanimage -L 2>/dev/null
device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB
flatbed scanner
Further analysis reveals that SANE_DEBUG_SANEI_USB is the "culprit". As
soon as it is set to 5 or any higher value, the scanner is found, while as
long as it is 4 or lower, the scanner is not found. SANE_DEBUG and other
environment variables do not matter.
To me, this looks like a buffer overflow or a timing issue in sanei_usb.
I decided to continue anyway, but with no success:
$ SANE_DEBUG_SANEI_USB=255 SANE_DEBUG=255 SANE_DEBUG_PLUSTEK=255
scanimage 2>lide20-osx.log
P6
# SANE data follows
248 150
255
After that, the process stops. I.e., the plustek backend gets loaded and
starts to do something, but fails as soon as actual data should be
transferred.
I am attaching lide20-osx.log, maybe someone can make some sense out of it.
BTW, I was using gcc 3.1, as compilation with gcc 2.97 did not succeed:
$ gcc3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1041, based on gcc version 3.1 20020105
(experimental)
If necessary, shell access for a trusted developer could be arranged.
Thanks a lot, and best regards,
Tobias.
--
Dipl. Phys. Tobias Ernst
University of Stuttgart - Casino IT
Faculty for Architecture and Urban Planning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lide20-osx.log.gz
Type: application/x-gzip
Size: 4368 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20030701/1e59b1f8/attachment.bin>
More information about the sane-devel
mailing list