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'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"><<a href="mailto:angierfw@gmail.com" target="_blank">angierfw@gmail.com</a>></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>
> Hi Angela,<br>
><br>
> sorry for not replying earlier, which doesn't mean that I'm considering<br>
> your issue.<br>
> only that the agenda is crowded, and that support queue need<br>
> consolidation...<br>
<br>
</div>Thanks!<br>
<div><div></div><div><br>
> 2011/5/13 Angela Williams <<a href="mailto:angierfw@gmail.com" target="_blank">angierfw@gmail.com</a>><br>
><br>
> > Hi!<br>
> > Normally nut was just worked and worked for me!<br>
> > Not this time though!<br>
> ><br>
> > Distro is Gentoo withe latest nut-2.6.0 emerged today.<br>
> > Linux kernel version is 2.6.36<br>
> > UPS is PowerCom BNT2000AT<br>
> > "Driver" is powercom<br>
> > ups.conf looks like this! Okay so APC1 is not and APC!<br>
> ><br>
> > [APC1]<br>
> ><br>
> > driver = powercom<br>
> > type = BNT<br>
> > port = /dev/ttyS1<br>
> > numOfBytesFromUPS = 16<br>
> > methodOfFlowControl = no_flow_control<br>
> > validationSequence = {{11,0x42},{8,0},{8,0}}<br>
> > shutdownArguments = {{1,30},y}<br>
> > modelname = BNT2000APT<br>
> > serialnumber = 2233445566<br>
> > desc = Computer Room Small UPS<br>
> ><br>
> > (...)<br>
><br>
> a powercom patch has recently been submitted, and I had to first discuss<br>
> with the submitter about the possible fix of your issue with this patch:<br>
> <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>
><br>
> so, this seems quite positive for you, though the validation will come once<br>
> the patch is merged, and tested on your side...<br>
><br>
> note that the patch is there:<br>
> <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 '10'<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'm lost! I really wish I could<br>
hep a bit more!<br></blockquote></div><br>I also don't know enough on this protocol to help :(<br clear="all">So, I'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&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>