[Nut-upsuser] LiebertPSP

Tim Gould tgould at reverb.com.au
Fri Sep 30 21:51:25 UTC 2011


fatal: https://github.com/clepple/nut/tree/git-LiebertPSP-scalefactor/info/refs not found: did you run git update-server-info on the server?

Using the patch gets me:

battery.charge.low: 38
battery.charge.warning: 38
battery.type: PbAc
device.mfr: Emerson Network Power
device.model: LiebertPSA
device.serial:           
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.2-3254M
driver.version.data: Belkin HID 0.13
driver.version.internal: 0.35
ups.alarm: Replace battery!
ups.mfr: Emerson Network Power
ups.model: LiebertPSA
ups.productid: 0001
ups.serial:           
ups.status: ALARM OB LB RB
ups.vendorid: 10af

I've attached -DDD output.

Thanks, Tim.

On 28/09/2011, at 22:53 , Charles Lepple wrote:

> On Sep 27, 2011, at 3:45 PM, Tim Gould wrote:
> 
>> I'll quite happily experiment with this - however if you could give me a short-cut to the relevant part of the code that would be appreciated as no doubt you are way more familiar with it than me.
> 
> This turned out to be a little more complicated than I thought (I am only vaguely familiar with this code).
> 
> The attached patch should cover some of the ups.status flags. Can you apply it, and run the driver with -DDD again? I also pushed it to GitHub, so if you want to check out the git-LiebertPSP-scalefactor branch and build from there, that will make future updates easier.
> 
>   https://github.com/clepple/nut/tree/git-LiebertPSP-scalefactor
> 
> I need to look through the code a little more to make sure that we can read the ConfigVoltage before the other values are parsed. If not, there might be a short time at driver startup when the returned values are still uncorrected. (This would have been a lot easier if the different Liebert units had different USB product IDs... see drivers/tripplite-hid.c and search for tripplite_battvolt_fun for the sort of correction we need to do.)
> 
> <LiebertPSP-scalefactor-001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: liebert-001.txt.gz
Type: application/x-gzip
Size: 2600 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20111001/1e2207d2/attachment.bin>


More information about the Nut-upsuser mailing list