networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.03k stars 351 forks source link

Tripplite SMART1500RM2UN missing output data #1747

Open timjp692 opened 1 year ago

timjp692 commented 1 year ago

First time posting, I did not see any current issues reporting this when I searched.

Missing output voltage and output power:

# Device dump generated by ./nut-ddl-dump.sh on Wed, 28 Dec 2022 03:11:37 +0000
# upsrw output:
# [battery.charge.low]
# Remaining battery level when UPS switches to LB (percent)
# Type: STRING
# Maximum length: 5
# Value: 10
#
# [input.transfer.high]
# High voltage transfer point (V)
# Type: STRING
# Maximum length: 5
# Value: 0.0
#
# [input.transfer.low]
# Low voltage transfer point (V)
# Type: STRING
# Maximum length: 5
# Value: 0.0
#
# [ups.delay.shutdown]
# Interval to wait after shutdown with delay command (seconds)
# Type: STRING
# Maximum length: 10
# Value: 20
#
# [ups.delay.start]
# Interval to wait before (re)starting the load (seconds)
# Type: STRING
# Maximum length: 10
# Value: 30
# upscmd output:
# Instant commands supported on UPS [ups]:
#
# beeper.disable - Disable the UPS beeper
# beeper.enable - Enable the UPS beeper
# beeper.mute - Temporarily mute the UPS beeper
# beeper.off - Obsolete (use beeper.disable or beeper.mute)
# beeper.on - Obsolete (use beeper.enable)
# load.off - Turn off the load immediately
# load.off.delay - Turn off the load with a delay (seconds)
# load.on - Turn on the load immediately
# load.on.delay - Turn on the load with a delay (seconds)
# reset.watchdog - Reset watchdog timer
# shutdown.reboot - Shut down the load briefly while rebooting the UPS
# shutdown.return - Turn off the load and return when power is back
# shutdown.stayoff - Turn off the load and remain off
# shutdown.stop - Stop a shutdown in progress
# test.battery.start.deep - Start a deep battery test
# test.battery.start.quick - Start a quick battery test
# test.battery.stop - Stop the battery test

# upsc output:
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 30
battery.runtime: 1378
battery.temperature: 30.9
battery.type: PbAC
battery.voltage: 40.9
battery.voltage.nominal: 36.0
device.mfr: Tripp Lite
device.model: TRIPP LITE SMART1500RM2UN
device.serial: 2726DY0SM887600561
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: auto
driver.version: 2.8.0
driver.version.data: TrippLite HID 0.84
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.26 (API: 0x1000109)
input.frequency: 59.6
input.transfer.high: 0.0
input.transfer.low: 0.0
input.voltage: 116.2
input.voltage.nominal: 120
output.current: 3.0
output.frequency: 59.6
output.frequency.nominal: 60
output.voltage: 0.0
output.voltage.nominal: 120
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 25
ups.mfr: Tripp Lite
ups.model: TRIPP LITE SMART1500RM2UN
ups.power: 0.0
ups.power.nominal: 1500
ups.productid: 3015
ups.serial: 2726DY0SM887600561
ups.status: OL
ups.test.result: Done and passed
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
ups.vendorid: 09ae
ups.watchdog.status: 0

Driver-init debug:

  12.315077     [D1] upsdrv_updateinfo...
  12.357675     [D2] file_report_buffer: expected 2 bytes, but got 512 instead
  12.357722     [D3] Report[err]: (512 bytes) => 34 64 00 00 00 00 00 00 e0 0b c9 cd f8 55 00 00
  12.357741     [D3]  37 13 a4 cd f8 55 00 00 80 a1 4a 71 fd 7f 00 00 a8 0b c9 cd f8 55 00 00 d0
  12.357759     [D3]  53 c9 cd f8 55 00 00 90 a6 4a 71 fd 7f 00 00 5e e2 a3 cd f8 55 00 00 18 00
  12.357777     [D3]  00 00 30 00 00 00 70 a3 4a 71 fd 7f 00 00 90 a2 4a 71 fd 7f 00 00 00 00 00
  12.357794     [D3]  00 00 00 00 00 32 37 32 36 44 59 30 53 4d 38 38 37 36 30 30 35 36 31 00 30
  12.357853     [D3]  52 4d 32 55 4e 20 00 00 00 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 00
  12.357893     [D3]  00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 ff ff ff ff 00 00
  12.357943     [D3]  00 00 00 7a c0 15 b7 97 71 f0 ff ff ff ff fd 7f 00 00 e0 32 bf 76 4b 7f 00
  12.357997     [D3]  00 00 00 00 00 00 00 00 00 e0 32 bf 76 4b 7f 00 00 00 00 00 00 00 00 00 00
  12.358053     [D3]  73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a c0 15 b7 97 71 f0 ff
  12.358105     [D3]  00 00 00 00 00 00 00 dc bb a3 76 4b 7f 00 00 01 00 00 00 00 00 00 00 00 10
  12.358158     [D3]  00 00 00 00 00 00 0c 00 00 00 00 00 00 00 00 7a c0 15 b7 97 71 f0 60 6c bf
  12.358222     [D3]  76 4b 7f 00 00 00 7a c0 15 b7 97 71 f0 ad 14 a4 cd f8 55 00 00 09 00 00 00
  12.358277     [D3]  00 00 00 00 ad 14 a4 cd f8 55 00 00 00 00 00 00 00 00 00 00 90 a4 4a 71 fd
  12.358324     [D3]  7f 00 00 70 64 c9 cd f8 55 00 00 90 a6 4a 71 fd 7f 00 00 00 7a c0 15 b7 97
  12.358376     [D3]  71 f0 20 00 00 00 30 00 00 00 00 7a c0 15 b7 97 71 f0 d0 f2 c8 cd f8 55 00
  12.358419     [D3]  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 73 00 00 00 00 00 00 00
  12.358461     [D3]  00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 c0 6c bf 76 4b 7f 00 00 18
  12.358506     [D3]  00 00 00 00 00 00 00 60 6c bf 76 4b 7f 00 00 b0 ff ff ff ff ff ff ff 90 a4
  12.358561     [D3]  4a 71 fd 7f 00 00 2e 3a b1 76 4b 7f 00 00 10 a3 4a 71 fd 7f 00 00 00 00 00
  12.358603     [D3]  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  12.358652     [D1] Got 1 HID objects...
  12.358715     [D3] Report[buf]: (2 bytes) => 34 64
  12.358745     [D5] PhyMax = 0, PhyMin = 0, LogMax = 100, LogMin = 0
  12.358773     [D5] Unit = 00000000, UnitExp = 0
  12.358824     [D5] Exponent = 0
  12.358861     [D5] hid_lookup_path: 00840004 -> UPS
  12.358907     [D5] hid_lookup_path: 00840024 -> PowerSummary
  12.358922     [D5] hid_lookup_path: 00850066 -> RemainingCapacity
  12.358965     [D2] Path: UPS.PowerSummary.RemainingCapacity, Type: Input, ReportID: 0x34, Offset: 0, Size: 8, Value: 100
  12.359014     [D1] Quick update...
  12.359053     [D4] Entering libusb_get_report
  12.360187     [D3] Report[get]: (3 bytes) => 61 ff ff
  12.360221     [D5] PhyMax = 0, PhyMin = 0, LogMax = 32767, LogMin = -1
  12.360234     [D5] Unit = 00001001, UnitExp = 0
  12.360246     [D5] Exponent = 0
  12.360261     [D2] Path: UPS.OutletSystem.Outlet.DelayBeforeStartup, Type: Feature, ReportID: 0x61, Offset: 0, Size: 16, Value: -1
  12.360277     [D4] Entering libusb_get_report
  12.361298     [D3] Report[get]: (3 bytes) => 15 ff ff
  12.361361     [D5] PhyMax = 0, PhyMin = 0, LogMax = 32767, LogMin = -1
  12.361375     [D5] Unit = 00001001, UnitExp = 0
  12.361387     [D5] Exponent = 0
  12.361402     [D2] Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: -1
  12.361418     [D4] Entering libusb_get_report
  12.362455     [D3] Report[get]: (3 bytes) => 17 ff ff
  12.362495     [D5] PhyMax = 0, PhyMin = 0, LogMax = 32767, LogMin = -1
  12.362508     [D5] Unit = 00001001, UnitExp = 0
  12.362520     [D5] Exponent = 0
  12.362535     [D2] Path: UPS.OutletSystem.Outlet.DelayBeforeReboot, Type: Feature, ReportID: 0x17, Offset: 0, Size: 16, Value: -1
  12.362553     [D4] Entering libusb_get_report
  12.363702     [D3] Report[get]: (4 bytes) => 32 00 00 09
  12.363739     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.363753     [D5] Unit = 00000000, UnitExp = 0
  12.363806     [D5] Exponent = 0
  12.363908     [D5] hu_find_infoval: found online (value: 1)
  12.363936     [D5] process_boolean_info: online
  12.363966     [D3] Report[buf]: (4 bytes) => 32 00 00 09
  12.364006     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.364042     [D5] Unit = 00000000, UnitExp = 0
  12.364129     [D5] Exponent = 0
  12.364169     [D2] Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x32, Offset: 18, Size: 1, Value: 0
  12.364183     [D5] hu_find_infoval: found !lowbatt (value: 0)
  12.364224     [D5] process_boolean_info: !lowbatt
  12.364273     [D3] Report[buf]: (4 bytes) => 32 00 00 09
  12.364317     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.364368     [D5] Unit = 00000000, UnitExp = 0
  12.364402     [D5] Exponent = 0
  12.364440     [D2] Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, ReportID: 0x32, Offset: 19, Size: 1, Value: 1
  12.364478     [D5] hu_find_infoval: found fullycharged (value: 1)
  12.364543     [D5] process_boolean_info: fullycharged
  12.364584     [D3] Report[buf]: (4 bytes) => 32 00 00 09
  12.364630     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.364696     [D5] Unit = 00000000, UnitExp = 0
  12.364732     [D5] Exponent = 0
  12.364777     [D2] Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x32, Offset: 20, Size: 1, Value: 0
  12.364833     [D5] hu_find_infoval: found !chrg (value: 0)
  12.364890     [D5] process_boolean_info: !chrg
  12.364931     [D3] Report[buf]: (4 bytes) => 32 00 00 09
  12.364984     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.365009     [D5] Unit = 00000000, UnitExp = 0
  12.365047     [D5] Exponent = 0
  12.365083     [D2] Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x32, Offset: 21, Size: 1, Value: 0
  12.365127     [D5] hu_find_infoval: found !dischrg (value: 0)
  12.365188     [D5] process_boolean_info: !dischrg
  12.365217     [D3] Report[buf]: (4 bytes) => 32 00 00 09
  12.365250     [D5] PhyMax = 0, PhyMin = 0, LogMax = 1, LogMin = 0
  12.365312     [D5] Unit = 00000000, UnitExp = 0
  12.365378     [D5] Exponent = 0
  12.365429     [D2] Path: UPS.PowerSummary.PresentStatus.FullyDischarged, Type: Feature, ReportID: 0x32, Offset: 22, Size: 1, Value: 0
  12.365476     [D5] hu_find_infoval: found !depleted (value: 0)
  12.365525     [D5] process_boolean_info: !depleted
jimklimov commented 1 year ago

CC @dzomaya @aquette

timjp692 commented 1 year ago

This might also be an issue with the UPS, I do not see a load value in the web interface (WEBCARDLX) I also do not see it being read from the USB interface. I am going to try and find a good time to do a ups reboot.

timjp692 commented 1 year ago

You guys can close this if you want. Seems the ups likes to stop reporting load to even the network card. Thanks for all the work you do for Nut.