Re: [Bluez-devel] Sony PS3 sixaxis & bluez

Bastien Nocera
2007-11-27T10:52:38Z

On Tue, 2007-11-27 at 09:32 +0100, Marcel Holtmann wrote:
> Hi Bastien,
>
> > > sixpair2.c has a couple of bugs:
> > > - country is wrong
> >
> > Doesn't matter.
> >
> > > - version is wrong
> >
> > That was my mistake.
> >
> > > - report is missing 4 bytes
> >
> > Doesn't seem to matter. I think it might be hidd being broken...
>
> can you extract the full HID report descriptor from SDP and simply put
> it statically into the code? I think that makes it easier.

The report descriptor says length is 148 (in lsusb and my code) and my
"truncated" version has 296 characters, so it look fine.

> > Attaching a new version of sixpair2.c that seems to work:
> > sudo ./sixpair2 --store-info <local bdaddr>
> >
> > It needs to be compiled from the input/ subdir of bluez-utils, using the
> > command-line at the top of the file.
>
> I would like to include this one into the CVS. Can you get me a version
> without GLib stuff? It is not really needed as I can tell. You only use
> it for option parsing.

You mentioned that already last time I sent the script. I'd really like
to be sure it works as expected before I trim it though, so if you or
Frederic could test it, I even have a udev rule, and some code to look
at to implement using hiddev instead lsusb so the device doesn't
disconnect on plugging it in.