Displaying 9 results from an estimated 9 matches for "hu_flag_ok".
Did you mean:
su_flag_ok
2005 Oct 02
3
more on 2.0.3-pre
...nut-2.1.dev.orig/drivers/apc-hid.c 2005-09-24 00:37:25.000000000 -0400
+++ nut-2.1.dev/drivers/apc-hid.c 2005-10-02 14:38:00.000000000 -0400
@@ -115,11 +115,14 @@
/* Battery page */
{ "battery.charge", 0, 1, "UPS.PowerSummary.RemainingCapacity", NULL, "%.0f", HU_FLAG_OK, NULL },
- { "battery.charge.low", ST_FLAG_STRING, 5, "UPS.PowerSummary.RemainingCapacityLimit", NULL,
- "%.0f", HU_FLAG_OK, NULL }, /* Read only */
+ /* the following is writeable for the Back-UPS ES 650 */
+ { "battery.charge.low", ST_FLAG_RW | ST_FLA...
2006 Nov 11
1
Help with newhidups subdriver for Dynex UPS
...* HID2NUT lookup table */
/* --------------------------------------------------------------- */
static hid_info_t dynex_hid2nut[] = {
{ "unmapped.ups.powersummary.iproduct", 0, 0, "UPS.PowerSummary.iProduct", NULL, "%.0f", HU_FLAG_OK, NULL },
{ "unmapped.ups.powersummary.iserialnumber", 0, 0, "UPS.PowerSummary.iSerialNumber", NULL, "%.0f", HU_FLAG_OK, NULL },
{ "unmapped.ups.powersummary.idevicechemistry", 0, 0, "UPS.PowerSummary.iDeviceChemistry", NULL, "%.0f", HU...
2005 Oct 02
0
2.0.3-pre
...nut-2.1.dev.orig/drivers/apc-hid.c 2005-09-24 00:37:25.000000000 -0400
+++ nut-2.1.dev/drivers/apc-hid.c 2005-10-01 22:56:37.000000000 -0400
@@ -115,11 +115,14 @@
/* Battery page */
{ "battery.charge", 0, 1, "UPS.PowerSummary.RemainingCapacity", NULL, "%.0f", HU_FLAG_OK, NULL },
- { "battery.charge.low", ST_FLAG_STRING, 5, "UPS.PowerSummary.RemainingCapacityLimit", NULL,
- "%.0f", HU_FLAG_OK, NULL }, /* Read only */
+ /* the following is writeable for the Back-UPS ES 650 */
+ { "battery.charge.low", ST_FLAG_RW | ST_FLA...
2006 Dec 30
3
Newpoint 200897 UPS
...----------- */
/* HID2NUT lookup table */
/* --------------------------------------------------------------- */
static hid_info_t powercom_hid2nut[] = {
{ "ups.serial", 0, 0, "PowercomUPS.PowercomSerialNumber", NULL, "%s", HU_FLAG_OK, stringid_conversion },
{ "ups.mfr", 0, 0, "PowercomUPS.PowercomManufacturerName", NULL, "%s", HU_FLAG_OK, stringid_conversion },
{ "UPS.DesignCapacity", 0, 0, "PowercomUPS.PowercomDesignCapacity", NULL, "%.0f", HU_FLAG_OK, NULL },
{...
2007 Aug 11
1
apc-hid.c: watts_to_av_conversion
...voltage and -current.
Could it be that for this particular UPS this works out to be correct by
coincidence? Now that we have "ups.realpower.nominal", I think we should
change line 215
{ "ups.power.nominal", 0, 0, "UPS.Output.ConfigActivePower", NULL, "%s",
HU_FLAG_OK, watts_to_av_conversion }, /* CyberPower */
to
{ "ups.realpower.nominal", 0, 0, "UPS.Output.ConfigActivePower", NULL,
"%.0f", HU_FLAG_OK, NULL }, /* CyberPower */
Chances are, it also supports
{ "ups.power.nominal", 0, 0, "UPS.Output.ConfigApparent...
2005 Aug 04
1
a patch for apc-hid.h
...standing
of UPS HID than I would address this task.
Thank you, AG
---------------- patch for apc-hid.h ---------------------------------------
@@ -54,8 +54,8 @@
/* Battery page */
{ "battery.charge", 0, 1, "UPS.PowerSummary.RemainingCapacity", NULL, "%.0f", HU_FLAG_OK, NULL },
- { "battery.charge.low", ST_FLAG_STRING, 5, "UPS.PowerSummary.RemainingCapacityLimit", NULL,
- "%.0f", HU_FLAG_OK, NULL }, /* Read only */
+ { "battery.charge.low", ST_FLAG_RW | ST_FLAG_STRING, 5, "UPS.PowerSummary.RemainingCapacityLimit&q...
2005 Aug 02
0
newhidups for APC Back-UPS ES 650
...-----------------------------------------------
diff -u nut-2.0.2.orig/drivers/apc-hid.h nut-2.0.2/drivers/apc-hid.h
--- nut-2.0.2.orig/drivers/apc-hid.h 2005-06-22 03:39:36.000000000 -0400
+++ nut-2.0.2/drivers/apc-hid.h 2005-07-25 16:40:46.000000000 -0400
@@ -87,6 +87,11 @@
"%.0f", HU_FLAG_OK, &replacebatt_info[0] },
{ "ups.status", 0, 1, "UPS.PowerSummary.PresentStatus.ShutdownImminent", NULL,
"%.0f", HU_FLAG_OK, &shutdownimm_info[0] },
+ /* The following two are returned with long notification from Back-UPS ES 650 */
+ { "ups.status...
2007 Dec 05
2
Crash when I start driver
It's been a while since I tried to use NUT, so I thought I would give it
another try. Big trouble.
The UPS is a Tripp-Lite AVR 550U. It has only a USB connector.
The computer is running Red Hat Enterprise Linux 4.
I just installed NUT version 2.2.0. I'm going through the steps in
the INSTALL document.
# cat ups.conf
[igor]
driver = usbhid-ups
port = auto
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...(original)
> +++ trunk/drivers/usbhid-ups.h Thu Aug 23 19:43:41 2007
> @@ -151,6 +151,7 @@
> #define HU_WALKMODE_INIT 1
> #define HU_WALKMODE_QUICK_UPDATE 2
> #define HU_WALKMODE_FULL_UPDATE 3
> +#define HU_WALKMODE_RESET 4
>
> /* TODO: rework flags */
> #define HU_FLAG_OK 1 /* show element to upsd. */
>
> _______________________________________________
> nut-commits mailing list
> nut-commits at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-commits
>