<div dir="ltr">I finally managed to have sometime to find out why NUT wasn&#39;t compiling... autoreconf and not autoconf!<br><br>Carlos, the patch fixed the problem and compiled flawless. <br><br>I would sugest these values for batvolts<br>
<br>{ 240, 1.75*120, 2.33*120, 1.75*120, 2.09*120,&nbsp; 0.0 },&nbsp;&nbsp; /* Lacerda Titan Black */<br><br>I don&#39;t know where should the batvoltsmult would fit here. If it is intend to work without parameters, <br>this table should have another collumn for batvoltsmult. If not, the value present here migth be multiplied<br>
by the config parameter (batvoltsmult) before being used.<br><br>Anyway, I&#39;m defining them in config file.<br><br>[ups1]<br>&nbsp; driver = megatec<br>&nbsp; port = /dev/ttyUSB0<br>&nbsp; model = &quot;Titan Black tri-mono 10KVA&quot;<br>
&nbsp; serial = A07k21124<br>&nbsp; desc = &quot;UPS1 10 KVA Lacerda (220v)&quot;<br>&nbsp; mfr = &quot;Lacerda Sistemas de Energia&quot;<br>&nbsp; battvoltmult = 120<br>&nbsp; battvolts=1.75:2.09<br>[ups2]<br>&nbsp; driver = megatec<br>&nbsp; port = /dev/ttyS0<br>
&nbsp; model = &quot;Titan Black tri-mono 10KVA&quot;<br>&nbsp; serial = A08823221<br>&nbsp; desc = &quot;UPS2 10 KVA Lacerda (220v)&quot;<br>&nbsp; mfr = &quot;Lacerda Sistemas de Energia&quot;<br>&nbsp; battvoltmult = 120<br>&nbsp; battvolts=0.00:2.09<br>
<br>BTW, the second UPS I have has a problem with NUT. It ignores the chars sent to serial port if the time between char is greater than 60000 useconds. To fix this, I reduced<br><br>#define SEND_PACE&nbsp;&nbsp;&nbsp; 100000&nbsp; /* interval between chars on send (usec) */<br>
<br>to 10000<br><br>Maybe this could be turned into a new parameter.<br><br>Thanks,<br><br><div class="gmail_quote">2008/10/9 Carlos Rodrigues <span dir="ltr">&lt;<a href="mailto:cefrodrigues@gmail.com">cefrodrigues@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, Oct 9, 2008 at 8:03 AM, Arjen de Korte &lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>&gt; wrote:<br>

&gt; Citeren Arjen de Korte &lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>&gt;:<br>
<div class="Ih2E3d">&gt;<br>
&gt;&gt;&gt; Perhaps the graphics should use a dynamic scale instead of a fixed<br>
&gt;&gt;&gt; scale (there are many other models out there reporting nominal<br>
&gt;&gt;&gt; voltages of 12V and then ~2V for the current battery voltage).<br>
&gt;&gt;<br>
&gt;&gt; This is the case. The problem here is that in this case the megatec<br>
&gt;&gt; driver reports &#39;battery.voltage&#39; as single cell and<br>
&gt;&gt; &#39;battery.voltage.nominal&#39; as the total string voltage.<br>
&gt;<br>
</div>&gt; Have a look at changeset 1337 for the bestups driver, this suffered from a<br>
&gt; similar problem a while back. It won&#39;t be a drop in replacement here since<br>
&gt; that one didn&#39;t report a nominal battery voltage, so we try to guess that<br>
&gt; based on the reported low/high battert voltage. But it too uses a battery<br>
&gt; voltage multiplier so that the graphics report the battery string voltage,<br>
&gt; instead of just the single cell voltage.<br>
<br>
The attached patch adds a &quot;battvoltmult&quot; parameter to the megatec<br>
driver in the trunk.<br>
<br>
It should work, but I&#39;m away from a development environment, so it is<br>
totally untested (it wasn&#39;t even compiled to check for syntax errors).<br>
The changes are mostly harmless, though.<br>
<br>
--<br>
<font color="#888888">Carlos Rodrigues<br>
</font></blockquote></div><br><br clear="all"><br>-- <br> &nbsp; &nbsp; &nbsp;Luiz Angelo Daros de Luca<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:luizluca@gmail.com">luizluca@gmail.com</a><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ICQ: 19290419<br><br> I Know, &quot;Where you wanted to go today&quot;,<br>
 &nbsp; &nbsp;but I decided to stop here instead!<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MS Windows<br>
</div>