Imported Upstream version 2.6.1
This commit is contained in:
parent
459aaf9392
commit
a367d9bc54
178 changed files with 4651 additions and 3279 deletions
|
|
@ -146,16 +146,38 @@ static usage_lkp_t apc_usage_lkp[] = {
|
|||
{ "APCProbe1", 0xff860007 },
|
||||
{ "APCProbe2", 0xff860008 },
|
||||
{ "APCBattReplaceDate", 0xff860016 },
|
||||
/* usage seen in dumps but unknown:
|
||||
* - ff860018
|
||||
* Path: UPS.Battery.ff860018, Type: Feature, ReportID: 0x48, Offset: 0, Size: 32, Value: 0
|
||||
*/
|
||||
{ "APCBattCapBeforeStartup", 0xff860019 }, /* FIXME: exploit */
|
||||
/* usage seen in dumps but unknown:
|
||||
* - ff86001a
|
||||
* Path: UPS.Battery.ff86001a, Type: Input, ReportID: 0x1b, Offset: 0, Size: 8, Value: 3
|
||||
* Path: UPS.Battery.ff86001a, Type: Feature, ReportID: 0x1b, Offset: 0, Size: 8, Value: 3
|
||||
* - ff86001b
|
||||
* Path: UPS.Battery.ff86001b, Type: Input, ReportID: 0x1c, Offset: 0, Size: 8, Value: 0
|
||||
* Path: UPS.Battery.ff86001b, Type: Feature, ReportID: 0x1c, Offset: 0, Size: 8, Value: 0
|
||||
* - ff860023
|
||||
* Path: UPS.ff860001.ff860023, Type: Feature, ReportID: 0x60, Offset: 0, Size: 16, Value: 0
|
||||
* - ff860024
|
||||
* Path: UPS.Battery.ff860024, Type: Feature, ReportID: 0x47, Offset: 0, Size: 8, Value: 245
|
||||
* Path: UPS.PowerConverter.ff860024, Type: Feature, ReportID: 0x51, Offset: 0, Size: 8, Value: 145
|
||||
* - ff860025
|
||||
* Path: UPS.ff860001.ff860025, Type: Feature, ReportID: 0x62, Offset: 0, Size: 32, Value: 0
|
||||
* - ff860026
|
||||
* Path: UPS.ff860001.ff860026, Type: Feature, ReportID: 0x61, Offset: 0, Size: 8, Value: 10
|
||||
* - ff860027
|
||||
* Path: UPS.ff860027, Type: Feature, ReportID: 0x3e, Offset: 0, Size: 32, Value: 0
|
||||
* - ff860028
|
||||
* Path: UPS.ff860028, Type: Feature, ReportID: 0x3f, Offset: 0, Size: 32, Value: 0
|
||||
* - ff860030
|
||||
* Path: UPS.Output.ff860030, Type: Feature, ReportID: 0x42, Offset: 0, Size: 16, Value: 5.8
|
||||
*/
|
||||
{ "APC_UPS_FirmwareRevision", 0xff860042 },
|
||||
{ "APCLineFailCause", 0xff860052 },
|
||||
{ "APCStatusFlag", 0xff860060 },
|
||||
{ "APCSensitivity", 0xff860061 },
|
||||
/* usage seen in dumps but unknown:
|
||||
* - ff860027, ff860028
|
||||
* Path: UPS.ff860027, Type: Feature, ReportID: 0x3e, Offset: 0,
|
||||
* Size: 32, Value:0.000000
|
||||
*/
|
||||
{ "APCPanelTest", 0xff860072 }, /* FIXME: exploit */
|
||||
{ "APCShutdownAfterDelay", 0xff860076 }, /* FIXME: exploit */
|
||||
{ "APC_USB_FirmwareRevision", 0xff860079 }, /* FIXME: exploit */
|
||||
|
|
@ -164,14 +186,24 @@ static usage_lkp_t apc_usage_lkp[] = {
|
|||
{ "APCDelayBeforeStartup", 0xff86007e }, /* FIXME: exploit */
|
||||
/* usage seen in dumps but unknown:
|
||||
* - ff860080
|
||||
* Path: UPS.PresentStatus.ff860080, Type: Input, ReportID: 0x33,
|
||||
* Offset: 12, Size: 1, Value: 0.000000
|
||||
* - ff86001a
|
||||
* Path: UPS.Battery.ff86001a, Type: Input, ReportID: 0x1b,
|
||||
* Offset: 0, Size: 8, Value: 3.000000
|
||||
* - ff86001b
|
||||
* Path: UPS.Battery.ff86001b, Type: Input, ReportID: 0x1c,
|
||||
* Offset: 0, Size: 8, Value: 0.000000
|
||||
* Path: UPS.PresentStatus.ff860080, Type: Input, ReportID: 0x33, Offset: 12, Size: 1, Value: 0
|
||||
* Path: UPS.PresentStatus.ff860080, Type: Feature, ReportID: 0x33, Offset: 12, Size: 1, Value: 0
|
||||
* Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, ReportID: 0x07, Offset: 12, Size: 1, Value: 0
|
||||
* Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature, ReportID: 0x07, Offset: 12, Size: 1, Value: 0
|
||||
* - ff860090, ff860091
|
||||
* Path: UPS.ff860090.ff860091, Type: Feature, ReportID: 0x8c, Offset: 0, Size: 8, Value: 1.000000
|
||||
* - ff860092
|
||||
* Path: UPS.ff860090.ff860092, Type: Feature, ReportID: 0x8d, Offset: 0, Size: 8, Value: 25.000000
|
||||
* - ff860093
|
||||
* Path: UPS.ff860090.ff860093, Type: Feature, ReportID: 0x8e, Offset: 0, Size: 8, Value: 83.000000
|
||||
* - ff860094
|
||||
* Path: UPS.ff860090.ff860094, Type: Feature, ReportID: 0x8f, Offset: 0, Size: 8, Value: 0.000000
|
||||
* - ff860095
|
||||
* Path: UPS.ff860090.ff860095, Type: Feature, ReportID: 0x90, Offset: 0, Size: 8, Value: 1.000000
|
||||
* - ff860096
|
||||
* Path: UPS.ff860090.ff860096, Type: Feature, ReportID: 0x91, Offset: 0, Size: 16, Value: 4.000000
|
||||
* - ff860097
|
||||
* Path: UPS.ff860090.ff860097, Type: Feature, ReportID: 0x92, Offset: 0, Size: 16, Value: 4.000000
|
||||
*/
|
||||
|
||||
/* Note (Arnaud): BUP stands for BackUPS Pro
|
||||
|
|
@ -269,12 +301,12 @@ static hid_info_t apc_hid2nut[] = {
|
|||
{ "ups.timer.start", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeStartup", NULL, "%.0f", HU_FLAG_QUICK_POLL, NULL},
|
||||
{ "ups.timer.shutdown", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeShutdown", NULL, "%.0f", HU_FLAG_QUICK_POLL, NULL},
|
||||
{ "ups.timer.reboot", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeReboot", NULL, "%.0f", HU_FLAG_QUICK_POLL, NULL},
|
||||
|
||||
{ "ups.test.result", 0, 0, "UPS.Battery.Test", NULL, "%s", 0, test_read_info },
|
||||
{ "ups.beeper.status", 0, 0, "UPS.PowerSummary.AudibleAlarmControl", NULL, "%s", 0, beeper_info },
|
||||
{ "ups.mfr.date", 0, 0, "UPS.ManufacturerDate", NULL, "%s", 0, date_conversion },
|
||||
{ "ups.mfr.date", 0, 0, "UPS.PowerSummary.ManufacturerDate", NULL, "%s", 0, date_conversion }, /* Back-UPS 500 */
|
||||
{ "ups.realpower.nominal", 0, 0, "UPS.PowerConverter.ConfigActivePower", NULL, "%.0f", 0, NULL },
|
||||
{ "ups.realpower.nominal", 0, 0, "UPS.PowerConverter.ConfigActivePower", NULL, "%.0f", 0, NULL },
|
||||
{ "ups.realpower.nominal", 0, 0, "UPS.Output.ConfigActivePower", NULL, "%.0f", 0, NULL },
|
||||
|
||||
/* the below one need to be discussed as we might need to complete
|
||||
* the ups.test sub collection
|
||||
|
|
@ -306,13 +338,18 @@ static hid_info_t apc_hid2nut[] = {
|
|||
/* Input page */
|
||||
{ "input.voltage", 0, 0, "UPS.Input.Voltage", NULL, "%.1f", 0, NULL },
|
||||
{ "input.voltage.nominal", 0, 0, "UPS.Input.ConfigVoltage", NULL, "%.0f", 0, NULL },
|
||||
{ "input.transfer.low", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Output.LowVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL },
|
||||
{ "input.transfer.high", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Output.HighVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL },
|
||||
/* used by APC BackUPS RS */
|
||||
{ "input.transfer.low", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Input.LowVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL },
|
||||
{ "input.transfer.high", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Input.HighVoltageTransfer", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL },
|
||||
{ "input.sensitivity", ST_FLAG_RW | ST_FLAG_STRING, 10, "UPS.Input.APCSensitivity", NULL, "%s", HU_FLAG_SEMI_STATIC, apc_sensitivity_info },
|
||||
|
||||
|
||||
/* Output page */
|
||||
{ "output.voltage", 0, 0, "UPS.Output.Voltage", NULL, "%.1f", 0, NULL },
|
||||
{ "output.voltage.nominal", 0, 0, "UPS.Output.ConfigVoltage", NULL, "%.1f", 0, NULL },
|
||||
{ "output.current", 0, 0, "UPS.Output.Current", NULL, "%.2f", 0, NULL },
|
||||
{ "output.frequency", 0, 0, "UPS.Output.Frequency", NULL, "%.1f", 0, NULL },
|
||||
|
||||
/* Environmental page */
|
||||
{ "ambient.temperature", 0, 0, "UPS.APCEnvironment.APCProbe1.Temperature", NULL, "%s", 0, kelvin_celsius_conversion },
|
||||
|
|
@ -352,7 +389,9 @@ static hid_info_t apc_hid2nut[] = {
|
|||
{ "load.on.delay", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeStartup", NULL, DEFAULT_ONDELAY, HU_TYPE_CMD, NULL },
|
||||
{ "shutdown.stop", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeShutdown", NULL, "-1", HU_TYPE_CMD, NULL },
|
||||
{ "shutdown.reboot", 0, 0, "UPS.APCGeneralCollection.APCDelayBeforeReboot", NULL, "10", HU_TYPE_CMD, NULL },
|
||||
|
||||
/* used by APC BackUPS CS */
|
||||
{ "shutdown.return", 0, 0, "UPS.Output.APCDelayBeforeReboot", NULL, "1", HU_TYPE_CMD, NULL },
|
||||
|
||||
{ "beeper.on", 0, 0, "UPS.PowerSummary.AudibleAlarmControl", NULL, "2", HU_TYPE_CMD, NULL },
|
||||
{ "beeper.off", 0, 0, "UPS.PowerSummary.AudibleAlarmControl", NULL, "3", HU_TYPE_CMD, NULL },
|
||||
{ "beeper.enable", 0, 0, "UPS.PowerSummary.AudibleAlarmControl", NULL, "2", HU_TYPE_CMD, NULL },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue