Skip to content

Revise QX vendor:voltronic:* buzzword setting; also these modes are not alarm material#3024

Merged
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:issue-2494
Jul 29, 2025
Merged

Revise QX vendor:voltronic:* buzzword setting; also these modes are not alarm material#3024
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:issue-2494

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Closes: #2494

Also fixes what I now think was a wrong solution made in #2850 (shipped in NUT v2.8.3 release), with buzzmode_set() used in method that reports device capabilities - not its current status.

@spacelama: One point I am not sure about is that the mapping to call voltronic_mode() seems to fire for both "ups.alarm" and "ups.status" setting (so probably handling same device response to (QMOD query twice in a row), and the method seems to switch (item->value[0]) so if I read that correctly - it would be reacting to only one of the possible states in that string, whichever state's character comes first? Maybe it should loop over all chars?.. I've added some debug logging (to be seen at verbosity 4 or above) to help check what string it receives. Hopefully the buffer is NUL-terminated - but the logging should truncate it then; let me know if there are problems with it (if truncation is reported, or if any segfault etc. happens due to logging).

Related to that point, again if my reading is correct, any UPS handled by this protocol code would only show some one token in ups.status and/or some one ups.alarm at any given time? e.g. it would never show something like "OL CAL" even if it is both calibrating and fed by wall power in fact (and QMOD response might even report both of that)?

Finally, IF the QMOD response only somehow reports a change since last query (not likely, but...) or if we do only see some (semi)random one of the device states, the reports about being in ECO/Converter modes may be very much fleeting - blink and they are gone. How did it behave with the originally reported alarm in #2494 - did it persist, or did it pop up once when the UPS switched to ECO mode?

Also currently there is no handling (was no alarm) for Advanced ECO mode. I do not know if it is reported via some special character in QMOD or elsewhere, or is same as ECO as far as reporting goes (per man page, in practice they are quite different - with PFC/inverter kept running or off, while the load is fed via bypass).

Generally, if possible, can you please double-check these suspicions in practice, so I know if they are founded or if I misread the code? :)

… buzzword setting; these modes are not alarm material [networkupstools#2494]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ng [networkupstools#2494]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…s to be complete sentences [networkupstools#2494]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov added this to the 2.8.4 milestone Jul 18, 2025
@jimklimov jimklimov added need testing Code looks reasonable, but the feature would better be tested against hardware or OSes Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others Voltronic Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) ECO/ESS/HE/ABM modes Non-trivial power supply management modes (ECO, ESS, HE, ABM etc.) impacts-release-2.8.3 Issues reported against NUT release 2.8.3 (maybe vanilla or with minor packaging tweaks) labels Jul 18, 2025
@jimklimov jimklimov merged commit b58662f into networkupstools:master Jul 29, 2025
28 of 30 checks passed
@jimklimov jimklimov deleted the issue-2494 branch July 29, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECO/ESS/HE/ABM modes Non-trivial power supply management modes (ECO, ESS, HE, ABM etc.) impacts-release-2.8.3 Issues reported against NUT release 2.8.3 (maybe vanilla or with minor packaging tweaks) Incorrect or missing readings On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.) need testing Code looks reasonable, but the feature would better be tested against hardware or OSes Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others Voltronic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suppress alarm = "UPS is in ECO Mode."

1 participant