[sane-devel] snapscan e40 (usb) problem

Jodie Mann jomann22@zonnet.nl
Fri, 1 Mar 2002 23:10:29 +0100


Hi,

I am having trouble getting my Agfa Snapscan e40 working on my linux 
(SuSE-7.2) machine with sane-1.0.7.

Please help as I have tried every tip so far I have found on the web regardng 
sane and snapscan!

 - When I start xsane it either does not show my scanner (when the pnm 
devices are enabled xsane starts and shows only two pnm devices) or gives the 
error "no device available".

Thanks for any help....

....Rob.
_________________________________________________________________

 - when a device is explicitly given:
# xsane snapscan:/dev/usbscanner
I get the error:
'Failed to open device 'snapscan:/dev/usbscanner'; Invalid argument.'

 - I have updated the firmware (snape.bin applied using agfafirm.pl) :
# ./agfafirm.pl -v /dev/usbscanner ./Snape40.bin
Scanner Information (from scanner)
        Vendor:        AGFA    
        Version:       0122
        Model:         SNAPSCAN e40    
        Firmware date: Fri Jun 16 2000 09:37
Firmware is up to date.

 - The following devices/links exist :
# ls -l /dev/ | grep scanner
crw-------    1 root     scanner  180,  48 May 21  2001 usbscanner
# ls -l /dev/usb/ | grep scanner
lrwxrwxrwx    1 root     scanner        15 Feb 28 18:30 scanner0 -> 
/dev/usbscanner
crw-rw----    1 root     root     180,  49 May 21  2001 scanner1
crw-rw----    1 root     root     180,  50 May 21  2001 scanner2
crw-rw----    1 root     root     180,  51 May 21  2001 scanner3
crw-rw----    1 root     root     180,  52 May 21  2001 scanner4
crw-rw----    1 root     root     180,  53 May 21  2001 scanner5
crw-rw----    1 root     root     180,  54 May 21  2001 scanner6
crw-rw----    1 root     root     180,  55 May 21  2001 scanner7

 - sane-backend was compiled with the following snapscan.conf
/dev/usbscanner
usb 0x06bd 0x208d
firmware /usr/bin/Snape40.bin

 - The scanner light is on (GOOD!) and the device is recognised :
# lsusb
Bus 001 Device 002: ID 06bd:208d Bus 002 Device 001: ID 0000:0000 Virtual Hub
DeviAGFA-Gevaert NV 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol       255 Vendor Specific Protocol
  bMaxPacketSize0         8
  idVendor           0x06bd AGFA-Gevaert NV
  idProduct          0x208d 
  bcdDevice            1.00
  iManufacturer           1 AGFA
  iProduct                2  SNAPSCAN e40   
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            218
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize          8
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval              16
  Language IDs: 0409

 - and this....
# usbview:
SNAPSCAN e40   
Manufacturer: AGFA
Speed: 12Mb/s (full)
USB Version:  1.00
Device Class: ff(vend.)
Device Subclass: ff
Device Protocol: ff
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 06bd
Product Id: 208d
Revision Number:  1.00

Config Number: 1
	Number of Interfaces: 1
	Attributes: 40
	MaxPower Needed: 100mA

	Interface Number: 0
		Name: usbscanner
		Alternate Number: 0
		Class: ff(vend.) 
		Sub Class: 0
		Protocol: 0
		Number of Endpoints: 3

			Endpoint Address: 81
			Direction: in
			Attribute: 2
			Type: Bulk
			Max Packet Size: 64
			Interval:   0ms

			Endpoint Address: 02
			Direction: out
			Attribute: 2
			Type: Bulk
			Max Packet Size: 8
			Interval:   0ms

			Endpoint Address: 83
			Direction: in
			Attribute: 3
			Type: Int.
			Max Packet Size: 8
			Interval:  16ms