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

138 wiersze
5.3 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="Henning Meier-Geinitz (hmg-ml@gmx.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="Sun Jan 7 03:16:10 2001" -->
<!-- isoreceived="20010107111610" -->
<!-- sent="Sun, 7 Jan 2001 12:36:56 +0100" -->
<!-- isosent="20010107113656" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Re: General USB questions and comments" -->
<!-- id="20010107123656.E14645@vortex.swb.de" -->
<!-- inreplyto="01010617403100.02022@ghanima" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20General%20USB%20questions%20and%20comments&In-Reply-To=&lt;20010107123656.E14645@vortex.swb.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Jan 07 2001 - 03:36:56 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0078.html">Oliver Rauch: "Re: sane,saned und XSane/Windows"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0076.html">Henning Meier-Geinitz: "Re: need info and/or driver for symbios sym53c400A scsi adaptor"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0061.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0099.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0099.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#77">[ date ]</A>
<A HREF="index.html#77">[ thread ]</A>
<A HREF="subject.html#77">[ subject ]</A>
<A HREF="author.html#77">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Sat, Jan 06, 2001 at 05:27:34PM +0100, Oliver Neukum wrote:
<BR>
<EM>&gt; &gt; Some questions (mostly based on Linux and the USB driver &quot;scanner&quot;):
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; * Is there any way to get the vendor and device ids for a given device
</EM><BR>
<EM>&gt; &gt; file name? One problem for SANE-USB backends is that they can't easily
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; No that I know of. Could you live with an IOCTL for that ?
</EM><BR>
<EM>&gt; I wouldn't be hard to add to the kernel.
</EM><BR>
<P>I think this would be fine. With this addition we could implement
<BR>
something like
<BR>
usb 1000 0001
<BR>
for the backend.conf files to check the standard device files for this
<BR>
scanner.
<BR>
<P><EM>&gt; &gt; * For find-scanner the idea was to scan /proc/bus/usb/devices. Look for
</EM><BR>
<EM>&gt; &gt; new devices (starting with &quot;T:&quot; lines) and save all devices
</EM><BR>
<EM>&gt; &gt; containing an &quot;I: ... Driver=usbscanner&quot; line. Get vendor and
</EM><BR>
<EM>&gt; &gt; product ids from the &quot;P:&quot; line. Question: How to get the device file
</EM><BR>
<EM>&gt; &gt; from this information? Can I just assume that the first usbscanner entry
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; You can't. Device numbers depend on the order plugging in and out.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; in this list is /dev/usbscanner0? Can the number of one device
</EM><BR>
<EM>&gt; &gt; change if another one is conncted?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; You cannot assume that the first device is usbscanner0. While a device is
</EM><BR>
<EM>&gt; plugged in, it's device node doesn't change. Note: You can't tell easily
</EM><BR>
<EM>&gt; whether it was replugged.
</EM><BR>
<P>I may be wrong but all this doesn't look like scanner.o had more then
<BR>
one scanner in mind. Looks pretty weird.
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<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;20010107123656.E14645@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0078.html">Oliver Rauch: "Re: sane,saned und XSane/Windows"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0076.html">Henning Meier-Geinitz: "Re: need info and/or driver for symbios sym53c400A scsi adaptor"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0061.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0099.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0099.html">Oliver Neukum: "Re: General USB questions and comments"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#77">[ date ]</A>
<A HREF="index.html#77">[ thread ]</A>
<A HREF="subject.html#77">[ subject ]</A>
<A HREF="author.html#77">[ 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>Sun Jan 07 2001 - 03:16:37 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>