[sane-devel] sane-umax1220u fails with Umax 2000U

Albrecht Beck albrecht.beck at arcor.de
Sat Jan 9 21:43:39 UTC 2010


Hi Stef,

thanks for your hint.

Here is the interesting part of the log:

[umax1220u] UMAX_open_device: Scanner is a 2000U. Expect color
problems :)
[umax1220u] csend: cmd = 0
[umax1220u] usync: len = 0, cmd = 0
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 0,
index = 0, len = 0
[sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 3, value = 2,
index = 0, len = 0
[sanei_usb] sanei_usb_write_bulk: trying to write 2 bytes
[sanei_usb] 000 55 AA                                           U.
[sanei_usb] sanei_usb_write_bulk: wanted 2 bytes, wrote 2 bytes
[sanei_pv8630] sanei_pv8630_read_byte - index=4, byte=0xbfb40bdf
[sanei_usb] sanei_usb_control_msg: rtype = 0xc0, req = 0, value = 0,
index = 4, len = 1
[sanei_usb] 000 88  
  :
  19 retries discarded
  :
[sanei_pv8630] sanei_pv8630_wait_byte: timeout waiting for 48 (got 88)
[umax1220u] Failure on line of umax1220u-common.c: 394
[sanei_pv8630] sanei_pv8630_read_byte - index=4, byte=0xbfb40bdf
[sanei_usb] sanei_usb_control_msg: rtype = 0xc0, req = 0, value = 0,
index = 4, len = 1
[sanei_usb] 000 88 
  :
  19 retries discarded
  :
[sanei_pv8630] sanei_pv8630_wait_byte: timeout waiting for 48 (got 88)
[umax1220u] UMAX_close_device:
[sanei_usb] sanei_usb_close: closing device 0
[umax1220u] Failure on line of umax1220u-common.c: 2359
[umax1220u] ERROR: attach_scanner: opening libusb:005:003 failed
 

I didn't see any kernel log messages concerning USB problings. Only
disconnecting and and subsequently reconnecting the scanner was logged:

[ 5405.328052] usb 5-2: USB disconnect, address 2
(interrupt USB connection to scanner)
[ 5411.252022] usb 5-2: new full speed USB device using uhci_hcd and
address 3
[ 5411.395205] usb 5-2: configuration #1 chosen from 1 choice
(reconnect scanner)

The scanner has been working with Windows and an older Ubuntu release on
another PC.

Does this information give any hint how to proceed?

Thanks in advance,

Albrecht


Am Freitag, den 08.01.2010, 06:56 +0100 schrieb stef:
> Le jeudi 7 janvier 2010 18:38:03 Albrecht Beck, vous avez écrit :
> > Hi Allan,
> > 
> > unfotunately this doesn't seem to a permissions issue. If I try it as
> > root, the problem persists.
> > 
> > Albrecht
> > 
> > Am Donnerstag, den 07.01.2010, 10:02 -0500 schrieb m. allan noah:
> > > did you try it as root, just in case it is a permissions issue?
> > >
> > > allan
> > >
> > > On Thu, Jan 7, 2010 at 4:17 AM, Albrecht Beck <albrecht.beck at arcor.de> 
> wrote:
> > > > Hi,
> > > >
> > > > I'm trying to get the Umax 2000U running with Ubuntu 9.10.
> > > > Unfortunately it doesn't work:
> > > >
> > > > albrecht at calculus:~$ lsusb
> > > > Bus 005 Device 002: ID 1606:0030 Umax [hex] Astra 2000U
> > > > Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > > Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > > Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > >
> > > > albrecht at calculus:~$ 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=0x1606, product=0x0030, chip=PV8630/LM9830)
> > > > at libusb:005:002
> > > >  # 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.
> > > >
> > > >  # 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.
> > > >
> > > > albrecht at calculus:~$ SANE_DEBUG_UMAX1220U=128 scanimage -L
> > > >
> > > > [sanei_debug] Setting debug level of umax1220u to 128.
> > > > [umax1220u] sane_init: version_code != 0, authorize != 0
> > > > [umax1220u] sane_init: SANE umax1220u backend version 1.0.2 from
> > > > sane-backends 1.0.20
> > > > [umax1220u] reading configure file umax1220u.conf
> > > > [umax1220u] attach_matching_devices(usb 0x1606 0x0010)
> > > > [umax1220u] attach_matching_devices(usb 0x1606 0x0030)
> > > > [umax1220u] attach_scanner: libusb:005:002
> > > > [umax1220u] attach_scanner: opening libusb:005:002
> > > > [umax1220u] UMAX_open_device: `libusb:005:002'
> > > > [umax1220u] UMAX_open_device: Scanner is a 2000U. Expect color
> > > > problems :)
> > > > [umax1220u] csend: cmd = 0
> > > > [umax1220u] usync: len = 0, cmd = 0
> > > > [umax1220u] Failure on line of umax1220u-common.c: 394
> > > > [umax1220u] UMAX_close_device:
> > > > [umax1220u] Failure on line of umax1220u-common.c: 2359
> > > > [umax1220u] ERROR: attach_scanner: opening libusb:005:002 failed
> > > > [umax1220u] attach_matching_devices(usb 0x1606 0x0130)
> > > > [umax1220u] attach_matching_devices(/dev/scanner)
> > > > [umax1220u] attach_scanner: /dev/scanner
> > > > [umax1220u] attach_scanner: opening /dev/scanner
> > > > [umax1220u] UMAX_open_device: `/dev/scanner'
> > > > [umax1220u] UMAX_open_device: couldn't open device `/dev/scanner':
> > > > Invalid argument
> > > > [umax1220u] ERROR: attach_scanner: opening /dev/scanner failed
> > > > [umax1220u] attach_matching_devices(/dev/usb/scanner0)
> > > > [umax1220u] attach_scanner: /dev/usb/scanner0
> > > > [umax1220u] attach_scanner: opening /dev/usb/scanner0
> > > > [umax1220u] UMAX_open_device: `/dev/usb/scanner0'
> > > > [umax1220u] UMAX_open_device: couldn't open device `/dev/usb/scanner0':
> > > > Invalid argument
> > > > [umax1220u] ERROR: attach_scanner: opening /dev/usb/scanner0 failed
> > > > [umax1220u] finished reading configure file
> > > > [umax1220u] sane_get_devices(local_only = 0)
> > > > [umax1220u] sane_exit
> > > >
> 	Hello,
> 
> 	by looking at the code, the backend fails at the first USB read from the 
> pv8630 chip. I think it should interesting to check for kernel log messages 
> regarding USB error messages (with the dmesg command for instance). When 
> testing, could you enable debugging messages for sanei_pv8630_* functions by 
> with:
> export SANE_DEBUG_SANEI_PV8630=5
> 
> 	While we're at it, you could also turn on USB debugging messages with:
> export SANE_DEBUG_SANEI_USB=11
> 
> 	Another thing would be to test that if this scanner works with another 
> computer or another OS.
> 	If these checks don't show anything, the only thing I can think of would be 
> to log the init sequence of the scanner by the windows driver and compare with 
> what the backend is doing. 
> 
> Regards,
> 	Stef






More information about the sane-devel mailing list