[Nut-upsdev] TrippLite USB UPS
Patrick
cso at satcharters.com
Mon Jan 22 03:30:08 CET 2007
Hi Peter, Thanks for a quick reply too. I knew you guys were good, but had no
idea!
On Sunday 21 January 2007 04:32 pm, you wrote:
> Patrick,
>
> the reason your device is not supported is that we have never seen
> this device (09AE/4003) before.
I thought this might be the case since I could find no mention of anything
like it.
>
> Version 2.0.1 is ancient; USB support has greatly improved since
> then.
Gathered that. That is why I was trying to get 2.0.5 or even 2.1 to work. I
knew I was flirting with diaster by moving things around, but it never hurts
to try. This laptop has been sitting on a shelf for a while. I have no qualms
about thowing the CD back in and reloading the whole shebang once I break it
(I've already had to do that once, but that was last weekend playing with
something different).
As for building from the SVN source, I couldn't make that work. autoreconf
dropped out with automake errors. After several tries and lots of research,
found out I had versions of several things that were not the correct
versions. I have corrected those problems and it appears I have compiled the
thing correctly. See below...
>
> To build from SVN sources, do "autoreconf", then "./configure
> [options]". What options you need depends on what you want to build
> and where you want it installed. See "./configure --help". Probably
> --without-all and --with-usb are reasonable.
>
> Careful when moving sources between your SVN copy and your debian
> sources: some drivers (in particular newhidups) have been renamed (it
> is now called usbhid-ups in SVN). Also, the drivers from one version
> may not always be compatible with upsd from another version.
>
> Here is what I recommend you to do:
>
> * update your SVN sources to the very newest (I just committed a
> change): "svn update"
>
> * run the hidups-ups (formerly newhidups) driver as follows:
>
> hidups-ups -u root -DD -x productid=4003 auto
>
> Report what you see, particularly lines starting with "Path:".
>
> -- Peter
I assume you mean:
usbhid-ups -u root -DD -x productid=4003 auto
That command did indeed produce significant output. Several of the lines are
long. I will be happy to attach the output file if you'd like. In the
meantime, here you go:
# ./usbhid-ups -u root -DD -x productid=4003 auto
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)
debug level is '2'
Checking device (09AE/4003) (002/002)
- VendorID: 09ae
- ProductID: 4003
- Manufacturer: Tripp Lite
- Product: TRIPP LITE UPS
- Serial Number: 9530ALCPS519400017
- Bus: 002
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 1028)
Report descriptor retrieved (Reportlen = 1028)
Found HID device
Report Descriptor size = 1028
Detected a UPS: Tripp Lite /TRIPP LITE UPS
Using subdriver: TrippLite HID 0.1 (experimental)
Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x28, Offset: 0,
Size: 8, Value: 6.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, ReportID: 0x29,
Offset: 0, Size: 8, Value: 20.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, ReportID: 0x2b,
Offset: 0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.Input.ConfigVoltage, Type: Feature, ReportID: 0x30,
Offset: 0, Size: 8, Value: 120.000000
Path: UPS.PowerSummary.Input.Voltage, Type: Feature, ReportID: 0x31,
Offset: 0, Size: 16, Value: 124.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x11,
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x2a,
Offset: 0, Size: 8, Value: 10.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, ReportID: 0x62,
Offset: 0, Size: 8, Value: 4.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, ReportID: 0x33,
Offset: 0, Size: 8, Value: 2.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x34,
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x34,
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID:
0x3a, Offset: 0, Size: 8, Value: 25.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, ReportID: 0x37,
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, ReportID: 0x36,
Offset: 0, Size: 8, Value: 100.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID:
0x38, Offset: 0, Size: 8, Value: 50.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, ReportID:
0x3b, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, ReportID:
0x39, Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, ReportID: 0x2c,
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, ReportID: 0x35,
Offset: 0, Size: 16, Value: 1910.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, ReportID: 0x35,
Offset: 0, Size: 16, Value: 1910.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Input,
ReportID: 0x32, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Input,
ReportID: 0x32, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, ReportID:
0x32, Offset: 16, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Input, ReportID: 0x32, Offset: 18, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, ReportID:
0x32, Offset: 19, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, ReportID:
0x32, Offset: 20, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, ReportID:
0x32, Offset: 21, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyDischarged, Type: Input,
ReportID: 0x32, Offset: 22, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Input,
ReportID: 0x32, Offset: 23, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.InternalFailure, Type: Feature,
ReportID: 0x32, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature,
ReportID: 0x32, Offset: 9, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID:
0x32, Offset: 16, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, ReportID: 0x32, Offset: 18, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature,
ReportID: 0x32, Offset: 19, Size: 1, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID:
0x32, Offset: 20, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID:
0x32, Offset: 21, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyDischarged, Type: Feature,
ReportID: 0x32, Offset: 22, Size: 1, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature,
ReportID: 0x32, Offset: 23, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.ConfigVoltage, Type: Feature, ReportID:
0x04, Offset: 0, Size: 16, Value: 48.000000
Path: UPS.BatterySystem.Battery.Voltage, Type: Feature, ReportID: 0x20,
Offset: 0, Size: 16, Value: 52.500000
Path: UPS.BatterySystem.Battery.PresentStatus.BelowRemainingCapacityLimit,
Type: Feature, ReportID: 0x23, Offset: 2, Size: 1
Path: UPS.BatterySystem.Battery.PresentStatus.FullyCharged, Type: Feature,
ReportID: 0x23, Offset: 3, Size: 1, Value: 1.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Charging, Type: Feature,
ReportID: 0x23, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.PresentStatus.Discharging, Type: Feature,
ReportID: 0x23, Offset: 5, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.PresentStatus.FullyDischarged, Type:
Feature, ReportID: 0x23, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.PresentStatus.NeedReplacement, Type:
Feature, ReportID: 0x23, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.BatterySystem.Battery.RemainingCapacity, Type: Feature,
ReportID: 0x21, Offset: 0, Size: 8, Value: 100.000000
Path: UPS.BatterySystem.Test, Type: Feature, ReportID: 0x10, Offset: 0,
Size: 8, Value: 0.000000
Path: UPS.BatterySystem.Temperature, Type: Feature, ReportID: 0x1a,
Offset: 0, Size: 16, Value: 298.000000
Path: UPS.Flow.ConfigVoltage, Type: Feature, ReportID: 0x01, Offset: 0,
Size: 8, Value: 120.000000
Path: UPS.Flow.ConfigFrequency, Type: Feature, ReportID: 0x02, Offset: 0,
Size: 8, Value: 60.000000
Can't retrieve Report 85 (32): Broken pipe
Path: UPS.Flow.ffff0097, Type: Feature, ReportID: 0x55, Offset: 0, Size: 8
Path: UPS.Flow.ConfigApparentPower, Type: Feature, ReportID: 0x03, Offset:
0, Size: 16, Value: 1500.000000
Path: UPS.PowerConverter.Input.Voltage, Type: Feature, ReportID: 0x18,
Offset: 0, Size: 16, Value: 124.000000
Path: UPS.PowerConverter.Input.Frequency, Type: Feature, ReportID: 0x19,
Offset: 0, Size: 16, Value: 59.900002
Path: UPS.PowerConverter.Output.Voltage, Type: Feature, ReportID: 0x1b,
Offset: 0, Size: 16, Value: 120.200005
Path: UPS.PowerConverter.Output.Frequency, Type: Feature, ReportID: 0x1c,
Offset: 0, Size: 16, Value: 59.900002
Path: UPS.PowerConverter.Output.Current, Type: Feature, ReportID: 0x46,
Offset: 0, Size: 16, Value: 2.800000
Path: UPS.PowerConverter.Output.ActivePower, Type: Feature, ReportID:
0x47, Offset: 0, Size: 16, Value: 302.000000
Path: UPS.PowerConverter.Output.LowVoltageTransfer, Type: Feature,
ReportID: 0x06, Offset: 0, Size: 16, Value: 65.000000
Path: UPS.PowerConverter.Output.HighVoltageTransfer, Type: Feature,
ReportID: 0x09, Offset: 0, Size: 16, Value: 138.000000
Path: UPS.PowerConverter.Output.ffff0057, Type: Feature, ReportID: 0x07,
Offset: 0, Size: 16, Value: 70.000000
Path: UPS.PowerConverter.Output.ffff0058, Type: Feature, ReportID: 0x08,
Offset: 0, Size: 16, Value: 65.000000
Path: UPS.PowerConverter.Output.ffff0059, Type: Feature, ReportID: 0x0a,
Offset: 0, Size: 16, Value: 138.000000
Path: UPS.PowerConverter.Output.ffff005a, Type: Feature, ReportID: 0x0b,
Offset: 0, Size: 16, Value: 133.000000
Path: UPS.PowerConverter.PresentStatus.VoltageOutOfRange, Type: Feature,
ReportID: 0x22, Offset: 0, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Buck, Type: Feature, ReportID:
0x22, Offset: 1, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Boost, Type: Feature, ReportID:
0x22, Offset: 2, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Overload, Type: Feature, ReportID:
0x22, Offset: 4, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.Used, Type: Feature, ReportID:
0x22, Offset: 5, Size: 1, Value: 1.000000
Path: UPS.PowerConverter.PresentStatus.OverTemperature, Type: Feature,
ReportID: 0x22, Offset: 6, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.InternalFailure, Type: Feature,
ReportID: 0x22, Offset: 7, Size: 1, Value: 0.000000
Path: UPS.PowerConverter.PresentStatus.AwaitingPower, Type: Feature,
ReportID: 0x22, Offset: 14, Size: 1, Value: 0.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature,
ReportID: 0x15, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeStartup, Type: Feature, ReportID:
0x61, Offset: 0, Size: 16, Value: 0.000000
Path: UPS.OutletSystem.Outlet.DelayBeforeReboot, Type: Feature, ReportID:
0x17, Offset: 0, Size: 16, Value: -1.000000
Path: UPS.OutletSystem.Outlet.ActivePower, Type: Feature, ReportID: 0x54,
Offset: 0, Size: 16, Value: 302.000000
Path: UPS.OutletSystem.Outlet.PercentLoad, Type: Feature, ReportID: 0x1e,
Offset: 0, Size: 8, Value: 25.000000
Path: UPS.OutletSystem.Outlet.ffff0056, Type: Feature, ReportID: 0x16,
Offset: 0, Size: 16, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0081, Type: Feature, ReportID: 0x41,
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0091, Type: Feature, ReportID: 0x51,
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0092, Type: Feature, ReportID: 0x52,
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0093, Type: Feature, ReportID: 0x53,
Offset: 0, Size: 8, Value: 0.000000
Path: UPS.OutletSystem.Outlet.ffff0094, Type: Feature, ReportID: 0x56,
Offset: 0, Size: 8, Value: 1.000000
Path: UPS.OutletSystem.Outlet.ffff0095, Type: Feature, ReportID: 0x67,
Offset: 0, Size: 8, Value: 3.000000
Path: UPS.OutletSystem.Outlet.ffff0096, Type: Feature, ReportID: 0x68,
Offset: 0, Size: 8, Value: 3.000000
Path: UPS.OutletSystem.Outlet.ffff0098, Type: Feature, ReportID: 0x69,
Offset: 0, Size: 8, Value: 0.000000
Can't retrieve Report 106 (32): Broken pipe
Path: UPS.OutletSystem.Outlet.ffff0099, Type: Feature, ReportID: 0x6a,
Offset: 0, Size: 8
Can't retrieve Report 107 (32): Broken pipe
Path: UPS.OutletSystem.Outlet.ffff009a, Type: Feature, ReportID: 0x6b,
Offset: 0, Size: 8
Path: UPS.ffff0010.[1].ffff0075, Type: Feature, ReportID: 0x0d, Offset: 0,
Size: 8, Value: 8.000000
Path: UPS.ffff0010.[1].ffff0076, Type: Feature, ReportID: 0x0e, Offset: 0,
Size: 8, Value: 0.000000
Path: UPS.ffff0010.[1].ffff007c, Type: Feature, ReportID: 0x0f, Offset: 0,
Size: 8, Value: 208.000000
Path: UPS.ffff0010.[1].ffff009b, Type: Feature, ReportID: 0x42, Offset: 0,
Size: 8, Value: 0.000000
Path: UPS.ffff0010.[1].ffff009c, Type: Feature, ReportID: 0x43, Offset: 0,
Size: 8, Value: 1.000000
Path: UPS.ffff0010.[1].ffff007d, Type: Feature, ReportID: 0x6c, Offset: 0,
Size: 16, Value: 16387.000000
dstate_setflags: base variable (ups.test.result) does not exist
Can't find object UPS.PowerSummary.PresentStatus.TLACPresent
Can't find object UPS.PowerSummary.PresentStatus.TLDischarging
Can't find object UPS.PowerSummary.PresentStatus.TLCharging
Can't find object UPS.PowerSummary.PresentStatus.TLNeedReplacement
Can't find object UPS.PowerSummary.Voltage
upsdrv_updateinfo...
dstate_init: sock /var/state/ups/usbhid-ups-auto open on fd 5
upsdrv_updateinfo...
Waiting for notifications...
=>Got 1 HID Objects...
battery.charge = 100
upsdrv_updateinfo...
Waiting for notifications...
=>Got 24 HID Objects...
find_hid_info: unknown variable: UPS.PowerSummary.PresentStatus.00000000
^c
More information about the Nut-upsdev
mailing list