Skip to content

Small updates to MGE HID (outlets)#3342

Merged
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:mge-hid-outlets
Mar 12, 2026
Merged

Small updates to MGE HID (outlets)#3342
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:mge-hid-outlets

Conversation

@jimklimov
Copy link
Copy Markdown
Member

@jimklimov jimklimov commented Mar 7, 2026

Seems there was a typo in outlet indexing. Just in case, added handlers for another group (if some device would serve it).

@arnaudquette-eaton : can you please revise that the updated comments are not misleading, esp. that "outlet.something" may refer to either "main" outlet on an UPS with many groups, or a sort of summary or "the only" outlet on others. Especially about "summary" - is it true, or is my memory about daisychains misleading me?

Also, on an Ellipse ECO 650, I could not switch outlets on/off (tried making e.g. "UPS.OutletSystem.Outlet.[2].PresentStatus.SwitchOn/Off" writeable, it succeeded as far as the USB report sending went, but no practical effect); similar with beeper - never got activated via command. Is this expected (the device is not THAT manageable) or something wrong on NUT side?

Just in case, added mappings for a third group (...Outlet.[4].*) as a copy-paste of the previous lines; no idea if there are any devices with that many distinct outlets/groups though?

All in all, there are several unhandled values that the device claims to report:

11.906937 [D1] analyze_mapping_usage: 94 items are present in the report descriptor from HID UPS, but 42 of them were completely not used by name via the mapping defined in the selected NUT subdriver
MGE HID 1.58: UPS.Flow.[4].FlowID (Feature), UPS.HistorySystem.Event.[1].Code (Feature), UPS.HistorySystem.Event.[1].EventID (Feature), UPS.HistorySystem.Event.[2].Code (Feature), UPS.HistorySystem.Event.
[2].EventID (Feature), UPS.HistorySystem.Event.[3].Code (Feature), UPS.HistorySystem.Event.[3].EventID (Feature), UPS.HistorySystem.Event.[4].Code (Feature), UPS.HistorySystem.Event.[4].EventID (Feature),
UPS.HistorySystem.Event.[5].Code (Feature), UPS.HistorySystem.Event.[5].EventID (Feature), UPS.OutletSystem.Outlet.[1].FlowID (Feature), UPS.OutletSystem.Outlet.[2].FlowID (Feature), UPS.OutletSystem.Outle
t.[2].PresentStatus.Present (Feature), UPS.OutletSystem.Outlet.[2].PresentStatus.Present (Input), UPS.OutletSystem.Outlet.[3].FlowID (Feature), UPS.OutletSystem.Outlet.[3].PresentStatus.Present (Feature),
UPS.OutletSystem.Outlet.[3].PresentStatus.Present (Input), UPS.OutletSystem.OutletSystemID (Feature), UPS.PowerConverter.Inverter.PresentStatus.InternalFailure (Feature), UPS.PowerConverter.Inverter.Presen
tStatus.InternalFailure (Input), UPS.PowerConverter.Output.OutputID (Feature), UPS.PowerConverter.Output.PresentStatus.ShortCircuit (Feature), UPS.PowerConverter.Output.PresentStatus.ShortCircuit (Input),
UPS.PowerConverter.PowerConverterID (Feature), UPS.PowerConverter.Rectifier.PresentStatus.DCBusUnbalanced (Feature), UPS.PowerConverter.Rectifier.PresentStatus.DCBusUnbalanced (Input), UPS.PowerSummary.Aud
ibleAlarmControl (Feature), UPS.PowerSummary.CapacityGranularity1 (Feature), UPS.PowerSummary.CapacityMode (Feature), UPS.PowerSummary.Country (Feature), UPS.PowerSummary.DesignCapacity (Feature), UPS.Powe
rSummary.FlowID (Feature), UPS.PowerSummary.FullChargeCapacity (Feature), UPS.PowerSummary.iManufacturer (Feature), UPS.PowerSummary.iModel (Feature), UPS.PowerSummary.iProduct (Feature), UPS.PowerSummary.
iSerialNumber (Feature), UPS.PowerSummary.PowerSummaryID (Feature), UPS.PowerSummary.PresentStatus.CommunicationLost (Feature), UPS.PowerSummary.PresentStatus.CommunicationLost (Input), UPS.PowerSummary.Re
mainingCapacityLimit (Feature)
WARNING: vupslog: vsnprintf needed more than 256 bytes: 1103 (0 => Success), extending to 2127

11.907068 [D1] analyze_mapping_usage: 94 items are present in the report descriptor from HID UPS, but 15 of them have several Types named by same Path value, where at least one of the names was used and other(s) were not used by the mapping defined in the selected NUT subdriver MGE HID 1.58: UPS.BatterySystem.Charger.PresentStatus.VoltageTooHigh (Input), UPS.BatterySystem.Charger.PresentStatus.VoltageTooLow (Input), UPS.OutletSystem.Outlet.[2].PresentStatus.SwitchOn/Off (Input), UPS.OutletSystem.Outlet.[3].PresentStatus.SwitchOn/Off (Input), UPS.PowerSummary.PresentStatus.ACPresent (Input), UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit (Input), UPS.PowerSummary.PresentStatus.Charging (Input), UPS.PowerSummary.PresentStatus.Discharging (Input), UPS.PowerSummary.PresentStatus.Good (Input), UPS.PowerSummary.PresentStatus.InternalFailure (Input), UPS.PowerSummary.PresentStatus.NeedReplacement (Input), UPS.PowerSummary.PresentStatus.Overload (Input), UPS.PowerSummary.PresentStatus.ShutdownImminent (Input), UPS.PowerSummary.RemainingCapacity (Input), UPS.PowerSummary.RunTimeToEmpty (Input)

…ent typo

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… a reusable goal; apply for faster `make check(-recursive)` and `install(-recursive)` [networkupstools#3039]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov added this to the 2.8.5 milestone Mar 7, 2026
@jimklimov jimklimov added enhancement Eaton USB CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) MGE MGE branded devices and (USB) chipsets, now part of Eaton; mostly bcmxcp drivers labels Mar 7, 2026
Comment thread drivers/mge-hid.c Dismissed
Comment thread drivers/mge-hid.c Dismissed
Comment thread drivers/mge-hid.c Dismissed
Comment thread drivers/mge-hid.c Dismissed
Comment thread drivers/mge-hid.c Dismissed
@AppVeyorBot
Copy link
Copy Markdown

@jimklimov jimklimov merged commit d440f3d into networkupstools:master Mar 12, 2026
64 of 67 checks passed
@jimklimov jimklimov deleted the mge-hid-outlets branch March 12, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) Eaton enhancement MGE MGE branded devices and (USB) chipsets, now part of Eaton; mostly bcmxcp drivers USB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants