On Wed, 9 Aug 2006, ?tienne Bersac wrote:

> Hello,
>
>> scanimage -L reports:
>> device `plustek:libusb:003:003' is a Canon N1220U USB flatbed scanner
>
> User should have
>
>        bersace@celebrad:~$ scanimage -L
>        device `plustek:libusb:002:002' is a Canon CanoScan N1220U flatbed 
> scanner
>                                                  ^^^^^^^^      ^^^
>
> The USB in "USB flatbed scanner" is very annoying since that make type
> parsing hard if an app want to show an icon representing the type of the
> device. I guess an enum should be better than string.

1. CanoScan is missing? it is not be possible to have the scanner report 
what is printed on its outside, only the inside :)

2. USB is added? yes- the type strings are defined on page 18 of the sane 
spec, and it should only be 'flatbed scanner'

>
>> SANE_TYPE_OPTION does not exist
>
> Sorry, i meant SANE_TYPE_{BOOL,INT,FIXED,STRING}.
>
> The 5 options "button" have SANE_TYPE_BOOL as type (in
> SANE_Option_Descriptor struct). That should be SANE_TYPE_BUTTON.
>

3. button type is bool? read the sane standard- SANE_TYPE_BUTTON has no 
value! how can the backend signal a button has been pressed with no value? 
SANE_TYPE_BUTTON is a poorly named choice, but it is used to have the 
frontend 'set' the backend to do something.

a frontend writer who wishes to work with buttons should be prepared for 
bool,int, or fixed, and perhaps string. various counters and screens which 
are set by the user at the scanner could be reported this way.

allan

> Thanks.
>
> ?tienne.
>

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera
From [email protected]  Wed Aug  9 13:19:13 2006
From: [email protected] (Johannes Meixner)
Date: Wed Aug  9 13:19:22 2006
Subject: AW: [sane-devel] Configuring SCSI-Scanner under SUSE 10.1
In-Reply-To: <009901c6bbb6$bc430a70$1e6f78c2@bwin>
References: <009901c6bbb6$bc430a70$1e6f78c2@bwin>
Message-ID: <[email protected]>


Hello,

On Aug 9 15:21 Daniel Spannbauer wrote (shortened):
> Inmy Epson.conf theres only an entry "scsi EPSON", in dll.conf only "Epson".
> Sane-find-scanner found the scanner, scanimage -L listet the scanner. All as
> User root. Scanimae > /tmp/out.pnm worked also. But than with scanimage -L
> theres no scanner until I only open the Epson.conf and save it. Than
> scanimage -L is listing the scanner. But only 1 try, then open Epson.conf,
> save it.....
> 
> As normal User scanimage -L don't list the scanner, /dev/sg1 has full
> rights.
> 
> Can you give me a hint?

I am afraid, I can't.
Please provide logs (as described before) so that we may have a
chance to see which obscure magic there is going on.
It looks a bit like SCSI problems but I am no SCSI expert
so that I cannot help you regarding SCSI problems.

Note that the generic SCSI device files (/dev/sg*) are assigned
to the real hardware devices in somewhat random order and some
USB mass-storage devices show up as generic SCSI device, e.g.
the cardreader unit in my Epson USB all-in-one device shows up
as /dev/sda and as /dev/sg0.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: [email protected]
90409 Nuernberg, Germany                    WWW: http://www.suse.de/

Reply via email to