Displaying 3 results from an estimated 3 matches for "upsesp2".
Did you mean:
upses
2009 Oct 18
3
liebert GTX2 ESP-II serial support
2009/10/15 Farkas Levente <lfarkas at lfarkas.org>
> hi,
> i read your thread at:
>
> http://lists.alioth.debian.org/pipermail/nut-upsdev/2009-January/003772.html
>
> http://lists.alioth.debian.org/pipermail/nut-upsdev/2009-January/003775.html
> we've got exactly the same problem that we need a nut driver for liebert
> ups. is there any progress in this field?
2010 Apr 02
7
Liebert GXT2 NUT driver
Hi guys,
I found the troblue and fix it!
I attached the patch.
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];
And other bug,
battery.runtime compute, you divide this value 60 <- it's wrong
right value: divide 1.0
I continue the work on this
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
...de <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <signal.h>
#include <errno.h>
/*
Version 1.0
based on liebert.c from R.Gregory (http://www.csc.liv.ac.uk/~greg/projects/liebertserial/)
Spiros Ioannou, sivann at gmail.com 2009
Compile with: gcc -O2 upsesp2.c -o upsesp2
Run with: ./upsesp2 /dev/ttyS0 Replace ttyS0 with your serial port (ttyS1, ...etc).
*/
#define BAUDRATE B2400
#define _POSIX_SOURCE 1 /* POSIX compliant source */
#define FALSE 0
#define TRUE 1
#define NCMD 100 /*max number of commands*/
#define MAXAGE 5 /*max seconds to accept d...