[Nut-upsuser] Eaton Powerware 5110 UPS - progress of sorts
Kjell Claesson
kjell.claesson at telia.com
Thu May 11 04:30:14 UTC 2006
Hi John.
Yes this is a small glitch in the code.
The iproduct an imanufacturer code i different on all
powerware usb ups. So you have to remove this test.
Open the file 'nut_usb.c' in the drivers directory.
Go down to around line 63 it looks like this.
-------------------------------------------------
{
/* XXX Check for POWERWARE 3105 or 3110 ... other models??? */
if (dev->descriptor.bDeviceClass == USB_CLASS_PER_INTERFACE &&
(dev->descriptor.idVendor == 0x0592 ||
dev->descriptor.idVendor == 0x06da) &&
dev->descriptor.idProduct == 0x0002 &&
dev->descriptor.iManufacturer == 1 &&
dev->descriptor.iProduct == 2)
return usb_open(dev);
}
----------------------------------------------------
Remove the iManufacturer and iProduct line so it looks
like this.
---------------------------------------------------
{
/* XXX Check for POWERWARE 3105 or 3110 ... other models??? */
if (dev->descriptor.bDeviceClass == USB_CLASS_PER_INTERFACE &&
(dev->descriptor.idVendor == 0x0592 ||
dev->descriptor.idVendor == 0x06da) &&
dev->descriptor.idProduct == 0x0002)
return usb_open(dev);
}
---------------------------------------------------
Now rebuild the driver and it should find the ups.
Regards
Kjell
tor 2006-05-11 klockan 15:13 +1200 skrev John:
> Hi,
>
> I've made progress of sorts. I was getting so many conflicts over gcc
> and g++, I decided to go for a clean install.
>
> I have compiled the driver without a hitch and connected the machine via
> USB and it has registered although it also adds that "USB Device 2 is
> not claimed by any active driver".
>
> I then run the following and get an error message:
>
> --------------------------
> root at igor:/usr/local/ups/bin# ./bcmxcp_usb -DD -a pw5110 -u root
> Network UPS Tools - BCMXCP UPS driver 0.10 (2.0.3)
>
> debug level is '2'
> Can't reset POWERWARE USB endpoint
> Unable to find POWERWARE UPS device on USB bus
>
> Things to try:
>
> - Connect UPS device to USB bus
>
> - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
> See upsdrvctl(8) and ups.conf(5).
>
> Fatal error: unusable configuration
> ----------------------------------
> Thanks very much for all the help so far, I hope someone can help me out
> with this.
>
> Kind regards,
>
> John
>
> _______________________________________________
> 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