From: Marcel Holtmann <marcel@holtmann.org>
To: Bastien Nocera <hadess@hadess.net>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: Wiimote pairing?
Date: Sat, 05 Dec 2009 16:07:31 +0100 [thread overview]
Message-ID: <1260025651.3041.16.camel@violet> (raw)
In-Reply-To: <1260025343.3311.1907.camel@localhost.localdomain>
Hi Bastien,
> > > I was under the impression that the Wiimote simply didn't use a PIN
> > > code, but it seems there's a way to pair it and associate it with a
> > > particular host by doing:
> > > http://wiibrew.org/wiki/Wiimote#Sync_Button
> > >
> > > I looked through my dongles, and couldn't find one that would allow me
> > > to pass the modified host address as a PIN code as they all have "00" as
> > > part of the address.
> > >
> > > bluetoothd uses strings everywhere for PIN code handling. It would be
> > > possible to change the RequestPinCode to also allow:
> > > {string,len} RequestPinCode(object device)
> > > without modifying the current behaviour.
> >
> > that is no really how D-Bus would handle strings. From a D-Bus point of
> > view, the only way would be using a Byte array.
>
> Yeah, true. so:
> ByteArray RequestPinCode(object device)
> (in addition to the current one)
>
> I would think it should be pretty easy to fix by passing the length
> along with the pin "char *" internally.
>
> > Potentially we could allow implementing a passkey agent as a plugin and
> > then you could implement special handling via a plugin. Problem then
> > again is how to identify that it is a Wiimote. Or did they actually
> > added a PnP SDP record to it. It has been so long that I hacked on these
> > devices.
>
> This is the output of sdptool browse on a Wiimote (though I'd rather
> have the work-arounds in the front-end):
>
> Browsing 00:1F:C5:5E:B4:EB ...
> Service RecHandle: 0x0
> Service Class ID List:
> "SDP Server" (0x1000)
> Protocol Descriptor List:
> "L2CAP" (0x0100)
> PSM: 1
> "SDP" (0x0001)
> Language Base Attr List:
> code_ISO639: 0x656e
> encoding: 0x6a
> base_offset: 0x100
> Profile Descriptor List:
> "" (0x0100)
> Version: 0x0100
>
> Service Name: Nintendo RVL-CNT-01
> Service Description: Nintendo RVL-CNT-01
> Service Provider: Nintendo
> Service RecHandle: 0x10000
> Service Class ID List:
> "Human Interface Device" (0x1124)
> Protocol Descriptor List:
> "L2CAP" (0x0100)
> PSM: 17
> "HIDP" (0x0011)
> Language Base Attr List:
> code_ISO639: 0x656e
> encoding: 0x6a
> base_offset: 0x100
> Profile Descriptor List:
> "Human Interface Device" (0x1124)
> Version: 0x0100
>
> Service RecHandle: 0x10001
> Service Class ID List:
> "PnP Information" (0x1200)
> Protocol Descriptor List:
> "L2CAP" (0x0100)
> PSM: 1
> "SDP" (0x0001)
> Profile Descriptor List:
> "PnP Information" (0x1200)
> Version: 0x0100
here is your PnP record and that means you have VID/PID information and
can easily just to automatic pairing inside daemon.
Regards
Marcel
next prev parent reply other threads:[~2009-12-05 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-05 13:57 Wiimote pairing? Bastien Nocera
2009-12-05 14:50 ` Marcel Holtmann
2009-12-05 15:02 ` Bastien Nocera
2009-12-05 15:07 ` Marcel Holtmann [this message]
2009-12-05 15:43 ` Bastien Nocera
-- strict thread matches above, loose matches on Subject: below --
2009-12-07 17:10 Hector Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1260025651.3041.16.camel@violet \
--to=marcel@holtmann.org \
--cc=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.