<br><br><div class="gmail_quote">2012/8/10 Massimo Gais <span dir="ltr"><<a href="mailto:simosagi9@gmail.com" target="_blank">simosagi9@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Aug 10, 2012 at 12:22 PM, Arnaud Quette <<a href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</a>> wrote:<br>
> Hi Massimo and Greg,<br>
><br>
Hello Arnaud,<br></blockquote><div><br>Hi Massimo,<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
>><br>
>> instead of<br>
>> receiving the whole 171 bytes transfer in one single gulp.<br>
><br>
><br>
> thus, the data of the 2nd sequence is missing (after "3b ab 01"):<br>
><br>
> 28 82 c0 01 00 02 00 00 80 0f 00 00 00<br>
> 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<br>
> 00 00 0b 00 6b<br>
><br>
</div>Exactly.<br>
<div class="im"><br>
><br>
> would you be able to compile code for testing patches?<br>
> you will then just need to replace the driver on the RPi.<br>
><br>
</div>Yes I can do that.<br>
Actually I was already able to compile on the RPi the just-released<br>
2.6.5 (although I did notice there was no change in bcmxcp_usb code).<br>
Obviously no improvement regarding this specific issue.<br></blockquote></div><br clear="all">I took most of this afternoon looking at this issue, and this should be fixed with the attached patch<br>It applies fine on 2.6.5, using the following command:<br>
# cd nut-2.6.5<br># patch -p0 < /path/to/xcp-rcv-loop.diff<br># make<br><br>I've tested it on a 5110 only currently, so it's not applied to the development tree.<br>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').<br>
<br>please tell me back how it behave on RPi.<br>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.<br><br>cheers,<br>
Arnaud<br>-- <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>