<br><br><div><span class="gmail_quote">2005/9/17, Charles Lepple <<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>>:</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 <<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca</a>> wrote:<br>> Arnaud wrote:<br>> > I've not had time to dig this yet (some Debian and MGE things to deal with),
<br>> > but there would be some points missing:<br>> > - Index. This is a param to differentiate 2 devices with exactly the same<br>> > info (ie same VID/ PID, no serial, ...). Then you could say "the 2nd device
<br>> > with VID xxxx and PID yyyy"<br>><br>> I don't think this will work. There is no fixed meaning to "2nd<br>> device". 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;">> > - an interesting notion that was introduced by Dave Brownell (linux USB
<br>> > hacker) is the "physical path" (stable ids, which don't change unless usb<br>> > topology morphs). For more info, search for HIDIOCGPHYS in hidups.<br>> > I find this interesting, but I'm not sure it has been ported...
<br>><br>> As per Charles' post, this is probably not possible with the current<br>> backend. The best I could probably do is offer a "bus" option. As far<br>> as I can tell (in Linux), while device numbers are assigned randomly,
<br>> busses are physical, e.g. 001, 002, etc correspond to particular fixed<br>> physical USB ports on my computer. (However, I don't know how "fixed"<br>> they really are - perhaps this depends on the order in which they are
<br>> discovered during booting?) So if someone really owns several<br>> indistinguishable UPS devices, they might be able to plug them into<br>> 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>