usbhidctl and APC UPS under FreeBSD

This is the output of usbhidctl when using the usage table.

For what it's worth, if we do not provide the -a option, the zeroes and the warning at the end of the output is not produced.

usbhidctl -avnr -f /dev/uhid0 -t usb_hid_usages
Report descriptor:
Collection page=__APC_Power_Device usage=UPS
Collection page=__APC_Power_Device usage=Sink
Feature size=8 count=1 page=__APC_Power_Device usage=0x00fe, logical range 0..255
Feature size=8 count=1 page=__APC_Power_Device usage=0x00ff, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=iDeviceChemistery, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=0x008f, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=Rechargeable, logical range 0..255
Input   size=8 count=1 page=__APC_Battery_System usage=Charging, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=Charging, logical range 0..255
Input   size=8 count=1 page=__APC_Battery_System usage=Discharging, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=Discharging, logical range 0..255
Input   size=8 count=1 page=0xff86 usage=0x0060, logical range 0..255
Feature size=8 count=1 page=0xff86 usage=0x0060, logical range 0..255
Feature size=16 count=1 page=__APC_Battery_System usage=ManufacturerDate, logical range 0..65535
Feature size=16 count=1 page=__APC_Power_Device usage=ConfigVoltage, logical range 0..65535, unit=0xf0d121 exp=5
Feature size=16 count=1 page=__APC_Power_Device usage=Voltage, logical range 0..65535, unit=0xf0d121 exp=5
Feature size=8 count=1 page=__APC_Power_Device usage=0x00fd, logical range 0..255
Feature size=8 count=1 page=__APC_Battery_System usage=CapacityMode, logical range 0..255
Input   size=8 count=1 page=__APC_Battery_System usage=RemainingCapacity, logical range 0..100
Feature size=8 count=1 page=__APC_Battery_System usage=RemainingCapacity, logical range 0..100
Input   size=16 count=1 page=__APC_Battery_System usage=RunTimeToEmpty, logical range 0..65535, unit=0x1001 exp=0
Feature size=16 count=1 page=__APC_Battery_System usage=RunTimeToEmpty, logical range 0..65535, unit=0x1001 exp=0
Feature size=8 count=1 page=__APC_Battery_System usage=DesignCapacity, logical range 0..100
Feature size=8 count=1 page=__APC_Battery_System usage=FullChargeCapacity, logical range 0..100
Feature size=8 count=1 page=__APC_Battery_System usage=WarningCapacityLimit, logical range 0..100
Feature size=8 count=1 page=__APC_Battery_System usage=CapacityGranularity2, logical range 0..100
Feature size=8 count=1 page=__APC_Battery_System usage=RemainingCapacityLimit, logical range 1..100
Feature size=8 count=1 page=__APC_Battery_System usage=CapacityGranularity1, logical range 0..100
Input   size=8 count=1 page=__APC_Battery_System usage=ACPresent, logical range 0..1
Feature size=8 count=1 page=__APC_Battery_System usage=ACPresent, logical range 0..1
Input   size=8 count=1 page=__APC_Battery_System usage=BelowRemainingCapacityLimit, logical range 0..1
Feature size=8 count=1 page=__APC_Battery_System usage=BelowRemainingCapacityLimit, logical range 0..1
Input   size=8 count=1 page=__APC_Power_Device usage=ShutdownImminent, logical range 0..1
Feature size=8 count=1 page=__APC_Power_Device usage=ShutdownImminent, logical range 0..1
Feature size=16 count=1 page=__APC_Power_Device usage=DelayBeforeShutdown, logical range -1..32767, unit=0x1001 exp=0
Collection page=__APC_Power_Device usage=PresentStatus
Input   size=1 count=1 page=__APC_Battery_System usage=Charging, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=Charging, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=Discharging, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=Discharging, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=ACPresent, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=ACPresent, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=BatteryPresent, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=BatteryPresent, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=BelowRemainingCapacityLimit, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=BelowRemainingCapacityLimit, logical range 0..1
Input   size=1 count=1 page=__APC_Power_Device usage=ShutdownImminent, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=ShutdownImminent, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=RemainingTimeLimitExpired, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=RemainingTimeLimitExpired, logical range 0..1
Input   size=1 count=1 page=__APC_Power_Device usage=0x0073, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=0x0073, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=NeedReplacement, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=NeedReplacement, logical range 0..1
Input   size=1 count=1 page=__APC_Power_Device usage=Overload, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=Overload, logical range 0..1
Input   size=1 count=1 page=__APC_Battery_System usage=VoltageNotRegulated, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=VoltageNotRegulated, logical range 0..1
Input   size=1 count=21 page=0x0000 usage=0x0000 Const, logical range 0..1
Feature size=1 count=21 page=0x0000 usage=0x0000 Const, logical range 0..1
End collection
Feature size=16 count=1 page=__APC_Battery_System usage=RemainingTimeLimit, logical range 0..65535, unit=0x1001 exp=0
Feature size=8 count=1 page=__APC_Power_Device usage=0x005a, logical range 1..3
End collection
Collection page=__APC_Power_Device usage=Battery
Feature size=24 count=1 page=0xff86 usage=0x0016, logical range 0..16777215
Feature size=16 count=1 page=__APC_Battery_System usage=ManufacturerDate, logical range 0..65535
Input   size=8 count=1 page=__APC_Power_Device usage=Test, logical range 0..6
Feature size=8 count=1 page=__APC_Power_Device usage=Test, logical range 0..6
Feature size=8 count=1 page=__APC_Battery_System usage=RemainingCapacity, logical range 0..100
Feature size=16 count=1 page=__APC_Battery_System usage=RunTimeToEmpty, logical range 0..65535, unit=0x1001 exp=0
Feature size=16 count=1 page=__APC_Battery_System usage=RemainingTimeLimit, logical range 0..65535, unit=0x1001 exp=0
Feature size=16 count=1 page=__APC_Power_Device usage=ConfigVoltage, logical range 0..65535, unit=0xf0d121 exp=5
Feature size=16 count=1 page=__APC_Power_Device usage=Voltage, logical range 0..65535, unit=0xf0d121 exp=5
Feature size=8 count=1 page=0xff86 usage=0x0024, logical range -23..-2
Feature size=32 count=1 page=0xff86 usage=0x0018, logical range -2147483647..2147483647
End collection
Collection page=__APC_Power_Device usage=Input
Feature size=8 count=1 page=__APC_Power_Device usage=ConfigVoltage, logical range 0..255, unit=0xf0d121 exp=7
Feature size=16 count=1 page=__APC_Power_Device usage=Voltage, logical range 0..255, unit=0xf0d121 exp=7
Feature size=16 count=1 page=__APC_Power_Device usage=LowVoltageTransfer, logical range 94..104, unit=0xf0d121 exp=7
Feature size=16 count=1 page=__APC_Power_Device usage=HighVoltageTransfer, logical range 128..138, unit=0xf0d121 exp=7
Feature size=8 count=1 page=0xff86 usage=0x0024, logical range -86..-2
Feature size=8 count=1 page=0xff86 usage=0x0061, logical range 0..2
Feature size=8 count=1 page=0xff86 usage=0x0052, logical range 0..13
End collection
Collection page=0xff86 usage=0x0005
Feature size=8 count=1 page=0xff86 usage=0x007c, logical range 0..1
Feature size=16 count=1 page=0xff86 usage=0x007d, logical range -1..32767, unit=0x1001 exp=0
Feature size=16 count=1 page=__APC_Power_Device usage=DelayBeforeShutdown, logical range -1..32767, unit=0x1001 exp=0
End collection
Collection page=__APC_Power_Device usage=PowerConverter
Feature size=8 count=1 page=__APC_Power_Device usage=PercentLoad, logical range 0..100
Feature size=8 count=1 page=0xff86 usage=0x0024, logical range -66..-2
Feature size=16 count=1 page=__APC_Power_Device usage=ConfigActivePower, logical range 0..65535, unit=0xffffd121 exp=7
End collection
Collection page=0xff86 usage=0x0001
Feature size=16 count=1 page=0xff86 usage=0x0023, logical range 0..65535
Feature size=8 count=1 page=0xff86 usage=0x0026, logical range -124..-116
Feature size=32 count=1 page=0xff86 usage=0x0025, logical range -2147483647..2147483647
End collection
Feature size=8 count=1 page=__APC_Power_Device usage=0x00fe, logical range 0..255
Feature size=8 count=1 page=0xff86 usage=0x0042, logical range 0..255
Feature size=8 count=1 page=__APC_Power_Device usage=0x00ff, logical range 0..255
Feature size=8 count=1 page=__APC_Power_Device usage=0x00fd, logical range 0..255
Feature size=16 count=1 page=__APC_Battery_System usage=ManufacturerDate, logical range 0..65535
Collection page=__APC_Power_Device usage=PresentStatus
Feature size=1 count=1 page=__APC_Battery_System usage=Charging, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=Discharging, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=ACPresent, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=BatteryPresent, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=BelowRemainingCapacityLimit, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=ShutdownImminent, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=RemainingTimeLimitExpired, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=0x0073, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=NeedReplacement, logical range 0..1
Feature size=1 count=1 page=__APC_Power_Device usage=Overload, logical range 0..1
Feature size=1 count=1 page=__APC_Battery_System usage=VoltageNotRegulated, logical range 0..1
Feature size=1 count=21 page=0x0000 usage=0x0000 Const, logical range 0..1
End collection
Feature size=8 count=1 page=0xff86 usage=0x0072, logical range 0..1
Feature size=8 count=1 page=__APC_Power_Device usage=0x005a, logical range 1..3
Feature size=16 count=1 page=0xff86 usage=0x0029, logical range 0..65535
Feature size=32 count=1 page=0xff86 usage=0x002a, logical range -2147483647..2147483647
End collection
Total   input size 0 bytes
Total  output size 0 bytes
Total feature size 0 bytes
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
usbhidctl: device does not support immediate mode, only changes reported.