Linux bluetooth development
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: David Herrmann <dh.herrmann@googlemail.com>
Cc: Daniele Forsi <dforsi@gmail.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 3/3] Support hardcoded Nintendo Wii Remote pins
Date: Wed, 06 Apr 2011 19:05:44 +0100	[thread overview]
Message-ID: <1302113146.3227.62.camel@novo.hadess.net> (raw)
In-Reply-To: <BANLkTi=gqh3fxYipPE9CqMgV=6Qr0MkTSA@mail.gmail.com>

On Wed, 2011-04-06 at 19:55 +0200, David Herrmann wrote:
<snip>
> Exactly.
> 
> I prefer my solution with dba over sba because it allows to pair the wiimote
> without opening the backside. The only issue left with the patches is the
> VID/PID thing. It works perfectly for me when I delete the device with
> gnome-bluetooth and add the wiimote as new device.

gnome-bluetooth just calls RemoveDevice() which won't remove cached SDP
records, resolved name, etc. for the device. Best open
up /var/lib/bluetooth files with a text editor, and remove everything
related to your Wiimote for testing.

(or you can just nuke the directory if you don't care about pairing your
other devices again).

> It would be interesting to know from a bluez dev or gnome-bluetooth dev whether
> the SDP records are always retrieved before trying to connect to a remote
> device or whether we need to do this manually.

The ordering of this is done by bluetoothd, and I'm pretty certain that
the SDP records are only updated *after* pairing, as some devices might
refuse to answer SDP requests from unpaired devices.

But at that point we should already have a name for it cached (at least
with gnome-bluetooth, which waits for the name to be resolved to allow
you to go through the next steps).




  reply	other threads:[~2011-04-06 18:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 10:04 [PATCH 3/3] Support hardcoded Nintendo Wii Remote pins Daniele Forsi
2011-04-06 10:55 ` David Herrmann
2011-04-06 14:05   ` Daniele Forsi
2011-04-06 14:31     ` Bastien Nocera
2011-04-06 17:55       ` David Herrmann
2011-04-06 18:05         ` Bastien Nocera [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-02 19:51 [PATCH 0/3] Support binary pin codes David Herrmann
2011-04-02 19:51 ` [PATCH 3/3] Support hardcoded Nintendo Wii Remote pins David Herrmann

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=1302113146.3227.62.camel@novo.hadess.net \
    --to=hadess@hadess.net \
    --cc=dforsi@gmail.com \
    --cc=dh.herrmann@googlemail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox