[sane-devel] [Fwd: Having problems seeing an Agfa Snapscan e52]

Oliver Schwartz Oliver.Schwartz@gmx.de
Wed, 20 Mar 2002 21:30:05 +0100


Hi,

there are two problems with your setup. One:

> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
> D:  Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
> P:  Vendor=06bd ProdID=20fd Rev= 0.38
> S:  Manufacturer=AGFA
> S:  Product= SNAPSCAN e52
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E:
> Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS=   8 Ivl=  0ms
> E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl= 16ms

Driver=(none) indicates that the scanner module didn't find your scanner. 
Since the e52 is fairly new the scanner module needs the vendor and product 
ID passed as arguments. I don't know if you can configure usbmgr to do this, 
but adding a line "options scanner vendor=0x06bd product=0x20fd" to 
/etc/modules.conf should work.

> mknod /dev/usbscanner0 c 180 48
> ln -s /dev/usbscanner0 /dev/usbscanner
> chmod 666 /dev/usbscanner0

You only need one device, but that's a minor detail. Second problem:

> Then I tried an actual command:
>
> outback:/dev# SANE_DEBUG_SNAPSCAN=255 scanimage -L
> [sanei_debug] Setting debug level of snapscan to 255.
> [snapscan] sane_snapscan_init
> [snapscan] sane_snapscan_init: Snapscan backend version 1.4.7
> [snapscan] add_device(/dev/sg0)
> [snapscan] add_device: Detected (kind of) a SCSI device
> [snapscan] add_device: error opening device /dev/sg0: Invalid argument

You need to edit snapscan.conf (usually in /usr/local/etc/sane.d) and replace 
/dev/sg0 by /dev/usbscanner0. While you're at it you also have to specify the 
path to the firmware file there. Your firmware file is named Snape52.bin and 
can be found on your windows partition if you installed the windows driver. 

Please also read the documentation on http://snapscan.sourceforge.net (I 
recommend the section on USB scanners).

Regards,

Oliver