[sane-devel] New to list - need help to understand sane

William Heidrich wph at netyp.com.au
Sat Nov 16 03:24:58 GMT 2002


Hi,

I'm trying to configure a canon fb630u.

running xsane canon630u

I get: failed to open device - invalid argument

I've included some of the logs below.

If there are any suggestions. Also, how do I connect the canon630u.conf
file to sane?


Much appreciated

***

P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=d0800000
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=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 4
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0451 ProdID=2046 Rev= 1.25
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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=   1 Ivl=255ms
T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=003c Rev= 1.01
S:  Manufacturer=Microsoft
S:  Product=SideWinder Joystick
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 40mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms
T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04a9 ProdID=2204 Rev= 0.01
S:  Product=CanoScan FB630U
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=10(unk. ) Sub=01 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
[root at localhost root]#

[root at localhost root]# sane-find-scanner

  # No SCSI scanners found. If you expected something different, make
sure that
  # you have loaded a SCSI driver for your SCSI adapter.
  # Also you need support for SCSI Generic (sg) in your operating
system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04a9, product=0x2204 [CanoScan FB630U]) at
libusb:001:004
  # A USB device was detected. This program can't be sure if it's really
  # a scanner. If it is your scanner, 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.
[root at localhost root]#

[root at localhost root]# SANE_DEBUG_CANON630U=255 scanimage -L
[sanei_debug] Setting debug level of canon630u to 255.
[canon630u] sane_init: version_code != 0, authorize != 0
[canon630u] sane_init: SANE Canon630u backend version 1.0.1 from
sane-backends-1.0.9
1.0.9
[canon630u] reading configure file canon630u.conf
[canon630u] attach_matching_devices(usb 0x04a9 0x2204)
[canon630u] attach_scanner: libusb:001:004
[canon630u] attach_scanner: opening libusb:001:004
[canon630u] CANON_open_device: `libusb:001:004'
[canon630u] CANON_close_device:
[canon630u] finished reading configure file
[canon630u] sane_get_devices(local_only = 0)
device `canon630u:libusb:001:004' is a CANON Canoscan FB630U flatbed
scanner
[canon630u] sane_exit

[root at localhost root]#[root at localhost root]# modprobe -l
/lib/modules/2.4.18-14custom/kernel/drivers/block/loop.o
/lib/modules/2.4.18-14custom/kernel/drivers/char/joystick/emu10k1-gp.o
/lib/modules/2.4.18-14custom/kernel/drivers/char/joystick/sidewinder.o
/lib/modules/2.4.18-14custom/kernel/drivers/char/lp.o
/lib/modules/2.4.18-14custom/kernel/drivers/input/joydev.o
/lib/modules/2.4.18-14custom/kernel/drivers/input/keybdev.o
/lib/modules/2.4.18-14custom/kernel/drivers/input/mousedev.o
/lib/modules/2.4.18-14custom/kernel/drivers/net/dummy.o
/lib/modules/2.4.18-14custom/kernel/drivers/parport/parport.o
/lib/modules/2.4.18-14custom/kernel/drivers/parport/parport_pc.o
/lib/modules/2.4.18-14custom/kernel/drivers/parport/parport_serial.o
/lib/modules/2.4.18-14custom/kernel/drivers/usb/scanner.o
/lib/modules/2.4.18-14custom/kernel/drivers/usb/serial/usbserial.o
[root at localhost root]## Options for the canonusb backend

*** contents of canon630u.conf ****

# Autodetect the Canon CanoScan FB630u
#usb 0x04a9 0x2204

device libusb:001:004

# device list for non-linux-systems (enable if autodetect fails):
#/dev/scanner
#/dev/usb/scanner0






More information about the sane-devel mailing list