search for: dstate_setaux

Displaying 12 results from an estimated 12 matches for "dstate_setaux".

2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...x(2, "Auto delay off: %d\n", auto_dly_off); snprintf(outlet_name, sizeof(outlet_name)-1, "outlet.%d.delay.shutdown", num); dstate_setinfo(outlet_name, "%d", auto_dly_off); - dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); - dstate_setaux(outlet_name, 5); + dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); + dstate_setaux(outlet_name, 5); auto_dly_on = get_word(answer+iIndex); iIndex += 2; upsdebugx(2, "Auto delay on: %d\n", auto_dly_on); snprintf(outlet_name,...
2006 May 26
1
SVN Newhidups driver
Hi, I recently installed a new cyberpower 1200AVR ups using the newhidups driver I built from the subversion source. I am recieving the following error on start up dstate_setflags: base variable (ups.beeper.status) does not exist dstate_setaux: base variable (ups.beeper.status) does not exist Any ideas? Thanks,
2007 Aug 02
1
usbhid-ups.h: hid_info_t structure
...It appears to me that the only use of this element is now to indicate the length of the string: > float info_len; /* if ST_FLAG_STRING: length of the string */ The above is clear, if the element is flagged as a string, the size of this string is put in this variable, so that we can use this in dstate_setaux(). But strangely enough, we use a 'float' here and not an 'int'. Why? Do we expect *very* long strings? > /* if HU_TYPE_CMD: command value ; multiplier otherwise */ This comment puzzles me. It looks to me that this deals with the dfl element (and this is just misplaced), sinc...
2009 Aug 14
2
Bestfortress driver, network serial patch for nut-2.0
...1 B1200 p6=2 B2400 P6=3 B4800 p6=4 B9600 maybe cycle through speeds to autodetect? echo off e0 echo on e1 */ dstate_setinfo("input.transfer.low", "%s", ""); dstate_setflags("input.transfer.low", ST_FLAG_STRING | ST_FLAG_RW); dstate_setaux("input.transfer.low", 3); dstate_setinfo("input.transfer.high", "%s", ""); dstate_setflags("input.transfer.high", ST_FLAG_STRING | ST_FLAG_RW); dstate_setaux("input.transfer.high", 3); dstate_setinfo("battery.runtime.low",...
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:
2006 Nov 26
1
Patch for optiups to support Zinto D from ONLINE USV-Systeme AG
...uot;, 2); + dstate_setinfo("outlet.0.switchable", "%d", 0); + dstate_setinfo("outlet.1.switchable", "%d", 1); + dstate_setinfo("outlet.1.switch", "%d", 1); + dstate_setflags("outlet.1.switch", ST_FLAG_RW | ST_FLAG_STRING); + dstate_setaux("outlet.1.switch", 1); + upsh.setvar = setvar; + } } void upsdrv_updateinfo(void) { int r = optiquery( "AG" ); + + /* Online-UPS send only "2" when off, without "\r\n" */ + if ( r < 1 && testvar(OPTI_ZINTO) ) + { + ser_send( upsfd, "...
2023 Jul 05
1
failed after upgrade - upscode2: Missing UPCL after UPCL
...00' 2.958427 [D3] upscrecv: Timeout 4.960535 [D3] upscrecv: Timeout 4.960566 [D2] Got value: 4.960580 Bad response to UPCD 0000: 4.960596 dstate_setflags: base variable (ups.delay.reboot) does not exist 4.960609 dstate_setaux: base variable (ups.delay.reboot) does not exist From cutecom - UPCD 0000 returns ACCD 060 > > On Wed, Jul 5, 2023, 06:23 Karl Schmidt <karl at lrak.net <mailto:karl at lrak.net>> wrote: > > On 7/4/23 10:01PM, Jim Klimov wrote: > > Normally yes - ena...
2023 Jul 05
1
failed after upgrade - upscode2: Missing UPCL after UPCL
Ah, I thought you missed in my earlier reply the part about a bug with debug printouts in 2.8.0 (fixed on master since), did not comment on that when you replied with quoting... So, for now options are to bump debugging to 3+ or to build your own in one of many ways possible :\ On Wed, Jul 5, 2023, 06:23 Karl Schmidt <karl at lrak.net> wrote: > On 7/4/23 10:01PM, Jim Klimov wrote: >
2006 Aug 02
1
nut-usb fink version
...trol > > Report : (8 bytes) =3D> 00 00 9C F3 00 03 10 D2 > > hu_find_infoval: searching for value =3D 0 > > > > hu_find_infoval: no matching INFO_* value for this HID value (0) > > > > dstate_setflags: base variable (ups.beeper.status) does not exist > > dstate_setaux: base variable (ups.beeper.status) does not exist > > entering string_to_path() > > Looking up UPS > > Looking up ManufacturerDate > > Report : (8 bytes) =3D> 00 00 9C F3 00 03 10 D2 > > hu_find_infoval: searching for value =3D 0 > > > > hu_find_infoval:...
2011 Feb 07
4
[PATCH/RFC v2 0/3] Updates to ACP smart driver
This is 2nd version of the earlier patch featuring a few new features and fixes to the apcsmart driver, following the remarks in: http://www.mail-archive.com/nut-upsdev at lists.alioth.debian.org/msg02294.html Major changes from v1: - handle battery.charge and battery.runtime checks at main.c level - handle "immutable but writable" conflict gracefully at driver level -
2005 Dec 19
0
new(er) SEC driver.
...SEC_FLAG_STRING|SEC_FLAG_NUMBER)) f |= ST_FLAG_STRING; if (sec_varlist[v].flags & SEC_FLAG_NUMBER) dstate_setinfo(sec_varlist[v].infotag, "0"); else dstate_setinfo(sec_varlist[v].infotag, "(nil)"); dstate_setflags(sec_varlist[v].infotag, f); dstate_setaux(sec_varlist[v].infotag, sec_varlist[v].size); /* find entries in enumdata for current variable */ if (sec_varlist[v].flags & SEC_FLAG_ENUM) { e = 0; while ((sec_enumdata[e].type != SEC_UNUSED) && (sec_enumdata[e].type != v)) e++; if (sec_enumdata[e].ty...
2011 Mar 05
19
[RFC apcsmart V3 00/18] apcsmart driver updates
Sorry for a bit longer delay than I anticipated, I was stuffed with the work. This is the next iteration of the patch adding some functionality to apcsmart driver, and relying on 'ignorelb' recently added. Follow up from previous thread: http://www.mail-archive.com/nut-upsdev at lists.alioth.debian.org/msg02331.html Main differences is that V3 is split into many small patches, so the