[sane-devel] Mustek 1200 USB Plus - RH Linux 7.1

Henning Meier-Geinitz henning@meier-geinitz.de
Tue, 6 Nov 2001 23:17:50 +0100


Hi,

On Tue, Nov 06, 2001 at 01:09:03PM +0100, Christoph Kukulies wrote:
> 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= 8 #Cfgs=  1
> P:  Vendor=055f ProdID=0007 Rev= 1.00
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 64mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=usbscanner
> E:  Ad=01(O) Atr=02(Bulk) MxPS=   2 Ivl=  0ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=  1ms
> 
> The latter worked the first time after I did a 
> modprobe scanner vendor=0x055f product=0x0007 

Looks ok. So it's at least detected by the Linux kernel scanner module.

> scanimage -L 
> device `mustek_usb:/dev/usb/scanner0' is a Mustek (unidentified) flatbed scanner

Did you change anything in mustek_usb.conf? The scanner shouldn't be
detected at all by default.

> And scanimage -L stderr with max debug level:
> SANE_DEBUG_MUSTEK=255

You don't need this. It's only for SCSI scanners.

> [mustek_usb] sane_init: config file line 6: trying to attach `usb 0x055f 0x0007'
> [sanei_usb] sanei_usb_find_devices: vendor=0x55f, product=0x7, attach=0x402671d4

We are trying to autodetect the scanner ...

> [sanei_usb] sanei_usb_open: open failed: No such file or directory

now trying all possible device names (e.g. /dev/usb/scanner0)

> [sanei_usb] sanei_usb_open: fd 5 opened

We found something that can be opened...

> [sanei_usb] sanei_usb_get_vendor_product: ioctl (vendor) of fd 5 failed: Inappropriate ioctl for device
> [sanei_usb] sanei_usb_get_vendor_product: ioctl (product) of ds 5 failed: Inappropriate ioctl for device
Ha, thanks for pointing to this typo :-) Will fix this in CVS. ^^
> [sanei_usb] sanei_usb_get_vendor_product: fd 5: couldn't get vendor+product ids. ioctl unsupported?

You seem to have a Linux kernel version < 2.4.8. Is this correct?
This means you must set the scanner type manually (as described in the
manual page).

> [mustek_usb] sane_init: config file line 26: trying to attach `/dev/usb/scanner0'
> [mustek_usb] attach: start: devp != NULL, may_wait = 0
> [mustek_usb] attach: trying to open device `/dev/usb/scanner0'
> [sanei_usb] sanei_usb_open: fd 5 opened
> [mustek_usb] attach: device `/dev/usb/scanner0' successfully opened

Ok, now manually ...

> [mustek_usb] attach: warning: couldn't identify device `/dev/usb/scanner0', must set type manually

That's right...

> [mustek_usb] sane_init: config file line 27: option 1200usb_plus is unknown

Yes. There is no option named "1200usb_plus". All the options are
listed in the manual page. Really all of them :-)

However, if you like to hear your scanner in action, you can use
"option 1200cu". You won't scan with this but maybe your scan slider
moves at least. Please keep your fingers at the power plug and remove
power if the slider bumps at the end of the scanner. Could you please
check if the slider moves at all and if it moves to half of the page
if you try to scan half the page?

> [mustek] SANE mustek backend version 1.0 build 113 from sane-backends-1.0.6

Ignore this.

> # + CPK 'invented' next two lines
> /dev/usb/scanner0
> option 1200usb_plus

Try:

/dev/usb/scanner0
option 1200cu

Bye,
  Henning