[Nut-upsdev] newhidups with APC Smart-UPS 1500

Schmier, Jacob Jacob_Schmier at inter-tel.com
Wed Oct 18 17:56:21 UTC 2006


Peter,

When I test your fix (newhidups -DDD /dev/null) using a MGE Pulsar
Evolution 2200, I get a segmentation fault.  I do not get this problem
when running the 2.0.4 release.  There seems to be a 3-5 second delay
between the "Waiting for notifications..." output and the segmentation
fault.

By initializing the eventlist pointer to NULL in upsdrv_updateinfo, I
was able to correct the problem.  So I believe the fix would be the
following:

-HIDEvent *eventlist;
+HIDEvent *eventlist = NULL;


~Jacob


Here's the output and backtrace from GDB.

(gdb) set args -DDD /dev/null
(gdb) run
Starting program: /root/newhidups -DDD /dev/null
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
(2.1.0)

debug level is '3'
Checking device (0000/0000) (005/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.8-2-386 ehci_hcd
- Product: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
- Serial Number: 0000:00:1d.7
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (004/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.8-2-386 uhci_hcd
- Product: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4
- Serial Number: 0000:00:1d.3
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (0463/FFFF) (003/009)
- VendorID: 0463
- ProductID: ffff
- Manufacturer: MGE UPS SYSTEMS
- Product: Evolution
- Serial Number: AH2G10067
- Bus: 003
Trying to match device
Device matches
HID descriptor, method 1: (9 bytes) => 09 21 00 01 21 01 22 54 06
HID descriptor, method 2: (9 bytes) => 09 21 00 01 21 01 22 54 06
HID descriptor retrieved (Reportlen = 1620)
Report descriptor retrieved (Reportlen = 1620)
Found HID device
Report Descriptor size = 1620
Report Descriptor: (1620 bytes) => 05 84 09 04 a1 01 09 10 a1 00 85 01
09
11 75 08 95 01 15 00 26 ff 00 65 00 b1 03 09 12 a1 00 09 13 95 01 b1 03
85
10 0b 6a 00 85 00 75 10 95 01 27 ff ff 00 00 66 01 10 b1 83 85 14 0b 90
00
ff ff 75 08 95 01 26 ff 00 65 00 b1 82 09 02 a1 02 85 0b 09 61 09 60 75
01
95 02 25 01 81 83 09 61 09 60 95 02 b1 83 c0 85 15 0b 49 00 ff ff 95 01
b1
82 95 07 b1 03 85 16 09 58 75 08 95 01 26 ff 00 b1 82 85 17 0b 45 00 ff
ff
75 18 95 01 27 ff ff ff 00 66 01 10 b1 82 c0 09 14 a1 00 85 01 09 15 75
08
95 01 26 ff 00 65 00 b1 03 09 02 a1 02 85 0b 09 61 09 62 75 01 95 02 25
01
81 83 09 61 09 62 95 02 b1 83 c0 c0 09 1a a1 00 85 01 09 1f 09 1b 75 08
95
02 26 ff 00 b1 03 c0 09 1c a1 00 09 1f 09 1d 95 02 b1 03 c0 c0 09 1e a1
81
85 02 09 1f 95 01 b1 03 85 18 09 42 95 01 26 ff 00 66 01 f0 b1 82 85 19
09
40 75 10 95 01 27 ff ff 00 00 67 21 d1 f0 00 55 07 b1 82 c0 09 1e a1 83
85
02 09 1f 75 08 95 01 26 ff 00 65 00 55 00 b1 03 c0 09 1e a1 84 09 1f 95
01
26 ff 00 65 00 b1 03 85 1a 09 44 75 10 95 01 27 ff ff 00 00 66 21 d1 55
07
b1 82 85 1b 09 43 95 01 b1 82 85 1c 09 41 95 01 27 ff ff 00 00 67 01 00
10
00 55 0e b1 82 85 1d 09 42 75 08 95 01 26 ff 00 66 01 f0 55 00 b1 82 85
1e
09 40 75 10 95 01 27 ff ff 00 00 67 21 d1 f0 00 55 07 b1 82 c0 09 18 a1
00
85 03 09 19 75 08 95 01 26 ff 00 65 00 55 00 b1 03 09 20 a1 81 09 1f 09
21
95 02 26 ff 00 b1 03 09 02 a1 02 85 04 09 6c 75 01 95 01 25 01 b1 03 95
07
b1 03 c0 c0 09 20 a1 82 85 03 09 1f 09 21 75 08 95 02 26 ff 00 b1 03 85
1f
0b 29 00 85 00 95 01 25 64 b1 82 85 20 09 57 75 18 95 01 15 ff 27 ff ff
00
00 66 01 10 b1 82 85 21 09 56 95 01 55 01 b1 82 85 22 0b 5d 00 ff ff 75
10
95 01 15 00 27 ff ff 00 00 55 00 b1 82 85 23 0b 5e 00 ff ff 95 01 b1 82
09
02 a1 02 85 04 09 6c 75 01 95 01 25 01 65 00 b1 03 95 07 b1 03 85 0b 09
6b
95 01 81 83 09 6b 95 01 b1 83 c0 c0 09 20 a1 83 85 03 09 1f 09 21 75 08
95
02 26 ff 00 b1 03 85 24 0b 29 00 85 00 95 01 25 64 b1 82 85 25 09 57 75
18
95 01 15 ff 27 ff ff 00 00 66 01 10 b1 82 85 26 09 56 95 01 55 01 b1 82
85
27 0b 5d 00 ff ff 75 10 95 01 15 00 55 00 b1 82 85 28 0b 5e 00 ff ff 95
01
b1 82 09 02 a1 02 85 04 09 6c 75 01 95 01 25 01 65 00 b1 03 95 07 b1 03
85
0b 09 6b 95 01 81 83 09 6b 95 01 b1 83 c0 c0 c0 09 16 a1 00 85 04 0b 41
00
ff ff 75 08 95 01 26 ff 00 b1 03 85 05 09 17 95 01 b1 03 09 1a a1 81 85
05
09 1f 09 1b 95 02 b1 03 85 29 0b 43 00 ff ff 75 01 95 01 25 01 b1 82 95
07
b1 03 85 11 09 30 75 10 95 01 27 ff ff 00 00 67 21 d1 f0 00 55 07 b1 83
09
32 75 08 95 01 26 ff 00 66 01 f0 55 00 b1 83 09 02 a1 02 85 0b 09 6e 09
6f
09 61 09 62 75 01 95 04 25 01 65 00 81 83 09 6e 09 6f 09 61 09 62 95 04
b1
83 c0 c0 09 1a a1 83 85 05 09 1f 09 1b 75 08 95 02 26 ff 00 b1 03 85 2a
0b
46 00 ff ff 75 01 95 01 25 01 b1 82 95 07 b1 03 85 2b 0b 47 00 ff ff 95
01
b1 82 95 07 b1 03 09 02 a1 02 85 0b 09 61 09 6d 95 02 81 83 09 61 09 6d
95
02 b1 83 c0 c0 09 1c a1 00 85 05 09 1f 09 1d 75 08 95 02 26 ff 00 b1 03
85
12 09 33 75 10 95 01 27 ff ff 00 00 66 21 d1 55 07 b1 83 09 31 95 01 67
01
00 10 00 55 0e b1 83 09 32 75 08 95 01 26 ff 00 66 01 f0 55 00 b1 83 09
30
75 10 95 01 27 ff ff 00 00 67 21 d1 f0 00 55 07 b1 83 09 02 a1 02 85 0b
09
61 09 65 0b 4a 00 ff ff 75 01 95 03 25 01 65 00 55 00 81 83 09 61 09 65
0b
4a 00 ff ff 95 03 b1 83 c0 85 3a 0b 4b 00 ff ff 75 08 95 01 26 ff 00 b1
82
85 3b 0b 4e 00 ff ff 95 01 b1 82 85 2d 0b 44 00 ff ff 75 01 95 01 25 01
b1
82 95 07 b1 03 85 2e 0b 53 00 ff ff 75 10 95 01 27 ff ff 00 00 67 21 d1
f0
00 55 07 b1 82 85 2f 09 54 95 01 b1 82 85 30 0b 50 00 ff ff 95 01 b1 82
85
31 09 53 95 01 b1 82 85 32 0b 4c 00 ff ff 75 08 95 01 26 ff 00 65 00 55
00
b1 82 c0 c0 09 24 a1 00 85 06 09 1f 09 25 75 08 95 02 26 ff 00 b1 03 0b
8d
00 85 00 95 01 25 64 b1 03 0b 2c 00 85 00 95 01 26 ff 00 b1 03 0b 83 00
85
00 95 01 25 64 b1 03 0b 8b 00 85 00 95 01 25 03 b1 03 85 07 0b 89 00 85
00
0b f0 00 ff ff 0b 8f 00 85 00 09 fe 09 ff 09 fd 95 06 26 ff 00 b1 03 85
08
09 40 95 01 67 21 d1 f0 00 55 07 b1 03 85 13 09 35 95 01 65 00 55 00 b1
83
0b 29 00 85 00 95 01 25 64 b1 83 09 30 95 01 67 21 d1 f0 00 55 07 b1 83
85
0c 0b 66 00 85 00 95 01 25 64 65 00 55 00 81 83 0b 66 00 85 00 95 01 b1
83
0b 68 00 85 00 75 18 95 01 27 ff ff ff 00 66 01 10 81 83 0b 68 00 85 00
95
01 b1 83 09 02 a1 02 85 0b 0b d0 00 85 00 0b 42 00 85 00 0b 44 00 85 00
09
73 0b 45 00 85 00 09 61 09 62 0b 4b 00 85 00 09 65 09 67 09 69 75 01 95
0b
25 01 65 00 81 83 95 06 81 03 0b d0 00 85 00 0b 42 00 85 00 0b 44 00 85
00
09 73 0b 45 00 85 00 09 61 09 62 0b 4b 00 85 00 09 65 09 67 09 69 95 0b
b1
83 95 06 b1 03 85 33 09 6c 95 01 81 82 95 07 81 03 09 6c 95 01 b1 82 95
07
b1 03 c0 85 34 09 5a 75 08 95 01 15 01 26 ff 00 81 82 09 5a 95 01 b1 82
85
35 09 57 75 18 95 01 15 ff 27 ff ff 00 00 66 01 10 b1 82 85 36 09 56 95
01
55 01 b1 82 85 37 0b 4d 00 ff ff 75 08 95 01 15 00 25 64 55 00 65 00 b1
82
85 38 0b 5f 00 ff ff 95 01 b1 82 85 39 0b 48 00 ff ff 75 01 95 01 25 01
b1
82 95 07 b1 03 c0 c0
Detected a UPS: MGE UPS SYSTEMS/Evolution
Using subdriver: MGE HID 1.0
Report[r]: (8 bytes) => 01 01 01 01 01 01 03 01
Path: UPS.BatterySystem.BatterySystemID, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Battery.BatteryID, Type: Feature, Value:
1.000000
Report[r]: (3 bytes) => 10 00 00
Path: UPS.BatterySystem.Battery.AverageTimeToFull, Type: Feature, Value:
0.000000
Report[r]: (2 bytes) => 14 00
Path: UPS.BatterySystem.Battery.Count, Type: Feature, Value: 0.000000
Report[r]: (5 bytes) => 0b 37 95 12 00
Path: UPS.BatterySystem.Battery.PresentStatus.Good, Type: Input, Value:
1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Present, Type: Input,
Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Good, Type: Feature,
Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Present, Type: Feature,
Value: 1.000000
Report[r]: (2 bytes) => 15 01
Path: UPS.BatterySystem.Battery.DeepDischargeProtection, Type: Feature,
Value: 1.000000
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Path: UPS.BatterySystem.Battery., Type: Feature
Report[r]: (2 bytes) => 16 01
Path: UPS.BatterySystem.Battery.Test, Type: Feature, Value: 1.000000
Report[r]: (4 bytes) => 17 80 3a 09
Path: UPS.BatterySystem.Battery.TestPeriod, Type: Feature, Value:
604800.000000
Path: UPS.BatterySystem.Charger.ChargerID, Type: Feature, Value:
1.000000
Path: UPS.BatterySystem.Charger.PresentStatus.Good, Type: Input, Value:
1.000000
Path: UPS.BatterySystem.Charger.PresentStatus.InternalFailure, Type:
Input, Value: 0.000000
Path: UPS.BatterySystem.Charger.PresentStatus.Good, Type: Feature,
Value: 1.000000
Path: UPS.BatterySystem.Charger.PresentStatus.InternalFailure, Type:
Feature, Value: 0.000000
Path: UPS.BatterySystem.Input.FlowID, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Input.InputID, Type: Feature, Value: 1.000000
Path: UPS.BatterySystem.Output.FlowID, Type: Feature, Value: 3.000000
Path: UPS.BatterySystem.Output.OutputID, Type: Feature, Value: 1.000000
Path: UPS.Flow[1].FlowID, Type: Feature
Path: UPS.Flow[1].ConfigFrequency, Type: Feature
Path: UPS.Flow[1].ConfigVoltage, Type: Feature
Path: UPS.Flow[3].FlowID, Type: Feature
Path: UPS.Flow[4].FlowID, Type: Feature
Path: UPS.Flow[4].ConfigActivePower, Type: Feature
Path: UPS.Flow[4].ConfigApparentPower, Type: Feature
Path: UPS.Flow[4].ConfigCurrent, Type: Feature
Path: UPS.Flow[4].ConfigFrequency, Type: Feature
Path: UPS.Flow[4].ConfigVoltage, Type: Feature
Report[r]: (8 bytes) => 03 01 04 00 04 01 04 02
Path: UPS.OutletSystem.OutletSystemID, Type: Feature, Value: 1.000000
Path: UPS.OutletSystem.Outlet[1].FlowID, Type: Feature
Path: UPS.OutletSystem.Outlet[1].OutletID, Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus.Switchable, Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[1].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].FlowID, Type: Feature
Path: UPS.OutletSystem.Outlet[2].OutletID, Type: Feature
Path: UPS.OutletSystem.Outlet[2].RemainingCapacityLimit, Type: Feature
Path: UPS.OutletSystem.Outlet[2].DelayBeforeShutdown, Type: Feature
Path: UPS.OutletSystem.Outlet[2].DelayBeforeStartup, Type: Feature
Path: UPS.OutletSystem.Outlet[2].ShutdownTimer, Type: Feature
Path: UPS.OutletSystem.Outlet[2].StartupTimer, Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus.Switchable, Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[2].PresentStatus.SwitchOn/Off, Type: Input
Path: UPS.OutletSystem.Outlet[2].PresentStatus.SwitchOn/Off, Type:
Feature
Path: UPS.OutletSystem.Outlet[3].FlowID, Type: Feature
Path: UPS.OutletSystem.Outlet[3].OutletID, Type: Feature
Path: UPS.OutletSystem.Outlet[3].RemainingCapacityLimit, Type: Feature
Path: UPS.OutletSystem.Outlet[3].DelayBeforeShutdown, Type: Feature
Path: UPS.OutletSystem.Outlet[3].DelayBeforeStartup, Type: Feature
Path: UPS.OutletSystem.Outlet[3].ShutdownTimer, Type: Feature
Path: UPS.OutletSystem.Outlet[3].StartupTimer, Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus.Switchable, Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus., Type: Feature
Path: UPS.OutletSystem.Outlet[3].PresentStatus.SwitchOn/Off, Type: Input
Path: UPS.OutletSystem.Outlet[3].PresentStatus.SwitchOn/Off, Type:
Feature
Report[r]: (5 bytes) => 04 00 01 01 01
Path: UPS.PowerConverter.ConverterType, Type: Feature, Value: 1.000000
Report[r]: (8 bytes) => 05 01 01 01 03 03 04 01
Path: UPS.PowerConverter.PowerConverterID, Type: Feature, Value:
1.000000
Path: UPS.PowerConverter.Input[1].FlowID, Type: Feature
Path: UPS.PowerConverter.Input[1].InputID, Type: Feature
Path: UPS.PowerConverter.Input[1].AutomaticRestart, Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1]., Type: Feature
Path: UPS.PowerConverter.Input[1].Voltage, Type: Feature
Path: UPS.PowerConverter.Input[1].Frequency, Type: Feature
Path: UPS.PowerConverter.Input[1].PresentStatus.Boost, Type: Input
Path: UPS.PowerConverter.Input[1].PresentStatus.Buck, Type: Input
Path: UPS.PowerConverter.Input[1].PresentStatus.Good, Type: Input
Path: UPS.PowerConverter.Input[1].PresentStatus.InternalFailure, Type:
Input
Path: UPS.PowerConverter.Input[1].PresentStatus.Boost, Type: Feature
Path: UPS.PowerConverter.Input[1].PresentStatus.Buck, Type: Feature
Path: UPS.PowerConverter.Input[1].PresentStatus.Good, Type: Feature
Path: UPS.PowerConverter.Input[1].PresentStatus.InternalFailure, Type:
Feature
Path: UPS.PowerConverter.Input[3].FlowID, Type: Feature
Path: UPS.PowerConverter.Input[3].InputID, Type: Feature
Path: UPS.PowerConverter.Input[3].EnergySaving, Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3].StartOnBattery, Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3]., Type: Feature
Path: UPS.PowerConverter.Input[3].PresentStatus.Good, Type: Input
Path: UPS.PowerConverter.Input[3].PresentStatus.Used, Type: Input
Path: UPS.PowerConverter.Input[3].PresentStatus.Good, Type: Feature
Path: UPS.PowerConverter.Input[3].PresentStatus.Used, Type: Feature
Path: UPS.PowerConverter.Output.FlowID, Type: Feature, Value: 4.000000
Path: UPS.PowerConverter.Output.OutputID, Type: Feature, Value: 1.000000
Report[r]: (8 bytes) => 12 dc 00 b0 00 3c 75 00
Path: UPS.PowerConverter.Output.ApparentPower, Type: Feature, Value:
220.000000
Path: UPS.PowerConverter.Output.Current, Type: Feature, Value: 1.760000
Path: UPS.PowerConverter.Output.Frequency, Type: Feature, Value:
60.000000
Path: UPS.PowerConverter.Output.Voltage, Type: Feature, Value:
117.000000
Path: UPS.PowerConverter.Output.PresentStatus.Good, Type: Input, Value:
1.000000
Path: UPS.PowerConverter.Output.PresentStatus.Overload, Type: Input,
Value: 0.000000
Path: UPS.PowerConverter.Output.PresentStatus.ShortCircuit, Type: Input,
Value: 0.000000
Path: UPS.PowerConverter.Output.PresentStatus.Good, Type: Feature,
Value: 1.000000
Path: UPS.PowerConverter.Output.PresentStatus.Overload, Type: Feature,
Value: 0.000000
Path: UPS.PowerConverter.Output.PresentStatus.ShortCircuit, Type:
Feature, Value: 0.000000
Report[r]: (2 bytes) => 3a 00
Path: UPS.PowerConverter.Output.ExtendedVoltageMode, Type: Feature,
Value: 0.000000
Report[r]: (2 bytes) => 3b 00
Path: UPS.PowerConverter.Output.ExtendedFrequencyMode, Type: Feature,
Value: 0.000000
Report[r]: (2 bytes) => 2d 01
Path: UPS.PowerConverter.Output.ForcedReboot, Type: Feature, Value:
1.000000
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Path: UPS.PowerConverter.Output., Type: Feature
Report[r]: (3 bytes) => 2e 84 00
Path: UPS.PowerConverter.Output.HighVoltageBuckTransfer, Type: Feature,
Value: 132.000000
Report[r]: (3 bytes) => 2f 97 00
Path: UPS.PowerConverter.Output.HighVoltageTransfer, Type: Feature,
Value: 151.000000
Report[r]: (3 bytes) => 30 66 00
Path: UPS.PowerConverter.Output.LowVoltageBoostTransfer, Type: Feature,
Value: 102.000000
Report[r]: (3 bytes) => 31 59 00
Path: UPS.PowerConverter.Output.LowVoltageTransfer, Type: Feature,
Value: 89.000000
Report[r]: (2 bytes) => 32 00
Path: UPS.PowerConverter.Output.SensitivityMode, Type: Feature, Value:
0.000000
Report[r]: (7 bytes) => 06 04 01 01 02 64 01
Path: UPS.PowerSummary.FlowID, Type: Feature, Value: 4.000000
Path: UPS.PowerSummary.PowerSummaryID, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value:
1.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.000000
Report[r]: (7 bytes) => 07 46 24 50 88 32 04
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 70.000000
Path: UPS.PowerSummary.iModel, Type: Feature, Value: 36.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value: 80.000000
Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 136.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 50.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 4.000000
Report[r]: (2 bytes) => 08 48
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value: 72.000000
Report[r]: (4 bytes) => 13 0b 14 53
Path: UPS.PowerSummary.PercentLoad, Type: Feature, Value: 11.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, Value:
20.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 83.000000
Report[r]: (5 bytes) => 0c 64 2b 16 00
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value:
100.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value: 5675.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value: 5675.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Input,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, Value:
0.000000
Path: UPS.PowerSummary.PresentStatus.Good, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Input,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, Value:
0.000000
Path: UPS.PowerSummary.PresentStatus.OverTemperature, Type: Input,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: Feature,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value:
0.000000
Path: UPS.PowerSummary.PresentStatus.Good, Type: Feature, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Feature,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, Value:
0.000000
Path: UPS.PowerSummary.PresentStatus.OverTemperature, Type: Feature,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature,
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Report[r]: (2 bytes) => 33 01
Path: UPS.PowerSummary.PresentStatus.Switchable, Type: Input, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus.Switchable, Type: Feature, Value:
1.000000
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Report[r]: (2 bytes) => 34 02
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, Value: 2.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value:
2.000000
Report[r]: (4 bytes) => 35 ff ff ff
Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, Value:
-1.000000
Report[r]: (4 bytes) => 36 ff ff ff
Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, Value:
-10.000000
Report[r]: (2 bytes) => 37 14
Path: UPS.PowerSummary.RemainingCapacityLimitSetting, Type: Feature,
Value: 20.000000
Report[r]: (2 bytes) => 38 00
Path: UPS.PowerSummary.RestartLevel, Type: Feature, Value: 0.000000
Report[r]: (2 bytes) => 39 00
Path: UPS.PowerSummary.Schedule, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
Path: UPS.PowerSummary., Type: Feature
get_model_name(Evolution, 2200)

comparing with: ellipse 300
comparing with: ellipse 500
comparing with: ellipse 650
comparing with: ellipse 800
comparing with: ellipse 1200
comparing with: ellipse premium 500
comparing with: ellipse premium 650
comparing with: ellipse premium 800
comparing with: ellipse premium 1200
comparing with: Ellipse 600
comparing with: Ellipse 750
comparing with: Ellipse 1000
comparing with: Ellipse 1500
comparing with: Protection Center 420
comparing with: Protection Center 500
comparing with: Protection Center 675
comparing with: Pulsar Evolution 500
comparing with: Pulsar Evolution 800
comparing with: Pulsar Evolution 1100
comparing with: Pulsar Evolution 1500
comparing with: Pulsar Evolution 2200
Found Pulsar Evolution 2200

Can't find object UPS.BatterySystem.Battery.Temperature
Can't find object UPS.BatterySystem.ConfigVoltage
Can't find object UPS.PowerSummary.DelayBeforeReboot
Can't find object UPS.PowerSummary.Temperature
Report[r]: (3 bytes) => 1b 98 08
Report[r]: (4 bytes) => 11 76 00 3c
Can't find object UPS.PowerConverter.Output.HighVoltageBoostTransfer
Can't find object UPS.PowerConverter.Output.LowVoltageBuckTransfer
Report[r]: (2 bytes) => 1f 00
Report[r]: (3 bytes) => 22 ff ff
Report[r]: (3 bytes) => 23 03 00
Report[r]: (2 bytes) => 24 00
Report[r]: (3 bytes) => 27 ff ff
Report[r]: (3 bytes) => 28 06 00
Report[r]: (2 bytes) => 16 01
Report[r]: (4 bytes) => 20 ff ff ff
Report[r]: (4 bytes) => 21 ff ff ff
Report[r]: (4 bytes) => 25 ff ff ff
Report[r]: (4 bytes) => 26 ff ff ff
upsdrv_updateinfo...
Report[r]: (5 bytes) => 0b 37 95 12 00
Report[r]: (8 bytes) => 12 dc 00 b0 00 3c 75 00
dstate_init: sock /tmp/newhidups-null open on fd 8
upsdrv_updateinfo...
Waiting for notifications...
newhidups: unhandled page fault at eip=0x080625e7 (bad
address=0xc35dec85, code 5)
Pid: 25067, comm:            newhidups
EIP: 0073:[<080625e7>] CPU: 0
EIP is at 0x80625e7
 ESP: 007b:bffffae8 EFLAGS: 00010282    Not tainted  (2.6.8-2-386)
EAX: c35dec81 EBX: c35dec89 ECX: 4004550d EDX: 00000000
ESI: 08058e7a EDI: 00000000 EBP: bffffaf8 DS: 007b ES: 007b
CR0: 8005003b CR2: c35dec85 CR3: 1e8fd000 CR4: 00000690

Program received signal SIGSEGV, Segmentation fault.
0x080625e7 in free ()
Current language:  auto; currently asm
(gdb) bt
#0  0x080625e7 in free ()
#1  0x0805243a in HIDFreeEvents ()
#2  0x08048aa6 in upsdrv_updateinfo ()
#3  0x0804a4c5 in main ()
(gdb) 




-----Original Message-----
From: Peter Selinger [mailto:selinger at mathstat.dal.ca] 
Sent: Wednesday, October 18, 2006 10:18 AM
To: Schmier, Jacob
Cc: NUT developers
Subject: Re: [Nut-upsdev] newhidups with APC Smart-UPS 1500

Great, thanks for the feedback! -- Peter

Schmier, Jacob wrote:
> 
> 
> I tested your fix (newhidups -DDD /dev/null) using both and APC 
> Back-UPS 350 an APC Smart-UPS RT 2000 XL. =20
> 
> No more segmentation fault due to the fixed-size array.
> 
> ~Jacob
> 
> -----Original Message-----
> From: nut-upsdev-bounces at lists.alioth.debian.org
> [mailto:nut-upsdev-bounces at lists.alioth.debian.org] On Behalf Of Peter

> Selinger
> Sent: Monday, October 16, 2006 12:12 PM
> To: Schmier, Jacob
> Cc: NUT developers
> Subject: Re: [Nut-upsdev] newhidups with APC Smart-UPS 1500
> 
> Jacob and Felix,
> 
> I just fixed this bug in SVN. The code now uses an allocated list, 
> instead of a fixed-size array.=20
> 
> Could you please test this. There should be no more segmentation 
> fault.=20
> 
> Thanks, -- Peter
> 
> Schmier, Jacob wrote:
> >=20
> >=20
> > The source of the segmentation fault is in newhidups.c at line 534.
> >=20
> > 528
> > 529 void upsdrv_updateinfo(void)
> > 530 {
> > 531         hid_info_t *item;
> > 532         char *nutvalue;
> > 533         int retcode, evtCount =3D 0;
> > 534         HIDItem *eventsList[10];
> > 535=20
> > 536         upsdebugx(1, "upsdrv_updateinfo...");
> > 537
> > 538
> >=20
> > The array only holds pointers to 10 HID items.
> >=20
> > > =3D>Got 16 HID Objects...
> >=20
> > Produces a segmentation fault.
> >=20
> > I got around this by temporarily increasing the size of the array.
> > HIDItem *eventsList[32];
> >=20
> > A better fix is needed.  The code loops until the total number 
> >HID=20  objects are retrieved.  The array needs to hold this total 
> >number of=20  HID objects in all cases to avoid problems.
> >=20
> > ~Jacob Schmier
> >=20
> >=20
> >=20
> > -----Original Message-----
> > From: nut-upsdev-bounces at lists.alioth.debian.org
> > [mailto:nut-upsdev-bounces at lists.alioth.debian.org] On Behalf Of 
> >Peter
> 
> > Selinger
> > Sent: Wednesday, October 04, 2006 7:14 PM
> > To: Felix M=3DFChlbauer
> > Cc: NUT developers
> > Subject: Re: [Nut-upsdev] newhidups with APC Smart-UPS 1500 =20  
> >Thanks. This is useful info, but not sufficient to isolate the bug.
> > Could you run newhidups in the debugger, like this:
> >=20
> > gdb drivers/newhidups
> > (gdb) run -DDDDD -u root auto
> >=20
> > [the driver will run and produce enormous amounts of debugging 
> >output,
> 
> > then crash. Then issue the following command to generate a 
> > backtrace,=20 which, with some luck, will tell us exactly where the
program crashed.
> 
> > ]
> >=20
> > (gdb) bt
> >=20
> > Please send both the debugging output before the crash, and the=20  
> >debugger output after it. Feel free to play around with additional=20

> >debugger commands.
> >=20
> > If the resulting file is too large to post on the mailing list, 
> >you=20  can
> > (exceptionally) send it to my address directly. But in general, 
> >please
> 
> > keep the traffic on the mailing list. Thanks, -- Peter =20  
> >=3D?ISO-8859-1?Q?Felix_M=3DFChlbauer?=3D wrote:
> > >
> > >
> > > Peter Selinger wrote:
> > > > Yikes, that's a bug I have not seen before. Could you run the=20

> > > > driver
> >=20
> > > > with debugging enabled, like this:
> > > >
> > > >  drivers/newhidups -DD -u root auto
> > > >
> > >
> > >
> > > debug level is '2'
> > > Checking device (046B/FF40) (002/003)
> > > - VendorID: 046b
> > > - ProductID: ff40
> > > - Manufacturer: American Megatrends Inc.
> > > - Product: Virtual Floppy Device
> > > - Serial Number: unknown
> > > - Bus: 002
> > > Trying to match device
> > > Device does not match - skipping
> > > Checking device (046B/FF20) (002/002)
> > > - VendorID: 046b
> > > - ProductID: ff20
> > > - Manufacturer: American Megatrends Inc.
> > > - Product: Virtual Cdrom Device
> > > - Serial Number: unknown
> > > - Bus: 002
> > > Trying to match device
> > > Device does not match - skipping
> > > Checking device (0000/0000) (002/001)
> > > - VendorID: 0000
> > > - ProductID: 0000
> > > - Manufacturer: Linux 2.6.8-dol-03-11-amd64-k8-smp ohci_hcd
> > > - Product: Advanced Micro Devices [AMD] AMD-8111 USB (#2)
> > > - Serial Number: 0000:03:00.1
> > > - Bus: 002
> > > Trying to match device
> > > Device does not match - skipping
> > > Checking device (0A81/0205) (001/005)
> > > - VendorID: 0a81
> > > - ProductID: 0205
> > > - Manufacturer: CHESEN
> > > - Product: PS2 to USB Converter
> > > - Serial Number: unknown
> > > - Bus: 001
> > > Trying to match device
> > > Device does not match - skipping
> > > Checking device (046B/FF10) (001/004)
> > > - VendorID: 046b
> > > - ProductID: ff10
> > > - Manufacturer: American Megatrends Inc.
> > > - Product: Virtual Keyboard and Mouse
> > > - Serial Number: unknown
> > > - Bus: 001
> > > Trying to match device
> > > Device does not match - skipping
> > > Checking device (051D/0002) (001/003)
> > > - VendorID: 051d
> > > - ProductID: 0002
> > > - Manufacturer: American Power Conversion
> > > - Product: Smart-UPS 1500 RM FW:617.3.I USB FW:1.5
> > > - Serial Number: AS0341111860
> > > - Bus: 001
> > > Trying to match device
> > > Device matches
> > > Warning: two different HID descriptors retrieved (Reportlen =3D =
> 61939
> > vs.
> > > 1040)
> > > HID descriptor retrieved (Reportlen =3D 1040) Report descriptor=20

> > > retrieved (Reportlen =3D 1040) Found HID device Network UPS Tools:
> > 0.28
> > > USB communication driver 0.28 - core 0.30 (2.1.0)
> > >
> > > Report Descriptor size =3D 1040
> > > Detected a UPS: American Power Conversion/Smart-UPS 1500 RM=20 
> > > FW:617.3.I
> >=20
> > > USB FW:1.5 Using subdriver: APC/CyberPower HID 0.9
> > > Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1.000000
> > > Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 
> > > 2.000000
> > > Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 
> > > 3.000000
> > > Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value:=20 
> > > 3.000000
> > > Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value:
> > > 4.000000
> > > Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 
> > > 1.000000
> > > Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 
> > > 2.000000
> > > Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value:
> > > 100.000000
> > > Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value:
> > > 100.000000
> > > Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value:
> > > 100.000000
> > > Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value:
> > > 100.000000
> > > Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value:
> > > 1.000000
> > > Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, Value:
> > > 1.000000
> > > Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, Value:
> > > 50.000000
> > > Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature,
Value:
> > > 10.000000
> > > Path: UPS.PowerSummary.ManufacturerDate, Type: Feature, Value:
> > > 12106.000000
> > > Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value:=20 
> > > 900.000000
> > > Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value:
> > > 900.000000
> > > Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, Value:
> > > -1.000000
> > > Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, Value:
> > > 16777215.000000
> > > Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, Value:
> > > 120.000000
> > > Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, Value:
> > > 120.000000
> > > Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value:=20
> > > 24.000002
> > > Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 27.670002
> > > Path: UPS.PowerSummary.AudibleAlarmControl, Type: Input, Value:
> > > 2.000000
> > > Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value:
> > > 2.000000
> > > Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature,
Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input,
> Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature,
> > Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input,
Value:
> > > 1.000000
> > > Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature,
> Value:
> > > 1.000000
> > > Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Input,
> > Value:
> > > 1.000000
> > > Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: 
> > > Feature,
> > > Value: 1.000000
> > > Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit,
> > Type:
> > > Input, Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit,
> > Type:
> > > Feature, Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type: 
> > > Input,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ShutdownRequested, Type:=20 
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: 
> > > Input,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type:=20 
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
> Type:
> > > Input, Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired,
> Type:
> > > Feature, Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type: 
> > > Input,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.CommunicationLost, Type:=20 
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: 
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.Overload, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature,
Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type:=20

> > > Input,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.VoltageNotRegulated, Type:
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus.ff860080, Type: Feature,
Value:
> > > 0.000000
> > > Path: UPS.PowerSummary.PresentStatus., Type: Input
> > > Path: UPS.PowerSummary.PresentStatus., Type: Input
> > > Path: UPS.PowerSummary.PresentStatus., Type: Input
> > > Path: UPS.PowerSummary.PresentStatus., Type: Feature
> > > Path: UPS.PowerSummary.PresentStatus., Type: Feature
> > > Path: UPS.PowerSummary.PresentStatus., Type: Feature
> > > Path: UPS.Battery.Test, Type: Input, Value: 6.000000
> > > Path: UPS.Battery.Test, Type: Feature, Value: 6.000000
> > > Path: UPS.Battery.APCBattCapBeforeStartup, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.Battery.APCBattCapBeforeStartup, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.Battery.ff86001a, Type: Input, Value: 3.000000
> > > Path: UPS.Battery.ff86001a, Type: Feature, Value: 3.000000
> > > Path: UPS.Battery.ff86001b, Type: Input, Value: 0.000000
> > > Path: UPS.Battery.ff86001b, Type: Feature, Value: 0.000000
> > > Path: UPS.Battery.ManufacturerDate, Type: Input, Value: 
> > > 12106.000000
> > > Path: UPS.Battery.ManufacturerDate, Type: Feature, Value:=20 
> > > 12106.000000
> > > Path: UPS.Battery.RemainingCapacity, Type: Feature, Value:=20 
> > > 100.000000
> > > Path: UPS.Battery.RemainingTimeLimit, Type: Input, Value: 
> > > 120.000000
> > > Path: UPS.Battery.RemainingTimeLimit, Type: Feature, Value:=20 
> > > 120.000000
> > > Path: UPS.Battery.RunTimeToEmpty, Type: Feature, Value: 900.000000
> > > Path: UPS.Battery.Temperature, Type: Feature, Value: 292.899994
> > > Path: UPS.Battery.ConfigVoltage, Type: Feature, Value: 24.000002
> > > Path: UPS.Battery.Voltage, Type: Feature, Value: 27.670002
> > > Path: UPS.Input.Voltage, Type: Feature, Value: 230.400009
> > > Path: UPS.Input.ff860052, Type: Input, Value: 4.000000
> > > Path: UPS.Input.ff860052, Type: Feature, Value: 4.000000
> > > Path: UPS.Input.ff860061, Type: Input, Value: 2.000000
> > > Path: UPS.Input.ff860061, Type: Feature, Value: 2.000000
> > > Path: UPS.Output.PercentLoad, Type: Feature, Value: 67.599998
> > > Path: UPS.Output.Frequency, Type: Feature, Value: 50.000004
> > > Path: UPS.Output.Voltage, Type: Feature, Value: 231.800003
> > > Path: UPS.Output.ConfigVoltage, Type: Input, Value: 230.000000
> > > Path: UPS.Output.ConfigVoltage, Type: Feature, Value: 230.000000
> > > Path: UPS.Output.HighVoltageTransfer, Type: Input, Value: 
> > > 253.000000
> > > Path: UPS.Output.HighVoltageTransfer, Type: Feature, Value:=20 
> > > 253.000000
> > > Path: UPS.Output.LowVoltageTransfer, Type: Input, Value: 
> > > 208.000000
> > > Path: UPS.Output.LowVoltageTransfer, Type: Feature, Value:=20 
> > > 208.000000
> > > Path: UPS.Output.APCDelayBeforeStartup, Type: Input, Value: 
> > > 0.000000
> > > Path: UPS.Output.APCDelayBeforeStartup, Type: Feature, Value:=20 
> > > 0.000000
> > > Path: UPS.Output.APCShutdownAfterDelay, Type: Input, Value:=20 
> > > 90.000000
> > > Path: UPS.Output.APCShutdownAfterDelay, Type: Feature, Value:
> > > 90.000000
> > > Path: UPS.Output.DelayBeforeShutdown, Type: Feature, Value:=20 
> > > -1.000000
> > > Path: UPS.Output.DelayBeforeStartup, Type: Feature, Value: 
> > > -1.000000
> > > Path: UPS.Output.DelayBeforeReboot, Type: Feature, Value:
> > > 16777215.000000
> > > Path: UPS.iProduct, Type: Feature, Value: 5.000000
> > > Path: UPS.iSerialNumber, Type: Feature, Value: 2.000000
> > > Path: UPS.iManufacturer, Type: Feature, Value: 3.000000
> > > Path: UPS.iName, Type: Feature, Value: 6.000000
> > > Path: UPS.APC_UPS_FirmwareRevision, Type: Feature, Value: 7.000000
> > > Path: UPS.APC_USB_FirmwareRevision, Type: Feature, Value: 8.000000
> > > Path: UPS.APCPanelTest, Type: Feature, Value: 1.000000
> > > Path: UPS.ManufacturerDate, Type: Feature, Value: 12106.000000
> > > Path: UPS.ff860027, Type: Feature, Value: 0.000000
> > > Path: UPS.ff860028, Type: Feature, Value: 0.000000
> > > Path: UPS.AudibleAlarmControl, Type: Input, Value: 2.000000
> > > Path: UPS.AudibleAlarmControl, Type: Feature, Value: 2.000000
> > > Path: UPS.PresentStatus.Charging, Type: Input, Value: 0.000000
> > > Path: UPS.PresentStatus.Charging, Type: Feature, Value: 0.000000
> > > Path: UPS.PresentStatus.Discharging, Type: Input, Value: 0.000000
> > > Path: UPS.PresentStatus.Discharging, Type: Feature, Value: 
> > > 0.000000
> > > Path: UPS.PresentStatus.ACPresent, Type: Input, Value: 1.000000
> > > Path: UPS.PresentStatus.ACPresent, Type: Feature, Value: 1.000000
> > > Path: UPS.PresentStatus.BatteryPresent, Type: Input, Value: 
> > > 1.000000
> > > Path: UPS.PresentStatus.BatteryPresent, Type: Feature, Value:=20 
> > > 1.000000
> > > Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
> > Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.BelowRemainingCapacityLimit, Type: 
> > > Feature,
> > > Value: 0.000000
> > > Path: UPS.PresentStatus.ShutdownRequested, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.ShutdownRequested, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.ShutdownImminent, Type: Input, Value:=20 
> > > 0.000000
> > > Path: UPS.PresentStatus.ShutdownImminent, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Input,
> Value:=20
> >=20
> > > 0.000000
> > > Path: UPS.PresentStatus.RemainingTimeLimitExpired, Type: Feature,
> > Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.CommunicationLost, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.CommunicationLost, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.NeedReplacement, Type: Input, Value:=20 
> > > 0.000000
> > > Path: UPS.PresentStatus.NeedReplacement, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.Overload, Type: Input, Value: 0.000000
> > > Path: UPS.PresentStatus.Overload, Type: Feature, Value: 0.000000
> > > Path: UPS.PresentStatus.VoltageNotRegulated, Type: Input, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.VoltageNotRegulated, Type: Feature, Value:
> > > 0.000000
> > > Path: UPS.PresentStatus.ff860080, Type: Input, Value: 0.000000
> > > Path: UPS.PresentStatus.ff860080, Type: Feature, Value: 0.000000
> > > Path: UPS.PresentStatus., Type: Input
> > > Path: UPS.PresentStatus., Type: Input
> > > Path: UPS.PresentStatus., Type: Input
> > > Path: UPS.PresentStatus., Type: Feature
> > > Path: UPS.PresentStatus., Type: Feature
> > > Path: UPS.PresentStatus., Type: Feature Can't find object=20 
> > > UPS.Battery.APCBattReplaceDate Can't find object=20 
> > > UPS.Output.ConfigActivePower Can't find object=20 
> > > UPS.PowerSummary.Charging Can't find object=20 
> > > UPS.PowerSummary.Discharging Can't find object=20 
> > > UPS.PowerSummary.ACPresent Can't find object=20 
> > > UPS.PowerSummary.BelowRemainingCapacityLimit
> > > Can't find object UPS.PowerSummary.ShutdownImminent Can't find=20 
> > > object UPS.PowerSummary.PresentStatus.FullyCharged
> > > Can't find object UPS.Output.Overload Can't find object=20 
> > > UPS.Output.Boost Can't find object UPS.Input.ConfigVoltage 
> > > Can't=20 find object UPS.Input.LowVoltageTransfer Can't find 
> > > object=20 UPS.Input.HighVoltageTransfer Can't find object=20 
> > > UPS.BatterySystem.Battery.Test Can't find object=20 
> > > UPS.BatterySystem.Battery.Test Can't find object=20 
> > > UPS.BatterySystem.Battery.Test Can't find object=20 
> > > UPS.PowerSummary.APCPanelTest Can't find object=20 
> > > UPS.PowerSummary.APCPanelTest Can't find object=20 
> > > UPS.APCGeneralCollection.APCDelayBeforeShutdown
> > > Can't find object UPS.PowerSummary.DelayBeforeStartup
> > > Can't find object UPS.APCGeneralCollection.APCForceShutdown
> > > Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
> > > upsdrv_updateinfo...
> > > dstate_init: sock /var/run/nut/newhidups-auto open on fd 5=20 
> > > upsdrv_updateinfo...
> > > Waiting for notifications...
> > >
> > > =3D>Got 1 HID Objects...
> > > battery.runtime =3D 900
> > > upsdrv_updateinfo...
> > > Waiting for notifications...
> > >
> > > =3D>Got 16 HID Objects...
> > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.
> > >
> > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.
> > >
> > > find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.
> > >
> > > find_hid_info: unknown variable:
> > > UPS.PowerSummary.PresentStatus.ff860080
> > >
> > > find_hid_info: unknown variable:
> > > UPS.PowerSummary.PresentStatus.VoltageNotRegulated
> > >
> > > ups.status =3D !overload
> > > ups.status =3D !replacebatt
> > > find_hid_info: unknown variable:
> > > UPS.PowerSummary.PresentStatus.CommunicationLost
> > >
> > > ups.status =3D !timelimitexp
> > > ups.status =3D !shutdownimm
> > > find_hid_info: unknown variable:
> > > UPS.PowerSummary.PresentStatus.ShutdownRequested
> > >
> > > ups.status =3D !lowbatt
> > > ups.status =3D batterypres
> > > ups.status =3D online
> > > ups.status =3D !dischrg
> > > ups.status =3D !chrg
> > > Segmentation fault
> > >
> >=20
> >=20
> > _______________________________________________
> > Nut-upsdev mailing list
> > Nut-upsdev at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
> >=20
> 
> 
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
> 
> 






More information about the Nut-upsdev mailing list