hi,
we working together with robert to make liebert ups with nut. there was
a good revision 2431 which gives a good result for us. this revision
call the driver gxt2. after that you change the name to esp2.
unfortunately this version (and the current head too) contains the same
bug what was previously fixed in the gxt2 branch.
it'd be useful to port the fixes to the new esp2 branch too.

the 2431 gxt2 version works with serial cable, but when we try with
usb-serial converter than it's no longer works. i attached a patch to be
able to work both with serial and usb-serial converter connected liebert
ups. i also assume the same bug also in the current trunk (ie. in the
esp2 driver) so you can apply it too also.

regards.

-- 
  Levente                               "Si vis pacem para bellum!"
diff -up nut-2.4.3/drivers/liebertgxt2.c.orig nut-2.4.3/drivers/liebertgxt2.c
--- nut-2.4.3/drivers/liebertgxt2.c.orig        2010-05-18 19:08:06.000000000 
+0200
+++ nut-2.4.3/drivers/liebertgxt2.c     2010-06-02 08:34:47.000000000 +0200
@@ -75,7 +75,7 @@ static int do_command(const unsigned cha
 
        upsdebug_hex(2, "send", command, ret);
 
-       ret = ser_get_buf(upsfd, reply, 8, 1, 0);
+       ret = ser_get_buf_len(upsfd, reply, 8, 1, 0);
        if (ret < 0) {
                upsdebug_with_errno(2, "read");
                return -1;
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to