[Nut-upsuser] HP R1500 G2 USB on Ubuntu [HCL]

Nicolas me at electronico.nc
Tue Apr 18 21:23:14 UTC 2017


On 12/04/2017 23:41, Charles Lepple wrote:
> On Apr 12, 2017, at 3:23 AM, me at electronico.nc wrote:
>> Hello,
>>
>> Control HP R1500 G2 with nut via USB.
>>
>> Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-72-generic x86_64)
>> nut V2.7.1 installed from repository
>>
>> /etc/nut/ups.conf
>> [HPR1500]
>> driver=usbhid-ups
>> port=auto
>>
>> After dealing hours with this, hope this will help some :
>>
>> rename udev rule to higher priority and move it to its right location, reload udev rules
>> mv /lib/udev/rules.d/52-nut-usbups.rules /lib/udev/rules.d/62-nut-usbups.rules
>> cp /lib/udev/rules.d/62-nut-usbups.rules /etc/udev/rules.d/
>> udevadm control --reload-rules
>> udevadm trigger
>> reboot server to be sure everything is OK
> Yes, this has been a known issue for a while:
>
>   * https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1099947
>   * https://bugzilla.redhat.com/show_bug.cgi?id=488368
>   * https://github.com/networkupstools/nut/issues/140
>
>> Nicolas
>>
>> upsc HPR1500
>> Init SSL without certificate database
>> battery.charge: 100
>> battery.charge.low: 20
>> battery.charge.warning: 20
>> battery.runtime: 24171
> ^ If you add a dummy load, does this number go down to something that correlates with the battery runtime rating?
Yes : battery.runtime has decreased from 2444 to 60 while UPS was OB, 
then UPS has shut down
It displayed always 3781 while charging. Still at 3781 after battery 
charge (ups.power at 112)
>
>> battery.temperature: 46.0
> ^ Seems a little high, even for charging.
Ambiant temperature is around 27°C here.
battery.temperature went up to 51 at the end of OB cycle.
It has displayed 51 while charging. Now back to 46 after battery charge 
complete.
>
>> battery.type: PbAc
>> battery.voltage: 41.0
>> battery.voltage.nominal: 36.0
>> device.mfr: Hewlett-Packard
>> device.model: HP R1500 G2 UPS
>> device.part: 416830-002
>> device.serial: 3Cxxxxxxxx (not usefull)
>> device.type: ups
>> driver.name: usbhid-ups
>> driver.parameter.pollfreq: 30
>> driver.parameter.pollinterval: 2
>> driver.parameter.port: auto
>> driver.version: 2.7.1
>> driver.version.data: TrippLite HID 0.81
>> driver.version.internal: 0.38
>>
> If you have time before putting this UPS into production, can you grab upsrw and upscmd output, as mentioned here? http://networkupstools.org/stable-hcl.html#footnotes
>
> We have the upsc output for this UPS via serial port (bcmxcp driver), but not upsrw/upscmd: http://networkupstools.org/ddl/HP/R1500_G2.html
Here they are:

upsrw -u admin -p adminpass HPR1500
[battery.charge.low]
Remaining battery level when UPS switches to LB (percent)
Type: STRING
Maximum length: 5
Value: 20

[input.transfer.high]
High voltage transfer point (V)
Type: STRING
Maximum length: 5
Value: 266.0

[input.transfer.low]
Low voltage transfer point (V)
Type: STRING
Maximum length: 5
Value: 194.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 -u admin -p adminpass -l HPR1500
Instant commands supported on UPS [HPR1500]:

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)
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

Hope this helps.
Nicolas

>
> I would also recommend shutdown testing, but 14.04 is pretty reliable in this area (16.04 has some issues with powerdown, IIRC).

>
>> _______________________________________________
>> Nut-upsuser mailing list
>> Nut-upsuser at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser





More information about the Nut-upsuser mailing list