Dino, Alexey,<br><br>there are a number of users suffering issues with your Powercom devices.<br><br>Could you (Dino, and Keven if possible) please have a look at the below one, from Angela, and check for a fix?<br><br>I&#39;ve scheduled to release 2.6.1 next week, and having that fixed is part of the list.<br>
<br><br><div class="gmail_quote">2011/5/16 Angela Williams <span dir="ltr">&lt;<a href="mailto:angierfw@gmail.com" target="_blank">angierfw@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi All<br>
<br>
On Friday 13 May 2011 at 14:46 Arnaud Quette :-<br>
<div><br>
&gt; Hi Angela,<br>
&gt;<br>
&gt; sorry for not replying earlier, which doesn&#39;t mean that I&#39;m considering<br>
&gt; your issue.<br>
&gt; only that the agenda is crowded, and that support queue need<br>
&gt; consolidation...<br>
<br>
</div>Thanks!<br>
<div><div></div><div><br>
&gt; 2011/5/13 Angela Williams &lt;<a href="mailto:angierfw@gmail.com" target="_blank">angierfw@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi!<br>
&gt; &gt; Normally nut was just worked and worked for me!<br>
&gt; &gt; Not this time though!<br>
&gt; &gt;<br>
&gt; &gt; Distro is Gentoo withe latest nut-2.6.0 emerged today.<br>
&gt; &gt; Linux kernel version is 2.6.36<br>
&gt; &gt; UPS is PowerCom BNT2000AT<br>
&gt; &gt; &quot;Driver&quot; is powercom<br>
&gt; &gt; ups.conf looks like this! Okay so APC1 is not and APC!<br>
&gt; &gt;<br>
&gt; &gt;  [APC1]<br>
&gt; &gt;<br>
&gt; &gt;        driver = powercom<br>
&gt; &gt;        type = BNT<br>
&gt; &gt;        port = /dev/ttyS1<br>
&gt; &gt;        numOfBytesFromUPS = 16<br>
&gt; &gt;        methodOfFlowControl = no_flow_control<br>
&gt; &gt;        validationSequence = {{11,0x42},{8,0},{8,0}}<br>
&gt; &gt;        shutdownArguments = {{1,30},y}<br>
&gt; &gt;        modelname = BNT2000APT<br>
&gt; &gt;        serialnumber = 2233445566<br>
&gt; &gt;        desc = Computer Room Small UPS<br>
&gt; &gt;<br>
&gt; &gt; (...)<br>
&gt;<br>
&gt; a powercom patch has recently been submitted, and I had to first discuss<br>
&gt; with the submitter about the possible fix of your issue with this patch:<br>
&gt; <a href="http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-May/005408.html" target="_blank">http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-May/005408.html</a><br>
&gt;<br>
&gt; so, this seems quite positive for you, though the validation will come once<br>
&gt; the patch is merged, and tested on your side...<br>
&gt;<br>
&gt; note that the patch is there:<br>
&gt; <a href="http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-April/005402.html" target="_blank">http://lists.alioth.debian.org/pipermail/nut-upsdev/2011-April/005402.html</a><br>
<br>
</div></div>Okay! I got the patched tarball, unpacked it, ran configure and make then make<br>
install. No probs!<br>
<br>
I tested the update driver and the result was still a validation error!<br>
This is the console debug output!<br>
<br>
gatekeeper nut #  /lib/nut/powercom -a APC1 -DDDDDDDDDDNetwork UPS Tools -<br>
PowerCom protocol UPS driver 0.13 (2.6.0-r2984)<br>
<div>   0.000000     debug level is &#39;10&#39;<br>
</div>   0.002388     Flow control disable<br>
   0.002561     Num of bytes requested for reading from UPS: 16<br>
   0.148057     Num of bytes received from UPS: 16<br>
Raw data from UPS:<br>
 0 0x10 ( )<br>
 1 0x64 (d)<br>
 2 0x68 (h)<br>
 3 0x68 (h)<br>
<div> 4 0x32 (2)<br>
 5 0xff (ÿ)<br>
 6 0x32 (2)<br>
 7 0x00 ( )<br>
 8 0x00 ( )<br>
</div> 9 0x04 ( )<br>
<div>10 0x00 ( )<br>
11 0x4b (K)<br>
12 0x98 ()<br>
13 0x00 ( )<br>
14 0x00 ( )<br>
15 0x00 ( )<br>
</div>   0.148222     data receiving error (validation check)<br>
<br>
<br>
So there you have it! No phix yet! My C knowledge is not at a higher enough<br>
level to tackle on my own! I learnt just enough to get the feel of it! Just<br>
like cobol, algol and other weird languages!<br>
<br>
I can see the bit were the validation happens but I cannot get my head around<br>
it! Seems it checks each byte in turn but then I&#39;m lost! I really wish I could<br>
hep a bit more!<br></blockquote></div><br>I also don&#39;t know enough on this protocol to help :(<br clear="all">So, I&#39;ve called to help from the manufacturer, and Keven who has worked a bit on the driver.<br><br>cheers,<br>
Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>

Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>