2012/8/10 Massimo Gais <simosa...@gmail.com>

> On Fri, Aug 10, 2012 at 12:22 PM, Arnaud Quette <aquette....@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

Attachment: xcp-rcv-loop.diff
Description: Binary data

_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to