Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@codecoup.pl>
To: Prabhu Chawandi <foss.chaws@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [BfA] Setting Reconnection Address
Date: Fri, 05 Feb 2016 10:10:53 +0100	[thread overview]
Message-ID: <2189623.YQGdH5ZUzM@ix> (raw)
In-Reply-To: <CAKafyqoPC5AqtwGaO+CdvDc3SbQOO4zgYnZbFCthM4paZy4d9A@mail.gmail.com>

Hi,

On Friday 29 January 2016 17:42:18 Prabhu Chawandi wrote:
> Hi All,
> 
>    I have basic doubt, which is as below.
> when I enable the privacy feature random address will be advertised.
> 
> Say, I am using blueooth smart KB from logitek.
> 
> When I connect using " hidhost connect" works fine.  When I reboot,
> How can I reconnect ? I have random address which is no more valid.

After reboot this device should be visible with its Identity Address. The 
reason why you don't see this change right after pairing is that Android HAL 
doesn't provide any means to notify framework about such change.

So until you restart bluetoothd you should use address that was used for 
pairing and bluetoothd will handle this internally. After restart this is read 
from storage and device is visible with its identity address.

Normally this is handled by Android Framework where after start it gets list 
of bonded devices and supported profiles. So for end user this change is 
invisible since name of device stays the same.
 
> Or Do I need not to try to reconnect ? When Directed advertisement go
> will it connect automatically ?

AFAIR for HoG you need to explicitly connect it for the first time after BT is 
enabled. After that auto connect should work.

> Please let me know, how to handle this Privacy feature enabled Server
> devices.

-- 
pozdrawiam
Szymon Janc

      reply	other threads:[~2016-02-05  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 12:12 [BfA] Setting Reconnection Address Prabhu Chawandi
2016-02-05  9:10 ` Szymon Janc [this message]

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=2189623.YQGdH5ZUzM@ix \
    --to=szymon.janc@codecoup.pl \
    --cc=foss.chaws@gmail.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