search for: ups_t

Displaying 3 results from an estimated 3 matches for "ups_t".

Did you mean: ups_
2017 Jul 08
1
Trying to understand sdorder
...t number available. So, for this configuration, the order of shutdowns would be 'misc', 'littleguy', and then 'bigone'. 3. But in upsdrvctl.c I see /* walk UPS table and send command to all UPSes according to sdorder */ static void send_all_drivers(void (*command)(const ups_t *)) { ups_t *ups; int i; ... for (i = 0; i <= maxsdorder; i++) { ups = upstable; while (ups) { if (ups->sdorder == i) command(ups); ups = ups->next; } } } These nested loops will execute in a few milleseconds, effectively shutting down all the UPS units at...
2019 Jul 16
2
Two APC900 UPS on the same usbbus1
.../usb/1.4.0 serial = 3B1520X10340 desc = "APC900-LEFT" [apc901] driver = usbhid-ups port = /dev/usb/1.5.0 serial = 3B1207X25460 desc = "APC900-RIGHT" === The source of drivers/upsdrvctl.c was a little bit enhanced with my patch. The structure 'ups_t' contains now a new field labeled 'serial' and the argument list becomes a new parameter when "serial" is not NULL. That's a quick hack but it work's ;-) Best regards, Markus [Patch/Workaround] root at netstore:~ # diff -u /root/upsdrvctl.c nut-2.7.4/drivers/upsdr...
2007 May 25
0
Patch -- SVN revision in the version string
..."Copyright (C) 2006 Niklas Edmundsson <nikke at acc.umu.se>\n\n"); Index: drivers/upsdrvctl.c =================================================================== --- drivers/upsdrvctl.c (revision 916) +++ drivers/upsdrvctl.c (working copy) @@ -395,7 +395,7 @@ void (*command)(const ups_t *) = NULL; printf("Network UPS Tools - UPS driver controller %s\n", - UPS_VERSION); + upsversion()); prog = argv[0]; while ((i = getopt(argc, argv, "+htu:r:DV")) != -1) { Index: drivers/usbhid-ups.c ===================================================================...