Hello everyone!
If this message was posted twice, my apologies. I'm having issues with my
webmail today...
I am using the testing version of NUT from SVN at changeset 582. I have
successfully created a stub for newhidups driver for my Dynex DX-800U UPS, but
I am completely lost on the customization of it. I've followed the
hid-subdrivers.txt instructions and I understand I need to map all the
unmapped.* lines of my dynex-hid.c to NUT functions. However, I can't make
heads or tails of what I'm supposed to change. Can someone take some time to
help a struggling noob? Here's some info I hope helps:
# /usr/src/nut-testing# pico /usr/local/ups/etc/ups.conf
[mythbox]
driver = newhidups
port = /dev/usb/hiddev0
desc = Living Room
EOF
/usr/src/nut-testing# drivers/newhidups -DD -u root /dev/usb/hiddev0
debug level is '2'
Checking device (/) (005/001)
- VendorID:
- ProductID:
- Manufacturer: Linux 2.6.15-chw-2 ehci_hcd
- Product: EHCI Host Controller
- Serial Number: :00:1d.7
- Bus: 005
Trying to match device
Device does not match - skipping
Checking device (/) (004/001)
- VendorID:
- ProductID:
- Manufacturer: Linux 2.6.15-chw-2 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: :00:1d.3
- Bus: 004
Trying to match device
Device does not match - skipping
Checking device (/) (003/001)
- VendorID:
- ProductID:
- Manufacturer: Linux 2.6.15-chw-2 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: :00:1d.2
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (/) (002/001)
- VendorID:
- ProductID:
- Manufacturer: Linux 2.6.15-chw-2 uhci_hcd
- Product: UHCI Host Controller
- Serial Number: :00:1d.1
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0764/0501) (001/003)
- VendorID: 0764
- ProductID: 0501
- Manufacturer: CPS
- Product: DX-800U
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
HID descriptor retrieved (Reportlen = 374)
Report descriptor retrieved (Reportlen = 374)
Found HID device
Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)
Report Descriptor size = 374
Detected a UPS: CPS/DX-800U
Using subdriver: APC/CyberPower HID 0.9
Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1.00
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 2.00
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 4.00
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value: 3.00
Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.00
Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.00
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value: 100.00
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value: 5.00
Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, Value: 10.00
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, Value: 20.00
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, Value: 10.00
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value: 100.00
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 120.00
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 120.00
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value: 240.00
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value: 240.00
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, Value: 300.00
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, Value: 300.00
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value: 12.00
Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 21.21
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, Value: 1.00
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value: 0.00
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, Value: 0.00
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input,
Value: 1.00
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, Value: 1.00
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input,
Value: 1.00
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value: 1.00
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value: 0.00
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value: 0.00
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type:
Feature, Value: 1.00
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, Value:
1.00
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature,
Value: 1.00
Path: UPS.PowerSummary.PresentStatus., Type: Input
Path: UPS.PowerSummary.PresentStatus., Type: Feature
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2.00
Path: