Commit 55a6624
committed
drivers/powercom-hid.c: add Output section shutdown for RPT/BNT-AP series
Some Powercom UPS models (e.g. RPT-800AP, BNT-AP) experience
unreliable shutdown.return behavior when using the PowerSummary
section (UPS.PowerSummary.DelayBeforeShutdown, ReportID 0x0f).
While the initial shutdown command works, after several
shutdown.return cycles the UPS fails to restart and remains in
a powered-off state instead of turning back on.
Comparison with the vendor's UPSMON PRO software behavior (by
reading back register values via NUT debug mode) revealed that
the vendor software uses the Output section register
(UPS.Output.DelayBeforeShutdown, ReportID 0x23) instead. This 8-bit register accepts a discrete delay index (1-18)
per the protocol specification:
Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Value 12s 18s 24s 30s 36s 42s 48s 54s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m
Using the Output section register provides reliable shutdown.return
behavior across repeated cycles.
This commit adds:
- powercom_shutdown_output_nuf(): converts offdelay seconds to the
nearest discrete delay index for the Output section register.
- shutdown.return and shutdown.stayoff command mappings via
UPS.Output.DelayBeforeShutdown, placed before the existing
PowerSummary mappings so they take priority on affected models.
The existing PowerSummary shutdown commands are preserved as fallback
for models that use them (e.g. SKP, IMP, VGD series).
Note: the Output section shutdown is silent, unlike the PowerSummary
shutdown which produces audible warning beeps (double short beeps)
during the countdown before powering off.
Tested on: Powercom RPT-800AP (VendorID 0x0d9f, ProductID 0x0004)
Signed-off-by: Vladyslav Andreichykov <vladdrako007@gmail.com>1 parent b0b3898 commit 55a6624
1 file changed
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
244 | 304 | | |
245 | 305 | | |
246 | 306 | | |
| |||
657 | 717 | | |
658 | 718 | | |
659 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
660 | 723 | | |
661 | 724 | | |
662 | 725 | | |
| |||
0 commit comments