search for: hu_flag_stat

Displaying 8 results from an estimated 8 matches for "hu_flag_stat".

Did you mean: hu_flag_static
2018 Feb 04
0
[PATCH 3/3] OpenUPS: fix current calculations
...snprintf(openups_scratch_buf, sizeof(openups_scratch_buf), "%.3f", i_out); return openups_scratch_buf; } @@ -304,7 +342,7 @@ static hid_info_t openups_hid2nut[] = { /* Battery */ {"battery.type", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%s", HU_FLAG_STATIC, stringid_conversion}, {"battery.mfr.date", 0, 0, "UPS.PowerSummary.iOEMInformation", NULL, "%s", HU_FLAG_STATIC, stringid_conversion}, - {"battery.voltage", 0, 0, "UPS.PowerSummary.Voltage", NULL, "%.2f", HU_FLAG_QUICK_POLL, NULL}, +...
2008 Feb 24
2
usbhid-ups using wrong value for battery voltage for Pulsar Evolution 500?
...e MGE subdriver and the debug output: mge-hid.c, line 344: { "battery.voltage", 0, 0, "UPS.PowerSummary.Voltage", NULL, "%.1f", 0, NULL }, { "battery.voltage.nominal", 0, 0, "UPS.BatterySystem.ConfigVoltage", NULL, "%.0f", HU_FLAG_STATIC, NULL }, { "battery.voltage.nominal", 0, 0, "UPS.PowerSummary.ConfigVoltage", NULL, "%s", HU_FLAG_STATIC, mge_battery_voltage_nominal }, Here are some of the UPS.PowerSummary lines from running with "-DD": Path: UPS.PowerSummary.PowerSummaryID, Ty...
2023 Jan 13
1
battery.voltage Powercom Macan MRT-3000
..."%.2f", 0, NULL }, > ?*??? { "battery.voltage", 0, 0, "UPS.Battery.Voltage", NULL, > "%.2f", 0, NULL }, > ?*??? { "battery.voltage.nominal", 0, 0, > "UPS.PowerSummary.ConfigVoltage", NULL, "%.0f", HU_FLAG_STATIC, > NULL }, > ?*??? { "battery.voltage.nominal", 0, 0, > "UPS.Battery.ConfigVoltage", NULL, "%.0f", HU_FLAG_STATIC, NULL }, > from powercom-hid.c, and it is so, it is duplicates for > output.voltage. > > Is there anything I...
2018 Feb 04
5
[PATCH 0/3] OpenUPS updates
Hi, I've been checking out NUT with an OpenUPS board over the last couple of weekends, and have noticed that it doesn't seem to report sensible values. This lead me to investigate usbhid-ups and delve into various issues. As mentioned in a github issue, one of the problems is with the report descriptor - dumping this from the usbhid-ups debug output and picking through it reveals that
2008 Feb 16
0
No subject
....1f", 0, NULL }, { "output.voltage.nominal", ST_FLAG_RW | ST_FLAG_STRING, 5, "UPS.Flow.[4].ConfigVoltage", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL }, + { "output.voltage.nominal", 0, 0, "UPS.PowerSummary.ConfigVoltage", NULL, "%.0f", HU_FLAG_STATIC, NULL }, { "output.current", 0, 0, "UPS.PowerConverter.Output.Current", NULL, "%.2f", 0, NULL }, { "output.powerfactor", 0, 0, "UPS.PowerConverter.Output.PowerFactor", NULL, "%s", 0, mge_powerfactor_conversion }, Best regards, Arjen
2017 Oct 17
0
Junda-tech
...ad to add a custom mapping function for Belkin/Liebert since their boolean True value is often 1e-7 instead of 1. I would recommend checking the values to make sure that they match the labels, but static attributes such as CapacityMode, DesignCapacity, FullChargeCapacity and Rechargeable can get a HU_FLAG_STATIC or HU_FLAG_SEMI_STATIC flag (see drivers/usbhid-ups.h) so that the driver does not waste time polling them. Some values like iManufacturer, iProduct and iSerialNumber are likely duplicates of the values in the USB device descriptor, and do not need to be included. >>> >> Which pa...
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
...------- */ + +static hid_info_t openups_hid2nut[] = { + {"ups.serial", 0, 0, "UPS.PowerSummary.iSerialNumber", NULL, "%s", 0, stringid_conversion}, + + /* Battery */ + {"battery.type", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%s", HU_FLAG_STATIC, stringid_conversion}, + {"battery.mfr.date", 0, 0, "UPS.PowerSummary.iOEMInformation", NULL, "%s", 0, stringid_conversion}, + {"battery.voltage", 0, 0, "UPS.PowerSummary.Voltage", NULL, "%.2f", HU_FLAG_QUICK_POLL, NULL}, + /* { "ba...
2017 Oct 11
4
Junda-tech
Hi, I have an UPS with only the marking D1000 on it and it came with Junda-Tech's UpsMate. Its USB id is 3344:0025, which is apparently a microprocessor. I've could get some of the HID interactions as described on the website, but there are some outstanding. Junda-Tech does not respond to any queries. Does anybody else have the same or a similar UPS with more information? What is the