<br><br><div><span class="gmail_quote">2005/9/17, Charles Lepple &lt;<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/16/05, Peter Selinger &lt;<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca</a>&gt; wrote:<br>&gt; Arnaud wrote:<br>&gt; &gt; I've not had time to dig this yet (some Debian and MGE things to deal with),
<br>&gt; &gt; but there would be some points missing:<br>&gt; &gt; - Index. This is a param to differentiate 2 devices with exactly the same<br>&gt; &gt; info (ie same VID/ PID, no serial, ...). Then you could say &quot;the 2nd device
<br>&gt; &gt; with VID xxxx and PID yyyy&quot;<br>&gt;<br>&gt; I don't think this will work. There is no fixed meaning to &quot;2nd<br>&gt; device&quot;. The devices could be enumerated by libusb in any order.</blockquote>
<div><br>
this is simply a dumb method to tell the 2nd device found by newhidups,
whatever the enum order is, that complies to the given params (or
simply the 2nd UPS found is none params).<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; &gt; - an interesting notion that was introduced by Dave Brownell (linux USB
<br>&gt; &gt; hacker) is the &quot;physical path&quot; (stable ids, which don't change unless usb<br>&gt; &gt; topology morphs). For more info, search for HIDIOCGPHYS in hidups.<br>&gt; &gt; I find this interesting, but I'm not sure it has been ported...
<br>&gt;<br>&gt; As per Charles' post, this is probably not possible with the current<br>&gt; backend. The best I could probably do is offer a &quot;bus&quot; option. As far<br>&gt; as I can tell (in Linux), while device numbers are assigned randomly,
<br>&gt; busses are physical, e.g. 001, 002, etc correspond to particular fixed<br>&gt; physical USB ports on my computer. (However, I don't know how &quot;fixed&quot;<br>&gt; they really are - perhaps this depends on the order in which they are
<br>&gt; discovered during booting?) So if someone really owns several<br>&gt; indistinguishable UPS devices, they might be able to plug them into<br>&gt; different physical ports and use the bus number to match the devices.
<br><br>If the user has hubs with serial numbers, and the virtual root hubs<br>(the host controllers) have serial numbers (in Linux, this includes<br>the PCI ID), then there is a chance of a portable solution here.<br><br>
On the other hand, my (totally unsolicited) recommendation for anyone<br>with a need for several UPSes on the same machine is that they spend a<br>couple extra dollars and get ones that report their serial number.</blockquote>
<div><br>
this was simply an old sitting idea that we should keep in mind, and
maybe lobby with libusb and kernels guys (*bsd, ...). In the long run,
that would be a nice approach, but I agree that we can't rely on it
while it's not supported everywhere or at least in libusb... <br>
<br>
End note: I'll be a bit busy this week with some Debian and MGE stuffs.<br>
so my answers might lag a bit...<br>
<br>
Arnaud<br>
</div></div>