<br><div class="gmail_quote">2012/7/13 Greg Vickers <span dir="ltr"><<a href="mailto:daehenoc@iinet.net.au" target="_blank">daehenoc@iinet.net.au</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br></blockquote><div> <br>Hi Greg,<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I have set up a RaspberryPi computer to do monitoring of two UPSs. One is an MGE evolution 800, one is an Eaton Powerware 5110.  The MGE was being monitored by another Linux (Ubuntu 12.04) computer, and I just copied and pasted in the relevant nut config and it works just fine with nut.<br>

<br>
I've tried to set up the Powerware 5110 with nut, and the bcmxcp_usb driver can't communicate with the 5110.<br>
<br>
Here are the details of the RaspberryPi (I'm running the pre-built Debian distribution):<br>
$ uname -a<br>
Linux monitor 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux<br>
<br>
Here is details of the nut package:<br>
$ dpkg -l nut<br>
||/ Name               Version            Description<br>
+++-==================-=======<u></u>===========-==================<u></u>==============================<u></u>====<br>
ii  nut                2.4.3-1.1squeeze1  network UPS tools - core system<br>
<br>
Here is the ups.conf file:<br>
$ sudo cat /etc/nut/ups.conf<br>
[pw5110]<br>
driver = bcmxcp_usb<br>
port = auto<br>
<br>
Here's what happens when I try to get the driver to talk to the UPS:<br>
$ sudo /lib/nut/bcmxcp_usb -DD -a pw5110<br>
Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.3)<br>
USB communication subdriver 0.18<br>
   0.000000    debug level is '2'<br>
   0.008810    device 004 opened successfully<br>
   0.011517    entering get_answer(31)<br>
   0.013401    get_answer: (8 bytes) => ab 01 79 01 02 50 00 50<br>
   0.014623    get_answer: block_number = 1<br>
   0.015972    get_answer: need to read 118 more data<br>
   0.017549    get_answer: (16 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.018769    get_answer: block_number = 1<br>
   0.019927    get_answer: need to read 110 more data<br>
   0.030671    get_answer: (24 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.031399     4f 57 45 52 57 41 52 45<br>
   0.031564    get_answer: block_number = 1<br>
   0.032179    get_answer: need to read 102 more data<br>
   0.046680    get_answer: (32 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.047836     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c<br>
   0.048017    get_answer: block_number = 1<br>
   0.048165    get_answer: need to read 94 more data<br>
   0.062676    get_answer: (40 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.063836     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00<br>
   0.064508    get_answer: block_number = 1<br>
   0.064703    get_answer: need to read 86 more data<br>
   0.078676    get_answer: (48 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.079436     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.080076     00 00 00 00 00 00 00<br>
   0.080230    get_answer: block_number = 1<br>
   0.080842    get_answer: need to read 78 more data<br>
   0.094677    get_answer: (56 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.095441     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.096094     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
   0.096245    get_answer: block_number = 1<br>
   0.097018    get_answer: need to read 70 more data<br>
   0.110676    get_answer: (64 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.111436     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.111642     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00<br>
   0.112272    get_answer: block_number = 1<br>
   0.112436    get_answer: need to read 62 more data<br>
   0.126675    get_answer: (72 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.127825     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.128075     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.128694     00 00 00 00 00 00<br>
   0.128843    get_answer: block_number = 1<br>
   0.128980    get_answer: need to read 54 more data<br>
   0.142678    get_answer: (80 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.143436     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.144122     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.144361     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0<br>
   0.145140    get_answer: block_number = 1<br>
   0.145314    get_answer: need to read 46 more data<br>
   0.158684    get_answer: (88 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.159443     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.160119     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.160332     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00<br>
   0.160956    get_answer: block_number = 1<br>
   0.161109    get_answer: need to read 38 more data<br>
   0.174685    get_answer: (96 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.175448     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.176120     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.176798     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00 f0 00 00<br>
   0.176962     00 00 00 00 00<br>
   0.177545    get_answer: block_number = 1<br>
   0.177722    get_answer: need to read 30 more data<br>
   0.190678    get_answer: (104 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.191441     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.192119     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.192339     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00 f0 00 00<br>
   0.192986     00 00 00 00 00 00 51 00 00 51 00 00 00<br>
   0.193137    get_answer: block_number = 1<br>
   0.193879    get_answer: need to read 22 more data<br>
   0.206681    get_answer: (112 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.207443     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.208120     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.208338     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00 f0 00 00<br>
   0.209013     00 00 00 00 00 00 51 00 00 51 00 00 00 00 00 00 00 00 00 f0 00<br>
   0.209754    get_answer: block_number = 1<br>
   0.209948    get_answer: need to read 14 more data<br>
   0.222681    get_answer: (120 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.223448     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.224117     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.224409     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00 f0 00 00<br>
   0.224616     00 00 00 00 00 00 51 00 00 51 00 00 00 00 00 00 00 00 00 f0 00 00 00 00 00<br>
   0.225261     00 00 00 00<br>
   0.225409    get_answer: block_number = 1<br>
   0.225552    get_answer: need to read 6 more data<br>
   0.238682    get_answer: (128 bytes) => ab 01 79 01 02 50 00 50 01 00 0e 00 01 00 10 50<br>
   0.239445     4f 57 45 52 57 41 52 45 20 55 50 53 20 20 20 5c 00 00 00 00 00 00 00 00 00<br>
   0.240107     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 51 00 00 00 00 51<br>
   0.240351     00 00 00 00 00 00 00 f0 00 f0 00 00 00 f0 00 00 00 00 00 00 00 00 f0 00 00<br>
   0.240558     00 00 00 00 00 00 51 00 00 51 00 00 00 00 00 00 00 00 00 f0 00 00 00 00 00<br>
   0.241334     00 00 00 00 00 00 00 f0 18 3b ab 01<br>
   0.241969    get_answer: block_number = 1<br>
   0.242121    get_answer: sequence number (1) is ok<br>
   0.242254    get_answer: checksum is ok<br>
   0.242891    get_answer: block_number = 1<br>
   0.243072    Communications with UPS lost: get_answer: not the right sequence received 0!!!<br>
<br>
It looks like the above is repeated four times, then:<br>
<br>
   1.267930    Communications with UPS lost: Error executing command<br>
   1.268240    Could not communicate with the ups: Resource temporarily unavailable<br>
   1.268420    CLOSING<br>
<br>
I've taken out all the config relating to the MGE UPS, and there is only config for the 5110 in the nut config files.  I've also used the old chestnut of turning everything off and back on again (RaspberryPi and the 5110), but with no luck, the same driver error happens.<br>

<br>
I've searched the nut mail list and googled around a bit, but haven't been able to find a solution.  Any assistance would be greatly appreciated!  (I hope it's not an issue with this driver on the arm architecture!)<br>

<br>
Thanks,<br>
Greg<br clear="all"></blockquote><div><br>I've just made a quick test on an Opengear ACM 50004-2 (ARM supervision appliance).<br>For the record:<br>- uname -a: Linux acm5004-2 2.6.30.2-uc0 #1 Tue Feb 15 09:30:54 EST 2011 armv4tl unknown<br>
- nut version: 2.4.3 (so bcmxcp_usb 0.23)<br>- tried with a PW5110 (ups.firmware: Cont:00.50 Inve:01.50)<br><br>and everything worked like a charm.<br>That said, Charles and Kjell comments are fully valid.<br>That is, try with the latest version (2.6.4). It has at least more debug traces to help getting visibility.<br>
Could you perhaps test the 5110 on your Ubuntu system, with a recent NUT?<br><br>As a side note, I still hope to rewrite this driver, part of 2.8.0.<br>It will however depend on my available time, and the progress on the main 2.8.0 items...<br>
<br>cheers,<br>Arnaud<br></div></div>-- <br>Linux / Unix / Opensource Engineering Expert - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.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.fr" target="_blank">http://arnaud.quette.fr</a><br><br>