[Nut-upsdev] Liebert GXT2 NUT driver
Robert Jobbagy
jobbagy.robert at gmail.com
Fri Apr 2 15:46:58 UTC 2010
2010/4/2 Robert Jobbagy <jobbagy.robert at gmail.com>
>
>
> 2010/4/2 Arjen de Korte <nut+devel at de-korte.org <nut%2Bdevel at de-korte.org>
> >
>
> Citeren Robert Jobbagy <jobbagy.robert at gmail.com>:
>>
>>
>> The trouble was in the command reply buffer use.
>>> You compute the value that value = reply[6]*256+reply[5] <- it's wrong
>>>
>>> The right solution: value = reply[5] * 256 + reply[6];
>>>
>>
>> Thanks for this patch. I just committed it to the development version. But
>> please note that this is an experimental driver. Most of the functions are
>> untested (since nobody took the time to try it out and post the results back
>> to the mailing list).
>>
>>
>> And other bug,
>>>
>>> battery.runtime compute, you divide this value 60 <- it's wrong
>>>
>>> right value: divide 1.0
>>>
>>
>> Probably not. Per the NUT standard, the 'battery.runtime' value is
>> reported in seconds. As far as I understand, the UPS reports runtime
>> remaining in minutes, so we need to multiply by 60 here. See
>> 'docs/new-names.txt' for a listing of (almost) all variables supported in
>> NUT.
>
>
> Sorry,it's my mistake. I didn't look it.
> Thanks your advice.
>
>>
>>
>> I continue the work on this driver,and I will write if I make a something
>>> new.
>>>
>>
>> Please do. It should be trivial to add additional commands and variables
>> to the existing ones.
>>
>> I need work on this driver and I would like add some command and
> features this driver what be usefull for me.
> I will send it on this maillist.
>
>>
>> Best regards, Arjen
>> --
>> Please keep list traffic on the list
>>
>>
>> _______________________________________________
>> Nut-upsdev mailing list
>> Nut-upsdev at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
>>
>
>
>
> --
> Best Regards,
>
> Robert
>
--
Best Regards,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20100402/da469d75/attachment.htm>
More information about the Nut-upsdev
mailing list