Displaying 12 results from an estimated 12 matches for "upsh".
Did you mean:
push
2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...STRING);
- dstate_setaux(outlet_name, 5);
+ dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING);
+ dstate_setaux(outlet_name, 5);
}
return num_outlet;
@@ -1267,7 +1267,7 @@ void upsdrv_initinfo(void)
dstate_addcmd("test.battery.start");
upsh.instcmd = instcmd;
- upsh.setvar = setvar;
+ upsh.setvar = setvar;
return;
}
@@ -1871,6 +1871,6 @@ static const char *nut_find_infoval(info_lkp_t
*xcp2info, const double value)
}
}
- upsdebugx(3, "hu_find_infoval: no matching INFO_* value for this
XCP value...
2005 Oct 23
0
FC4 + nut => shutdown sequence conundrum
...call to shutdown the UPS happens a
few lines later, on line 568. The interesting lines are:
if (chdir(dflt_statepath()))
fatal("Can't chdir to %s", dflt_statepath());
setup_signals();
/* clear out callback handler data */
memset(&upsh, '\0', sizeof(upsh));
upsdrv_initups();
/* now see if things are very wrong out there */
if (broken_driver) {
printf("Fatal error: broken driver. It probably needs to
be con\verted.\n");
printf("Search for 'broken_...
2006 Nov 26
1
Patch for optiups to support Zinto D from ONLINE USV-Systeme AG
...d.off");
dstate_addcmd("load.on");
- dstate_addcmd("shutdown.stop");
+ if( !testvar(OPTI_ZINTO) )
+ dstate_addcmd("shutdown.stop");
dstate_addcmd("shutdown.return");
dstate_addcmd("shutdown.stayoff");
upsh.instcmd = instcmd;
+
+ if ( testvar(OPTI_ZINTO) )
+ {
+ dstate_setinfo("outlet.0.desc", "%s", "Main Outlet 1+2");
+ dstate_setinfo("outlet.1.desc", "%s", "Switchable Outlet 3+4");
+ dstate_setinfo("outlet.0.id", "%d"...
2013 Jul 03
1
bcmxcp: Patch for using command map if present to control commands added by dstate_addcmd
...d_list_len);
+ /* Add default commands if we were not able to query UPS for support */
+ if(got_cmd_list == FALSE) {
+ dstate_addcmd("shutdown.return");
+ dstate_addcmd("shutdown.stayoff");
+ dstate_addcmd("test.battery.start");
+ }
upsh.instcmd = instcmd;
upsh.setvar = setvar;
diff --git a/drivers/bcmxcp.h b/drivers/bcmxcp.h
index 803f7e6..b741494 100644
--- a/drivers/bcmxcp.h
+++ b/drivers/bcmxcp.h
@@ -32,9 +32,9 @@
#define PW_COMMAND_LIST_REQ (unsigned char)0x40 /* Available
commands. length 1 */
#define PW_OUT_MON...
2009 Aug 14
2
Bestfortress driver, network serial patch for nut-2.0
...;, ST_FLAG_STRING | ST_FLAG_RW);
dstate_setaux("input.transfer.high", 3);
dstate_setinfo("battery.runtime.low", "%s", "");
dstate_setflags("battery.runtime.low", ST_FLAG_STRING | ST_FLAG_RW);
dstate_setaux("battery.runtime.low", 3);
upsh.instcmd = instcmd;
upsh.setvar = upsdrv_setvar;
dstate_addcmd("shutdown.return");
dstate_addcmd("load.off");
}
/* convert hex digit to int */
static inline int fromhex (char c)
{
return (c >= '0' && c <= '9') ? c - '0'
: (c >= ...
2013 Jul 03
1
bcmxcp: Patch for adding ups.load and battery.voltage.low
On Jul 2, 2013, at 5:16 PM, Kjell Claesson wrote:
>> I hope other people can also test this.
>>
>> Regards
>> Alf Hogemark
>
> Due to some crashes on the disks and lack of time I don't have the git on the
> pc now. But maybe some other can commit this.
I'd like to ask people to specifically try the bcmxcp branch on GitHub - it includes some changes
2018 Mar 15
1
R: Nut-upsdev Digest, Vol 152, Issue 5
Hi all,
we should have been found the problem.
Attach the patch inclusive of this problem and the previous (Riello IDG400 wrong values & not powering off).
Best regards,
-----Messaggio originale-----
Da: Nut-upsdev [mailto:nut-upsdev-bounces+e.parisi=riello-ups.com at lists.alioth.debian.org] Per conto di nut-upsdev-request at lists.alioth.debian.org
Inviato: mercoled? 7 marzo 2018 13:03
A:
2008 Aug 19
3
hald-addon-usbhid-ups
...r read from the device.
Also, when I make a change on the hal side to such a variable (using
/usr/bin/hal-set-property) the change happens on the hal side (as
seen with hal-device-manager), but the change seems to be never
propagated to the device. Here I presume the absence of any calls
to "upsh.setvar()" in main-hal.c or dstate-hal.c means that things
are just not done yet.
Any suggestions would be appreciated. Thanks, AG
--
----------------------------------------------------------------------
Alfred Ganz alfred-ganz:at:agci.com
AG Consulting, Inc. (203) 624-9667...
2005 Dec 19
0
new(er) SEC driver.
...t"); /* TST1 */
/* dstate_addcmd("test.battery.start.deep"); */ /* TST2 */
dstate_addcmd("test.battery.stop"); /* TST-1 */
}
if (sec_support(SEC_AUDIBLE_ALARM)) {
dstate_addcmd("beeper.on");
dstate_addcmd("beeper.off");
}
upsh.instcmd = sec_instcmd;
upsh.setvar = sec_setvar;
}
/*
* upsdrv_updateinfo()
*
* For a SEC protocol UPS, we only need to query those variables that are
* supported.
*/
void
upsdrv_updateinfo(void)
{
char buf[128],*r,*n;
int ret, q, f;
upsdebugx(SEC_LOG_INFO, "--------...
2008 Dec 24
1
Driver removal notification: al175
Hi Kirill,
just to notify you that your al175 driver is being removed from the
NUT tree, as of 2.4.0-pre1.
if you wish to see it entering the tree again, please contact the
Development mailing list to talk about it.
Merry Christmas and happy New Year.
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader -
2006 May 12
1
Fwd: RE New xanto driver for NUT
Dear Andreas,
some googling revealed, you created a driver for the xanto series of
online-usv.de. In what state it is currently?
I've to manage a S2000 and would like to use nut for it, is it usable by
now? Do you need another tester?
TIA,
Pete
2006 Dec 05
3
megatec over USB - new driver patch
...EN, ENDCHAR, IGNCHARS, READ_TIMEOUT, 0);
+ comm->send("Q1%c", ENDCHAR);
+ ret = comm->recv(buffer, RECV_BUFFER_LEN, ENDCHAR, IGNCHARS);
if (ret < Q1_CMD_REPLY_LEN) {
upsdebugx(1, "UPS doesn't return any information about its status.");
@@ -468,7 +462,7 @@
upsh.setvar = setvar;
/* clean up a possible shutdown in progress */
- ser_send_pace(upsfd, SEND_PACE, "C%c", ENDCHAR);
+ comm->send("C%c", ENDCHAR);
upsdebugx(1, "Done setting up the UPS.");
}
@@ -561,16 +555,16 @@
{
upslogx(LOG_INFO, "Shutting down UPS...