[sane-devel] Umax Astra 4000U and sane-umax

Nissim Chudnoff Nissim Chudnoff <nissim@shinara.net>
Thu, 12 Dec 2002 16:08:53 -0700


Hello,

I'd love to help get this scanner supported in SANE with the umax-sane
driver. I hope there are people who might find this useful, do you
know if anyone else is working on this? Unfortunately, this is my
first time using anything USB in Linux so hopefully I haven't botched
something simple.

The 4000U has Vendor 0x1606 and Product 0x1030. Inside there's a
Powervision PV8630DL, Winbond W6662CF, the unlabeled main chip
(13010059-5000), and some kind of ROM labeled "Astra 4000U U1
V1.1".

I installed USB in kernel and "scanner" as a module with the options
for the Astra 4000U.

/proc/bus/usb/devices.txt:
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 11/900 us ( 1%), #Int=  1, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=d400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1606 ProdID=1030 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=usbscanner
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=1ms

mknod /dev/usbscanner0 c 180 48
ln -s /dev/usbscanner0 /dev/usbscanner
chmod 660 /dev/usbscanner0
modprobe scanner vendor=0x1606 product=0x1030

Kernel says:
Dec 12 15:33:30 zaki kernel: usb.c: registered new driver usbscanner
Dec 12 15:33:30 zaki kernel: scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 1606:1030
Dec 12 15:33:30 zaki kernel: scanner.c: 0.4.6:USB Scanner Driver

sane-find-scanner works:
  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x1606, product=0x1030) at /dev/usbscanner
found USB scanner (vendor=0x1606, product=0x1030) at /dev/usbscanner0
  # Your USB scanner was detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Scanners connected to the parallel port or other proprietary ports can't be
  # detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

I comment out the scsi scanners and the 2200U lines in the sane-umax
config, and add 0x1606 0x1030. Set debug to 13 and run scanimage:

[sanei_debug] Setting debug level of umax to 13.
[umax] sane_init
[umax] This is sane-umax version 1.0 build 38
[umax] compiled with USB support for Astra 2200
[umax] (C) 1997-2002 by Oliver Rauch
[umax] EMAIL: Oliver.Rauch@rauch-domain.de
[umax] reading configure file umax.conf
[umax] option connection-type = 2
[umax] sanei_usb_attach_matching_devices(usb 0x1606 0x1030)
[umax] attach_scanner: /dev/usbscanner, connection_type 2
[umax] attach_scanner: opening usb device /dev/usbscanner
[umax] ERROR: attach_scanner: opening usb device /dev/usbscanner failed
[umax] attach_scanner: /dev/usbscanner0, connection_type 2
[umax] attach_scanner: opening usb device /dev/usbscanner0
[umax] ERROR: attach_scanner: opening usb device /dev/usbscanner0 failed
[umax] option connection-type = 2
[umax] attach_scanner: /dev/usbscanner, connection_type 2
[umax] attach_scanner: opening usb device /dev/usbscanner
[umax] ERROR: attach_scanner: opening usb device /dev/usbscanner failed
[umax] finished reading configure file
[umax] sane_get_devices(local_only = 0)
scanimage: no SANE devices found
[umax] sane_exit

Is this indicating a problem with how I've (mis)configured USB or is
there something I can do to the sane-umax driver to force it to talk
to the 4000U? I'd be more than glad to do any testing for anymore more
familiar with SANE...

Thanks,
Nissim Chudnoff
<nissim@shinara.net>