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

Ricardo Bugalho ricardo at lip.pt
Tue Mar 18 16:58:15 UTC 2008


Hello, 
the usbhid driver can distinguish different devices by their serial
number.

Just look for "iSerial" in lsusb -v and add an matching "serial" in
ups.conf.

Best regards, 
	Ricardo


On Tue, 2008-03-18 at 17:47 +0100, davor emard wrote:
> HI
> 
> 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
> /dev/usbhid*
> 
> 
> 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
> >
> 
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser




More information about the Nut-upsuser mailing list