phoenix-upshid/nut-reverseengineering.md

688 B

command used:

# /lib/nut/usbhid-ups -a upsname -DDD

report id 0x06

06 64 e4 08 RemainingCapacity, Offset: 0, Size: 8, Value: 100 0x64 => 100

06 64 e4 08 RunTimeToEmpty, Offset: 8, Size: 16, Value: 2276 0x08e4 => 2276

report id 0x01

01 01 00 01 00 01 00 00 ACPresent, Offset: 0, Size: 8, Value: 1 0x01 => 1 => true

01 01 00 01 00 01 00 00 BelowRemainingCapacityLimit, Offset: 8, Size: 8, Value: 0 0x00 => 0 => false

01 01 00 01 00 01 00 00 Charging, Offset: 16, Size: 8, Value: 1 0x01 => 1 => true

01 01 00 01 00 01 00 00 Discharging, Offset: 24, Size: 8, Value: 0 0x00 => 0 => false