networkupstools/nut — pull request #121 by zeezooz (2014-04-17 21:09:22+00:00)
Title: Add support for 0d9f:0001 (USB HID, Powercom)

Tested with BNT-1000AР (old model). Confirmed values: battery.charge, input.frequency (0 on battery, 50 on AC), input.voltage, output.voltage, ups.load and likely output.frequency (always 50); statuses: online, cal (ups test), dischrg, trim.

Key changes:
* Read exactly 8 bytes on interrupt.
* Get values of input objects. Getting both will be better since there are some feature objects during init.
* Avoid comm_driver->get_report since it often returns corrupt data (0 values).