[Nut-upsdev] Re: CyberPower 685AVR and newhidups

Scott Alfter scott at alfter.us
Wed Oct 26 17:55:45 UTC 2005


(It took me a little while to get back to this...headed out of town over the 
weekend, and I've been tied up with other stuff since then.)

Peter Selinger wrote:
> Please test this. Run the driver as:
> 
> drivers/newhidups -DD -u root -x vendorid=0764 auto
> 
> (without the -x generic option from last time, as your model is now
> supported).

Here's what it produced as output before I killed it:

Network UPS Tools: New USB/HID UPS driver 0.28 (2.1.0)

debug level is '2'
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: Linux 2.6.9 uhci_hcd
- Product: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
- Serial Number: 0000:00:07.3
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0764/0501) (001/002)
- VendorID: 0764
- ProductID: 0501
- Manufacturer: CPS
- Product: UPS BF700
- Serial Number: unknown
- Bus: 001
Trying to match device
Device matches
failed to claim USB device, trying 2 more time(s)...
detaching kernel driver from USB device...
trying again to claim USB device...
HID descriptor retrieved (Reportlen = 374)
Report descriptor retrieved (Reportlen = 374)
Found HID device
Report Descriptor size = 374
Detected a UPS: CPS/UPS BF700
Using subdriver: APC/CyberPower HID 0.9
Path: UPS.PowerSummary.iProduct, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.iSerialNumber, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, Value: 4.000000
Path: UPS.PowerSummary.iOEMInformation, Type: Feature, Value: 3.000000
Path: UPS.PowerSummary.Rechargeable, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.CapacityMode, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.DesignCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.CapacityGranularity1, Type: Feature, Value: 5.000000
Path: UPS.PowerSummary.CapacityGranularity2, Type: Feature, Value: 10.000000
Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, Value: 20.000000
Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, Value: 10.000000
Path: UPS.PowerSummary.FullChargeCapacity, Type: Feature, Value: 100.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Input, Value: 120.000000
Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, Value: 120.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Input, Value: 960.000000
Path: UPS.PowerSummary.RunTimeToEmpty, Type: Feature, Value: 960.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Input, Value: 300.000000
Path: UPS.PowerSummary.RemainingTimeLimit, Type: Feature, Value: 300.000000
Path: UPS.PowerSummary.ConfigVoltage, Type: Feature, Value: 12.000000
Path: UPS.PowerSummary.Voltage, Type: Feature, Value: 21.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Input, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Input, 
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Input, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Input, 
Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: 
Feature, Value: 0.000000
Path: UPS.PowerSummary.PresentStatus.FullyCharged, Type: Feature, Value: 1.000000
Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, 
Value: 0.000000
Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, Value: 2.000000
Path: UPS.PowerSummary.iManufacturer, Type: Feature, Value: 3.000000
Path: UPS.Input.ConfigVoltage, Type: Feature, Value: 120.000000
Path: UPS.Input.Voltage, Type: Feature, Value: 122.000000
Path: UPS.Input.LowVoltageTransfer, Type: Feature, Value: 90.000000
Path: UPS.Input.HighVoltageTransfer, Type: Feature, Value: 140.000000
Path: UPS.Output.Voltage, Type: Feature, Value: 121.000000
Path: UPS.Output.PercentLoad, Type: Feature, Value: 38.000000
Path: UPS.Output.Test, Type: Feature, Value: 1.000000
Path: UPS.Output.DelayBeforeShutdown, Type: Feature, Value: -1.000000
Path: UPS.Output.DelayBeforeStartup, Type: Feature, Value: 0.000000
Path: UPS.Output.Boost, Type: Feature, Value: 0.000000
Path: UPS.Output.Overload, Type: Feature, Value: 0.000000
Path: UPS.Output.ConfigActivePower, Type: Feature, Value: 390.000000
entering identify_ups(0x0764, 0x0501)

Can't find object UPS.Battery.ConfigVoltage
Can't find object UPS.Battery.Temperature
-> String: PbAcid (len = 6/4)
Can't find object UPS.Battery.ManufacturerDate
Can't find object UPS.Battery.APCBattReplaceDate
Can't find object UPS.PowerSummary.DelayBeforeShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.Battery.Test
Can't find object UPS.Battery.Temperature
Can't find object UPS.ManufacturerDate
process_status_info: online
process_status_info: !dischrg
process_status_info: !chrg
Can't find object UPS.PowerSummary.PresentStatus.ShutdownImminent
process_status_info: !lowbatt
Can't find object UPS.PowerSummary.PresentStatus.Overload
Can't find object UPS.PowerSummary.PresentStatus.NeedReplacement
process_status_info: !timelimitexp
Can't find object UPS.PowerSummary.PresentStatus.BatteryPresent
process_status_info: fullycharged
process_status_info: !boost
Can't find object UPS.Output.ConfigVoltage
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.BatterySystem.Battery.Test
Can't find object UPS.APCPanelTest
Can't find object UPS.APCPanelTest
Can't find object UPS.PowerSummary.DelayBeforeShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.PowerSummary.DelayBeforeStartup
Can't find object UPS.APCGeneralCollection.APCForceShutdown
Can't find object UPS.APCGeneralCollection.APCDelayBeforeShutdown
Can't find object UPS.PowerSummary.DelayBeforeShutdown
upsdrv_updateinfo...
-> String: PbAcid (len = 6/4)
process_status_info: online
process_status_info: !dischrg
process_status_info: !chrg
process_status_info: !lowbatt
process_status_info: !timelimitexp
process_status_info: fullycharged
process_status_info: !boost
dstate_init: sock /var/lib/nut/newhidups-auto open on fd 5
upsdrv_updateinfo...
Waiting for notifications...

=>Got 3 HID Objects...
battery.runtime.low = 300
battery.runtime = 960
battery.charge = 120
upsdrv_updateinfo...
Waiting for notifications...

=>Got 6 HID Objects...
ups.status = !timelimitexp
process_status_info: !timelimitexp
ups.status = fullycharged
process_status_info: fullycharged
ups.status = !lowbatt
process_status_info: !lowbatt
ups.status = !dischrg
process_status_info: !dischrg
ups.status = !chrg
process_status_info: !chrg
ups.status = online
process_status_info: online
upsdrv_updateinfo...
Waiting for notifications...

=>Got 3 HID Objects...
battery.runtime.low = 300
battery.runtime = 930
battery.charge = 120
upsdrv_updateinfo...
Waiting for notifications...

=>Got 6 HID Objects...
ups.status = !timelimitexp
process_status_info: !timelimitexp
ups.status = fullycharged
process_status_info: fullycharged
ups.status = !lowbatt
process_status_info: !lowbatt
ups.status = !dischrg
process_status_info: !dischrg
ups.status = !chrg
process_status_info: !chrg
ups.status = online
process_status_info: online
upsdrv_updateinfo...
Waiting for notifications...

=>Got 3 HID Objects...
battery.runtime.low = 300
battery.runtime = 930
battery.charge = 120
upsdrv_updateinfo...
Waiting for notifications...

=>Got 6 HID Objects...
ups.status = !timelimitexp
process_status_info: !timelimitexp
ups.status = fullycharged
process_status_info: fullycharged
ups.status = !lowbatt
process_status_info: !lowbatt
ups.status = !dischrg
process_status_info: !dischrg
ups.status = !chrg
process_status_info: !chrg
ups.status = online
process_status_info: online
Signal 2: exiting
Closing device

The variables you wanted to check appear to not be listed.

 > It would be great if you could post the output of
> "upsc upsname at localhost" back to the list. 

driver.name: newhidups
driver.parameter.generic: 1
driver.parameter.port: /dev/usb/hiddev0
driver.parameter.vendorid: 0764
driver.version: 2.1.0
driver.version.data: GENERIC HID 0.1
driver.version.internal: 0.28
ups.mfr: CPS
ups.model: UPS BF700

> Please also test the following instant commands (again, disconnect
> your equipment from the UPS before testing):
> 
> load.off
> load.on
> shutdown.return
> shutdown.stop
> beeper.on
> beeper.off
> 
> (the latter two will only work properly during a "beeper" event, i.e.,
> when there is a power failure).
> 
> Finally, it would be great if you could test the -k flag, to see if it
> shuts down the power. 
> 
> drivers/newhidups -DD -u root -x vendorid=0764 auto -k

Those tests will have to wait until later, as I'm at work and the UPS is at home.

One other bit of weirdness I've noticed is that in order to switch back to the 
hidups driver, I have to unload and reload usbhid.ko.  When newhidups loads up, 
/dev/usb/hiddev0 goes away.

Scott Alfter
scott at alfter.us



More information about the Nut-upsdev mailing list