[sane-devel] USB probing
Karl Heinz Kremer
khk at khk.net
Mon Jan 14 13:09:05 GMT 2002
You can get the major and minor device numbers from the device file.
The major device number will tell you if it's a SCSI or an USB
device.
Karl Heinz
Major A <andras at users.sourceforge.net> said:
>
>
> Hi,
>
> I need some help from SANE developers:
>
> Given a device file, how can I determine whether that is a generic
> SCSI or a USB scanner device? It seems that when I try to open a USB
> device file as a SCSI device and probe with INQUIRY, a USB timeout
> will occur. I don't think using a generic SCSI device file with some
> random USB scanner protocol is a good idea either.
>
> So, is it possible to decide what interface the file stands for, or do
> I have to judge from the filename (example: "usb:/dev/scanner")?
>
> Thanks,
>
> Andras
>
> ===========================================================================
> Major Andras
> e-mail: andras at users.sourceforge.net
> www: http://andras.webhop.org/
> ===========================================================================
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>
--
More information about the sane-devel
mailing list