Discussion:
[Nut-upsuser] OpenUPS2 support in the HID driver?
John Thurston
2014-09-08 21:46:36 UTC
Permalink
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

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?
--
Do things because you should, not just because you can.

John Thurston 907-465-8591
John.Thurston at alaska.gov
Enterprise Technology Services
Department of Administration
State of Alaska
Charles Lepple
2014-09-08 23:08:50 UTC
Permalink
Post by John Thurston
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.
Post by John Thurston
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
Loading...