[Nut-upsuser] bcmxcp_usb can not communicate with Eaton Powerware 5110
Arnaud Quette
aquette.dev at gmail.com
Fri Aug 10 16:01:05 UTC 2012
2012/8/10 Massimo Gais <simosagi9 at gmail.com>
> On Fri, Aug 10, 2012 at 12:22 PM, Arnaud Quette <aquette.dev at gmail.com>
> wrote:
> > Hi Massimo and Greg,
> >
> Hello Arnaud,
>
Hi Massimo,
> >>
> >> instead of
> >> receiving the whole 171 bytes transfer in one single gulp.
> >
> >
> > thus, the data of the 2nd sequence is missing (after "3b ab 01"):
> >
> > 28 82 c0 01 00 02 00 00 80 0f 00 00 00
> > 00 00 00 00 00 00 00 00 00 00 01 00 80 40 00 00 00 00 00 00 03 00 08 16
> 00
> > 00 00 0b 00 6b
> >
> Exactly.
>
> >
> > would you be able to compile code for testing patches?
> > you will then just need to replace the driver on the RPi.
> >
> Yes I can do that.
> Actually I was already able to compile on the RPi the just-released
> 2.6.5 (although I did notice there was no change in bcmxcp_usb code).
> Obviously no improvement regarding this specific issue.
>
I took most of this afternoon looking at this issue, and this should be
fixed with the attached patch
It applies fine on 2.6.5, using the following command:
# cd nut-2.6.5
# patch -p0 < /path/to/xcp-rcv-loop.diff
# make
I've tested it on a 5110 only currently, so it's not applied to the
development tree.
for testing purpose, I've also used a byte frame size, to be in your
condition (Ie, set the 4th param of usb_interrupt_read() to '8').
please tell me back how it behave on RPi.
note that I'll probably have to do some code adjustment, and obviously
regression testing on other units, before committing the patch to the main
source tree.
cheers,
Arnaud
--
Linux / Unix / Opensource Engineering Expert - Eaton -
http://opensource.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120810/96a33950/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcp-rcv-loop.diff
Type: application/octet-stream
Size: 8444 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120810/96a33950/attachment-0001.obj>
More information about the Nut-upsuser
mailing list