[sane-devel] Re: sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Parag N(पराग़)
Hi,
 It is not a special case for you. Even if you attach any webcam
you will find that sane-find-scanner will show it's USB ID's.
What sane-find-scanner does
1)it searches for all attached devices right from scsi devices to usb devices.
2) In case of usb devices sane-find-scanner program calls
check_usb_file function in sane-find-scanner.c
3)check_usb_file will open each attached usb device and then collect
USB ID's and it will show you that output.

So no wonder.
Regards,
Parag.

On 8/8/06, Johannes Meixner jsm...@suse.de wrote:

 Hello,

 sane-find-scanner from sane-backends 1.0.17 detects the following
 USB smartcard reader as a scanner:
   idVendor   0x0c4b Reiner SCT Kartensysteme GmbH
   idProduct  0x0300 cyberJack pinpad(a)

 I don't have the device to test it with sane-backends 1.0.18
 but I guess it is also detected with sane-backends 1.0.18.

 For the details see
 https://bugzilla.novell.com/show_bug.cgi?id=197513
 in particular
 https://bugzilla.novell.com/attachment.cgi?id=95324action=view

 By the way:
 Nowhere in the sources of sane-backends 1.0.17 I can find
 the USB vendor ID (neither 'c4b' nor 'C4B').
 Which magic lets sane-find-scanner detect this device as a scanner?

 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
 90409 Nuernberg, GermanyWWW: http://www.suse.de/

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
  to sane-devel-requ...@lists.alioth.debian.org



[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread m. allan noah
sane-find-scanner is a tool for a very specific task, locating possible 
scanners connected to the system, even if they are not supported by sane.

unlike scsi, there is no usb class for scanners, so sane has no generic 
way of determining if a usb id is a scanner or not.

that is why we also recommend the use of scanimage -L, which actually 
attaches to each enabled backend, and asks it to query for scanners it 
knows about.

notabug.

allan

ps- if sane-find-scanner needs to spit out a better message, that is a 
possible change, it currently says:

# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

On Tue, 8 Aug 2006, Johannes Meixner wrote:


 Hello,

 sane-find-scanner from sane-backends 1.0.17 detects the following
 USB smartcard reader as a scanner:
  idVendor   0x0c4b Reiner SCT Kartensysteme GmbH
  idProduct  0x0300 cyberJack pinpad(a)

 I don't have the device to test it with sane-backends 1.0.18
 but I guess it is also detected with sane-backends 1.0.18.

 For the details see
 https://bugzilla.novell.com/show_bug.cgi?id=197513
 in particular
 https://bugzilla.novell.com/attachment.cgi?id=95324action=view

 By the way:
 Nowhere in the sources of sane-backends 1.0.17 I can find
 the USB vendor ID (neither 'c4b' nor 'C4B').
 Which magic lets sane-find-scanner detect this device as a scanner?

 Kind Regards
 Johannes Meixner


-- 
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


[sane-devel] Re: sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Johannes Meixner

Hello,

On Aug 8 16:49 Parag N() wrote (shortened):
 What sane-find-scanner does
...
 3)check_usb_file will open each attached usb device and then collect
 USB ID's and it will show you that output.

Not in any case.

There are several other USB devices which are correctly not
shown as scanners by sane-find-scanner.

Right now I didn't check check_usb_file and the functions
which it calls in detail but according to
https://bugzilla.novell.com/attachment.cgi?id=95324action=view
it seems sane-find-scanner lists any USB device as scanner when
either bDeviceClass = 255 (Vendor Specific Class)
or bDeviceClass = 0 (Defined at Interface level)
   and bInterfaceClass = 255 (Vendor Specific Class)
because those USB devices are The Usual Suspects ;-)

Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
90409 Nuernberg, GermanyWWW: http://www.suse.de/


[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Johannes Meixner

Hello,

On Aug 8 08:04 m. allan noah wrote (shortened):
 unlike scsi, there is no usb class for scanners

I thought there is even no SCSI class for scanners.
At least my SCSI scanner HP ScanJet 6200C shows up as Processor:

# lsscsi -c
...
Host: scsi0 Channel: 00 Target: 04 Lun: 00
  Vendor: HP   Model: C6270A   Rev: 3846
  Type:   ProcessorANSI SCSI revision: 02


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
90409 Nuernberg, GermanyWWW: http://www.suse.de/


[sane-devel] Re: sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Parag N(पराग़)
Hi,
On 8/8/06, Johannes Meixner jsm...@suse.de wrote:

 Hello,

 On Aug 8 16:49 Parag N() wrote (shortened):
  What sane-find-scanner does
 ...
  3)check_usb_file will open each attached usb device and then collect
  USB ID's and it will show you that output.

 Not in any case.

 There are several other USB devices which are correctly not
 shown as scanners by sane-find-scanner.
  Can i know which are those that you experienced are not detected
by sane-find-scanner?

 Right now I didn't check check_usb_file and the functions
 which it calls in detail but according to
 https://bugzilla.novell.com/attachment.cgi?id=95324action=view
 it seems sane-find-scanner lists any USB device as scanner when
 either bDeviceClass = 255 (Vendor Specific Class)
 or bDeviceClass = 0 (Defined at Interface level)
and bInterfaceClass = 255 (Vendor Specific Class)
 because those USB devices are The Usual Suspects ;-)
 yeah i just checked with other USB webcams and barcode scanners and
what i found is that your observation is correct.
 for all webcams i got
either bDeviceClass = 255 (Vendor Specific Class)
or bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass
= 255 (Vendor Specific Class)
but for USB barcode scanner i got
 bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass = 3
which is not detected by sane-find-scanner.

 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
 90409 Nuernberg, GermanyWWW: http://www.suse.de/

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
  to sane-devel-requ...@lists.alioth.debian.org



[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Parag N(पराग़)
Hi,
On 8/8/06, Johannes Meixner jsm...@suse.de wrote:

 Hello,

 On Aug 8 08:04 m. allan noah wrote (shortened):
  unlike scsi, there is no usb class for scanners

 I thought there is even no SCSI class for scanners.
 At least my SCSI scanner HP ScanJet 6200C shows up as Processor:
 
 # lsscsi -c
 ...
 Host: scsi0 Channel: 00 Target: 04 Lun: 00
   Vendor: HP   Model: C6270A   Rev: 3846
   Type:   ProcessorANSI SCSI revision: 02
 

 I need to check this as i don't have any scsi scanner.

 Kind Regards
 Johannes Meixner
 --
 SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
 90409 Nuernberg, GermanyWWW: http://www.suse.de/

 --
 sane-devel mailing list: sane-devel@lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
  to sane-devel-requ...@lists.alioth.debian.org



[sane-devel] Re: sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Johannes Meixner

Hello,

On Aug 8 18:34 Parag N() wrote (shortened):
 On 8/8/06, Johannes Meixner jsm...@suse.de wrote:
  On Aug 8 16:49 Parag N() wrote (shortened):
   What sane-find-scanner does
  ...
   3)check_usb_file will open each attached usb device and then collect
   USB ID's and it will show you that output.
...
  Right now I didn't check check_usb_file and the functions
  which it calls in detail but according to
  https://bugzilla.novell.com/attachment.cgi?id=95324action=view
  it seems sane-find-scanner lists any USB device as scanner when
  either bDeviceClass = 255 (Vendor Specific Class)
  or bDeviceClass = 0 (Defined at Interface level)
 and bInterfaceClass = 255 (Vendor Specific Class)
  because those USB devices are The Usual Suspects ;-)

 yeah i just checked with other USB webcams and barcode scanners and
 what i found is that your observation is correct.
 for all webcams i got
 either bDeviceClass = 255 (Vendor Specific Class)
 or bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass
 = 255 (Vendor Specific Class)
 but for USB barcode scanner i got
 bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass = 3
 which is not detected by sane-find-scanner.

As far as I have found out up to now, it is not check_usb_file()
but nowadays check_libusb_device() (if libusb is used)
and here the section
/* Some heuristics, which device may be a scanner */
seems to be the crucial one:
---
case USB_CLASS_VENDOR_SPEC:
  ++is_scanner;
  break;
...
case USB_CLASS_VENDOR_SPEC:
case USB_CLASS_PER_INTERFACE:
case 16:/* data? */
  ++is_scanner;
  break;
...
  if (is_scanner  0)
...
  printf (found USB scanner ...
---
In particular it seems bInterfaceClass is not tested at all.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5  Mail: jsm...@suse.de
90409 Nuernberg, GermanyWWW: http://www.suse.de/


[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Daniel Glöckner
On Tue, Aug 08, 2006 at 06:36:10PM +0530, Parag N() wrote:
 On Aug 8 08:04 m. allan noah wrote (shortened):
  unlike scsi, there is no usb class for scanners
 
 I thought there is even no SCSI class for scanners.
 At least my SCSI scanner HP ScanJet 6200C shows up as Processor:
 
 # lsscsi -c
 ...
 Host: scsi0 Channel: 00 Target: 04 Lun: 00
   Vendor: HP   Model: C6270A   Rev: 3846
   Type:   ProcessorANSI SCSI revision: 02
 
 
 I need to check this as i don't have any scsi scanner.

Attached devices: 
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: UMAX Model: Astra 1200S  Rev: V2.9
  Type:   Scanner  ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: MICROTEK Model: ScanMaker II Rev: 5.61
  Type:   Scanner  ANSI SCSI revision: 01 CCS

  Daniel


[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread m. allan noah
On Tue, 8 Aug 2006, Johannes Meixner wrote:


 Hello,

 On Aug 8 08:04 m. allan noah wrote (shortened):
 unlike scsi, there is no usb class for scanners

 I thought there is even no SCSI class for scanners.
 At least my SCSI scanner HP ScanJet 6200C shows up as Processor:
 
 # lsscsi -c
 ...
 Host: scsi0 Channel: 00 Target: 04 Lun: 00
  Vendor: HP   Model: C6270A   Rev: 3846
  Type:   ProcessorANSI SCSI revision: 02
 

 Kind Regards
 Johannes Meixner

there is a scanner class (6, iirc). it is defined in section 15 of the 
scsi2 spec. hp is just stupid :)

allan



-- 
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


[sane-devel] sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread abel deuring
Johannes Meixner wrote:
 Hello,
 
 On Aug 8 08:04 m. allan noah wrote (shortened):
unlike scsi, there is no usb class for scanners
 
 I thought there is even no SCSI class for scanners.
 At least my SCSI scanner HP ScanJet 6200C shows up as Processor:
 
 # lsscsi -c
 ...
 Host: scsi0 Channel: 00 Target: 04 Lun: 00
   Vendor: HP   Model: C6270A   Rev: 3846
   Type:   ProcessorANSI SCSI revision: 02
 

Some HP scanners don't support the SCSI command set for scanners;
they use some vendor specific command set instead. For these devices
it is probably correct that they identify themselves as
processors, i.e., a kind of generic SCSI devices.

But this means that sane-find-scanner will detect other fancy SCSI
devices too. If my memory does not deceive me, somebody reported
problems on this list with a SCSI RAID controller, which presented
its control part to the Linux kernel as a SCSI processor. Another
candidate for this device class would be a tape robot.

Abel



[sane-devel] Re: sane-find-scanner detects smartcard reader as scanner

2006-08-08 Thread Parag N(पराग़)
Hi,
On 8/8/06, Johannes Meixner jsm...@suse.de wrote:

 Hello,

 On Aug 8 18:34 Parag N() wrote (shortened):
  On 8/8/06, Johannes Meixner jsm...@suse.de wrote:
   On Aug 8 16:49 Parag N() wrote (shortened):
What sane-find-scanner does
   ...
3)check_usb_file will open each attached usb device and then collect
USB ID's and it will show you that output.
 ...
   Right now I didn't check check_usb_file and the functions
   which it calls in detail but according to
   https://bugzilla.novell.com/attachment.cgi?id=95324action=view
   it seems sane-find-scanner lists any USB device as scanner when
   either bDeviceClass = 255 (Vendor Specific Class)
   or bDeviceClass = 0 (Defined at Interface level)
  and bInterfaceClass = 255 (Vendor Specific Class)
   because those USB devices are The Usual Suspects ;-)
 
  yeah i just checked with other USB webcams and barcode scanners and
  what i found is that your observation is correct.
  for all webcams i got
  either bDeviceClass = 255 (Vendor Specific Class)
  or bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass
  = 255 (Vendor Specific Class)
  but for USB barcode scanner i got
  bDeviceClass = 0 (Defined at Interface level) with bInterfaceClass = 3
  which is not detected by sane-find-scanner.

 As far as I have found out up to now, it is not check_usb_file()
 but nowadays check_libusb_device() (if libusb is used)
 and here the section
 /* Some heuristics, which device may be a scanner */
 seems to be the crucial one:
 ---
 case USB_CLASS_VENDOR_SPEC:
   ++is_scanner;
   break;
 ...
 case USB_CLASS_VENDOR_SPEC:
 case USB_CLASS_PER_INTERFACE:
 case 16:/* data? */
   ++is_scanner;
   break;
 ...
   if (is_scanner  0)
 ...
   printf (found USB scanner ...
 ---
 In particular it seems bInterfaceClass is not tested at all.

 You can then file this problem in bugzilla and even submit patch for it.

Regards,
Parag.


[sane-devel] sane-find-scanner ...

2006-08-08 Thread Ulrich Deiters
Much more interesting than this discussion why sane-find-scanner works
would be a hint what can be done if scanimage -L does not detect
the scanner. I have this problem under Linux with an SCSI scanner
(i.e., sane-find-scanner sees it, but scanimage not).

Regards,

Ulrich Deiters

-- 
Prof. Dr. Ulrich K. Deiters  __
Institut f. Physikalische Chemie \ Luxemburger Str. 116, D-50939 Koeln
Universitaet zu Koeln   /\/\__.   \ Tel. +49 (0)221 470-4543, Fax -4900 
L|L|__|\ http://www.uni-koeln.de/deiters/


[sane-devel] sane-find-scanner ...

2006-08-08 Thread m. allan noah

this is because there is no sane backend being loaded which supports the 
scanner. what scanner is it?

allan

On Tue, 8 Aug 2006, Ulrich Deiters wrote:

 Much more interesting than this discussion why sane-find-scanner works
 would be a hint what can be done if scanimage -L does not detect
 the scanner. I have this problem under Linux with an SCSI scanner
 (i.e., sane-find-scanner sees it, but scanimage not).

 Regards,

 Ulrich Deiters



-- 
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


[sane-devel] plustek:libusb bugs on canon canoscan n1220U

2006-08-08 Thread Étienne Bersac
Hello,

I own a flatbed scanner Canon CanoScan N1220U. The device name is
plustek:libusb:002:002. I find some bug in that backend or at least in
that device support.

  * The product name is N1220U instead of CanoScan N1220U
  * The option group buttons has 5 readonly options button of
type SANE_TYPE_OPTION instead of SANE_TYPE_BUTTON
  * the device type is USB flatbed scanner instead of flatbed
scanner.

I do not have such bug with an HP all-in-one printer. So i guess this
are backend bug.

Thanks.
-- 
Verso l'Alto !



[sane-devel] Polling HP Scanjet 7400c buttons?

2006-08-08 Thread Nick Papadonis
Hi Folks,

Is there an API to access button status?  Specifically, Email, Fax,
Copy, OCR buttons?  Additionally, is there an interface to modify the
LCD string?

Thanks,
Nick



[sane-devel] Polling HP Scanjet 7400c buttons?

2006-08-08 Thread m. allan noah
not an 'API' exactly, but more of a 'convention'. there are a couple of 
button daemons floating around (one is in the experimental cvs tree) which 
attempt to read the value of certain named options provided by the 
backend.

so, you would have to make sure your scanner's backend exposes the 
buttons, and then you would have to (likely) make some mods to a buttond 
to do something when a button is pressed.

write to the LCD? can the windows software do that?

allan

On Tue, 8 Aug 2006, Nick Papadonis wrote:

 Hi Folks,

 Is there an API to access button status?  Specifically, Email, Fax,
 Copy, OCR buttons?  Additionally, is there an interface to modify the
 LCD string?

 Thanks,
 Nick




-- 
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


[sane-devel] offer to help testing Canon 8400F

2006-08-08 Thread Wolfgang Sailer
Hi all!

I subscribed to this list on Henning Meier-Geinitz' suggestion. I have a
Canon CanoScan 8400F scanner, which i would like very much to be usable
in a Linux environment (I use SUSE 10.1 64bit).

I am not a programmer. However, I am willing to test stuff that
developers write and could adapt some config-files and report how it
works. I also could run some USB-sniffing on the Windows driver, but
have never done it so far.

So please, anyone working on the genesys backend at the moment, feel
free to contact me to further this project. I believe support of
scanners is one of the last white islands of Linux, and I'd like to do
something b'out it.

Thanks
Wolfgang



[sane-devel] Polling HP Scanjet 7400c buttons?

2006-08-08 Thread Nick Papadonis
On Tue, 8 Aug 2006, Nick Papadonis wrote:
  Is there an API to access button status?  Specifically, Email, Fax,
  Copy, OCR buttons?  Additionally, is there an interface to modify the
  LCD string?
On Tue, 2006-08-08 at 13:55 -0400, m. allan noah wrote:
 not an 'API' exactly, but more of a 'convention'. there are a couple of 
 button daemons floating around (one is in the experimental cvs tree) which 
 attempt to read the value of certain named options provided by the 
 backend.
 

The interface/convention you mention is good, but too high a level.  I
search the the HP backends and didn't see much in regards to button
polling.  I did see mention of polling the front button, but not sure
what it is.

I'm wondering if the buttons can be accessed via the SCL (HP Scanner
Control Language) interface.  Does anyone know?  Specs anyone?


 write to the LCD? can the windows software do that?

Not sure, only Linux here.  I figured it must because all my HP 7400c
ever displays is Initializing or Ready on the LCD.  Even during scans.

Thanks,
Nick