[sane-devel] SANE and DocuMate 262i

ZeLegolas . zelegolas at gmail.com
Thu Jan 22 15:02:24 UTC 2009


Hi,

I just bought a Xerox DocuMate 262i. If we check this link the 262 is
already supported
(http://www.sane-project.org/cgi-bin/driver.pl?manu=xerox&model=DocuMate&bus=any&v=&p=.).
I guest the to 262i is not far it's just faster :)

First try:

When i run lsusb i have this:
# lsusb
...
Bus 002 Device 004: ID 04a7:04a7 Visioneer
...

On /etc/sane.d/avision.conf I add this line:

#scsi /dev/scanner
# usb libusb:002:003
# usb 0x03f0 0x0701
usb 0x04a7 0x04a7

And if i run scanimage i have this output:

# scanimage -L
[avision] attach: "XEROX" - "DM262i" not yet in whitelist!
[avision] attach: You might want to report this output.
[avision] attach: To: rene at exactcode.de (the Avision backend author)
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).

And if i run sane-find-scanner i have this output:
# sane-find-scanner
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
found USB scanner (vendor=0x04a7 [XEROX], product=0x04a7 [DM262i]) at
libusb:002:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

Second try:

I change the code sane-backends-1.0.19/backend/avision.c like this:
{ "XEROX", "DocuMate262",
      0x04a7, 0x044c,
      "Xerox", "DocuMate262",
      AV_INT_BUTTON},

    { "XEROX", "DM262i",
      0x04a7, 0x04a7,
      "Xerox", "DocuMate262i",
      AV_INT_BUTTON},
    /* status="good" */

Now it's better with scanadf I can see:
# scanadf -L
device `avision:libusb:002:003' is a Xerox DocuMate262i sheetfed scanner

And if I run:
# scanadf --source "ADF Duplex"

It's work VERY FAST!!!! But... after 2 or 3 tests I lost the device
and it generate this message:
$ scanadf --source "ADF Duplex" --output-file "test/Page-%04d.pnm" -s 2
scanadf: stopping scanner...
scanadf: stopping scanner...
scanadf: sane_start: Error during device I/O
Error during device I/O
Scanned 0 pages

The worse it's even i reset the scanner that doesn't change anything.
I have to power off the scanner, power off my computer, power on my
computer and power on my computer. Crazy!

My configuration:

I'm using Gentoo distribution:

# emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2,
glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6700_ at _2.66GHz-with-glibc2.2.5
Timestamp of tree: Thu, 22 Jan 2009 08:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.1/env /usr/kde/4.1/share/config
/usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/
http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net
http://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acc acl acpi alsa amd64 bluetooth branding bzip2 cairo cdr cli
cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss
emul-linux-x86 encode esd evo fam firefox fortran gdbm gif gpm
gstreamer hal htmlhandbook iconv isdnlog jpeg kde kdeprefix ldap
libnotify mad matroska midi mikmod mmx mmx2 mp3 mpeg mudflap multilib
ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds
pppd python qt qt3support qt4 quicktime readline reflection sdl
session spell spl sse sse2 ssl startup-notification svg sysfs tcpd
threads tiff truetype unicode usb vorbis xml xorg xulrunner xv xvid
zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106
cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboardmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LINGUAS="en fr" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

Version of sane-backends:

# emerge -pv sane-backends

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-gfx/sane-backends-1.0.19-r2  USE="doc usb
-gphoto2 -ipv6 -v4l" 0 kB

Any help will be appreciate

Regards



More information about the sane-devel mailing list