[Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
Kjell Claesson
kjell.claesson at epost.tidanet.se
Sun Jul 15 10:27:16 UTC 2012
söndagen den 15 juli 2012 16.59.56 skrev Greg Vickers:
Hi Greg,
> On 13/07/12 22:24, Charles Lepple wrote:
> > On Jul 13, 2012, at 12:41 AM, Greg Vickers wrote:
> >> 0.238682 get_answer: (128 bytes) => ab 01 79 01 02 50 00 50 01 00
> >> 0e 00 01 00 10 50 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 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 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 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 0.241334 00 00 00 00 00 00 00 f0 18 3b ab 01
> >> 0.241969 get_answer: block_number = 1
> >> 0.242121 get_answer: sequence number (1) is ok
> >> 0.242254 get_answer: checksum is ok
> >> 0.242891 get_answer: block_number = 1
> >> 0.243072 Communications with UPS lost: get_answer: not the right
> >> sequence received 0!!!>
> > Well, that's odd.
Yep that's odd. If it would be the last sequence the sequence-number should
read 82.
The sequence is numbered in ascending order and on the last sequence the msb
is set to 1. (10000010 = 82 Hex)
> >
> > I'm not an expert on this driver, but a quick read of that portion of the
> > code implies that this shouldn't happen.
> >
> > The last line says the received sequence number is 0. I think the sequence
> > number is the 4th byte (my_buf[3]), which is 1 in the hex dump you
> > posted:
8<---------snip----------------
Yep Charles is right. The problem with the 5110 is that it was one of the
first that was equipped with usb. This implementation is not following the
usb criteria. That is why there is difference between this and later ups'es.
Look at:
http://trac.networkupstools.org/projects/nut/browser/trunk/drivers/bcmxcp_usb.c#L49
And the difference in line 59 for the phonitextec interface that the 5110 use.
I have backed off a bit from the development, and I don't have any early
Powerware to test the driver.
But I know that Arnaud made some changes around the problem with the 5110.
Regards
Kjell Claesson
More information about the Nut-upsuser
mailing list