sane-project-website/old-archive/2001-01/0061.html

120 wiersze
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: General USB questions and comments</TITLE>
<META NAME="Author" CONTENT="Oliver Neukum (Oliver.Neukum@lrz.uni-muenchen.de)">
<META NAME="Subject" CONTENT="Re: General USB questions and comments">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: General USB questions and comments</H1>
<!-- received="Sat Jan 6 08:18:42 2001" -->
<!-- isoreceived="20010106161842" -->
<!-- sent="Sat, 6 Jan 2001 17:27:34 +0100" -->
<!-- isosent="20010106162734" -->
<!-- name="Oliver Neukum" -->
<!-- email="Oliver.Neukum@lrz.uni-muenchen.de" -->
<!-- subject="Re: General USB questions and comments" -->
<!-- id="01010617403100.02022@ghanima" -->
<!-- inreplyto="20010106165404.A719@vortex.swb.de" -->
<STRONG>From:</STRONG> Oliver Neukum (<A HREF="mailto:Oliver.Neukum@lrz.uni-muenchen.de?Subject=Re:%20General%20USB%20questions%20and%20comments&In-Reply-To=&lt;01010617403100.02022@ghanima&gt;"><EM>Oliver.Neukum@lrz.uni-muenchen.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sat Jan 06 2001 - 08:27:34 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0062.html">Hugo.van.der.Kooij@caiw.nl: "Re: RPM packaging in progress"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0060.html">Eugene Kanter: "Re: RPM packaging in progress"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0058.html">Henning Meier-Geinitz: "General USB questions and comments"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">Henning Meier-Geinitz: "Re: General USB questions and comments"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">Henning Meier-Geinitz: "Re: General USB questions and comments"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#61">[ date ]</A>
<A HREF="index.html#61">[ thread ]</A>
<A HREF="subject.html#61">[ subject ]</A>
<A HREF="author.html#61">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt; Some questions (mostly based on Linux and the USB driver &quot;scanner&quot;):
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; * Is there any way to get the vendor and device ids for a given device
</EM><BR>
<EM>&gt; file name? One problem for SANE-USB backends is that they can't easily
</EM><BR>
<P>No that I know of. Could you live with an IOCTL for that ?
<BR>
I wouldn't be hard to add to the kernel.
<BR>
<P><EM>&gt; * What's the meaning of the other files under /proc/bus/usb/? I'm
</EM><BR>
<EM>&gt; talking of e.g. 001/001.
</EM><BR>
<P>These are the USB equivalent of sg devices. You are supposed to use
<BR>
them with the aid of libusb.
<BR>
<P><EM>&gt; * For find-scanner the idea was to scan /proc/bus/usb/devices. Look for
</EM><BR>
<EM>&gt; new devices (starting with &quot;T:&quot; lines) and save all devices
</EM><BR>
<EM>&gt; containing an &quot;I: ... Driver=usbscanner&quot; line. Get vendor and
</EM><BR>
<EM>&gt; product ids from the &quot;P:&quot; line. Question: How to get the device file
</EM><BR>
<EM>&gt; from this information? Can I just assume that the first usbscanner entry
</EM><BR>
<P>You can't. Device numbers depend on the order plugging in and out.
<BR>
<P><EM>&gt; in this list is /dev/usbscanner0? Can the number of one device
</EM><BR>
<EM>&gt; change if another one is conncted?
</EM><BR>
<P>You cannot assume that the first device is usbscanner0. While a device is
<BR>
plugged in, it's device node doesn't change. Note: You can't tell easily
<BR>
whether it was replugged.
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HTH
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Oliver Neukum
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20General%20USB%20questions%20and%20comments&In-Reply-To=&lt;01010617403100.02022@ghanima&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0062.html">Hugo.van.der.Kooij@caiw.nl: "Re: RPM packaging in progress"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0060.html">Eugene Kanter: "Re: RPM packaging in progress"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0058.html">Henning Meier-Geinitz: "General USB questions and comments"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">Henning Meier-Geinitz: "Re: General USB questions and comments"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">Henning Meier-Geinitz: "Re: General USB questions and comments"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#61">[ date ]</A>
<A HREF="index.html#61">[ thread ]</A>
<A HREF="subject.html#61">[ subject ]</A>
<A HREF="author.html#61">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sat Jan 06 2001 - 08:19:14 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>