<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Carlos Rodrigues wrote:
<blockquote
 cite="mid:712170070712280703k2d8500d0xc0156d373950f1bf@mail.gmail.com"
 type="cite">
  <pre wrap="">On Dec 28, 2007 1:23 PM, Carlos Rodrigues <a class="moz-txt-link-rfc2396E" href="mailto:cefrodrigues@mail.telepac.pt">&lt;cefrodrigues@mail.telepac.pt&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">[snip] Either way, I'll know
what's needed, if an option to interpret the "OFF" bit the other way
around, or just ignore it.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I've just commited a workaround for this in the development trunk.
Just add "ignoreoff" to your "ups.conf" and it should do the trick.

If you prefer to keep using NUT 2.2.1, just apply the patch attached
to this message and rebuild it.

  </pre>
</blockquote>
Hi,<br>
<br>
Thanks,<br>
<br>
I have recompiled with the patched megatec.c and have added ignoreoff
to my ups.conf<br>
<br>
However, I now receive this error :<br>
<br>
&nbsp;/usr/local/ups/bin/megatec_usb -a plexus<br>
Network UPS Tools 2.2.1 - Megatec protocol driver 1.5.9 [megatec_usb]<br>
Carlos Rodrigues (c) 2003-2007<br>
<br>
Serial-over-USB transport layer for Megatec protocol driver
[megatec_usb]<br>
Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c)
2007<br>
<br>
<br>
Fatal error: 'ignoreoff' is not a valid flag for this driver.<br>
<br>
Look in the man page or call this driver with -h for a list of<br>
valid variable names and flags.<br>
<br>
&nbsp;more /usr/local/ups/etc/ups.conf<br>
[plexus]<br>
#driver=megatec_usb<br>
driver=megatec_usb<br>
port=/dev/hiddev0<br>
desc="Plexus 1000VA Pro UPS"<br>
ignoreoff<br>
<br>
Regards,<br>
<br>
Jason<br>
</body>
</html>