[Nut-upsuser] distinguishing identical multiple usbhid-ups devices

davor emard davoremard at gmail.com
Tue Mar 18 16:47:25 UTC 2008


I'm planning to have 8 or even more UPS-es
monitored by the same system, Those cyberpower
units are very cost effective. Adding each
hub or other adapter per each usb raises the
overall cost so I would prefer if it could be a software
only solution.

Can we have a libusb proxy that would reliably
distinguish the device by help of kernel, rewrite
their bus number (or serial number whatever is
easier) and present modified tree to the nut?
so nut would connect to the libusb proxy and "see"
different devices?

Can nut drive this cyberpower device from
kernel usbhid* device instead of libusb, so
udev could be used to enumerate
devices in hubbed ports and make constant

On 3/18/08, Charles Lepple <clepple at gmail.com> wrote:
> On Tue, Mar 18, 2008 at 9:39 AM, davor emard <davoremard at gmail.com> wrote:
> >  usbhid-ups is capable to distinguish devices from the Bus
> >  they are connected to, but as all are at the same hub the bus
> >  is the same. I'd like if usbhid-ups could distinguish them from
> >  the hubbed port they are plugged in.
> I forget how the bus numbering goes, but what if you added in another
> hub between certain devices?
> You still are not guaranteed that they will be enumerated in the same
> order every time, but at least the device closest to the motherboard
> stands a chance of being enumerated first.
> --
> - Charles Lepple

More information about the Nut-upsuser mailing list