kopia lustrzana https://gitlab.com/sane-project/website
138 wiersze
5.3 KiB
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=<20010107123656.E14645@vortex.swb.de>"><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>> > Some questions (mostly based on Linux and the USB driver "scanner"):
|
||
|
</EM><BR>
|
||
|
<EM>> >
|
||
|
</EM><BR>
|
||
|
<EM>> > * Is there any way to get the vendor and device ids for a given device
|
||
|
</EM><BR>
|
||
|
<EM>> > file name? One problem for SANE-USB backends is that they can't easily
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> No that I know of. Could you live with an IOCTL for that ?
|
||
|
</EM><BR>
|
||
|
<EM>> 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>> > * For find-scanner the idea was to scan /proc/bus/usb/devices. Look for
|
||
|
</EM><BR>
|
||
|
<EM>> > new devices (starting with "T:" lines) and save all devices
|
||
|
</EM><BR>
|
||
|
<EM>> > containing an "I: ... Driver=usbscanner" line. Get vendor and
|
||
|
</EM><BR>
|
||
|
<EM>> > product ids from the "P:" line. Question: How to get the device file
|
||
|
</EM><BR>
|
||
|
<EM>> > from this information? Can I just assume that the first usbscanner entry
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> You can't. Device numbers depend on the order plugging in and out.
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> > in this list is /dev/usbscanner0? Can the number of one device
|
||
|
</EM><BR>
|
||
|
<EM>> > change if another one is conncted?
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> You cannot assume that the first device is usbscanner0. While a device is
|
||
|
</EM><BR>
|
||
|
<EM>> plugged in, it's device node doesn't change. Note: You can't tell easily
|
||
|
</EM><BR>
|
||
|
<EM>> 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>
|
||
|
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=<20010107123656.E14645@vortex.swb.de>">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>
|