[Nut-upsuser] OpenUPS2 support in the HID driver?

Charles Lepple clepple at gmail.com
Mon Sep 8 23:08:50 UTC 2014

On Sep 8, 2014, at 5:46 PM, John Thurston <john.thurston at alaska.gov> wrote:

> I bought a very nice little, self contained, UPS from mini-box:
>  http://www.mini-box.com/OpenUPS2
> thinking it would be handled by NUT.
> I think I misread or misinterpreted the HCL
>  http://www.networkupstools.org/stable-hcl.html

Correct, we only knew about the original openUPS (USB ID 04d8:d004) at the time that was written.

> The OpenUPS UPS is listed as supported under usbhid-ups, and I had assumed that OpenUPS2 would be as well. Bzzzzt. I get a unknown device ID for d005
> Is adding (or hacking) support for this device into the HID driver something simple which can be done without a recompile?

As a first test, start upsd (let us know if you need more details, but this depends on how your OS/distribution packages things up) and then run the usbhid-ups driver manually, as root, with an extra option:

   path/to/usbhid-ups -u root -x productid=d005 -a name-of-ups

If everything is the same under the hood, you can add "productid=d005" to ups.conf. You will also want to copy the line in /etc/udev/52-nut-usbups.rules that looks like this:

ATTR{idVendor}=="04d8", ATTR{idProduct}=="d004", MODE="664", GROUP="nobody"

and change the "d004" to "d005".

If that works, let us know and we will add it to the driver.

Charles Lepple
clepple at gmail

More information about the Nut-upsuser mailing list