From: Johan Hedberg <johan.hedberg@gmail.com>
To: Ryan Press <ryan@presslab.us>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: LE mouse reconnect problem
Date: Sun, 29 Jun 2014 08:29:49 +0300 [thread overview]
Message-ID: <20140629052949.GA32130@t440s> (raw)
In-Reply-To: <20140629051442.GA31085@t440s.P-661HNU-F1>
Hi,
On Sun, Jun 29, 2014, Johan Hedberg wrote:
> On Sat, Jun 28, 2014, Ryan Press wrote:
> > > It looks like Bluez is using random address and hcitool lescan is
> > > using public address. I don't know why to use random or public.
> > >
> > > hcitool lescan:
> > > own address: 0x00 (Public) policy: All
> > > bluetoothd:
> > > own address: 0x01 (Random) policy: All
> > >
> > > And the advertise address from the mouse is the same.
> > >
> > > hcitool:
> > > bdaddr C5:8C:97:E9:9C:81 (Random)
> > > bluetoothctl:
> > > [NEW] Device C5:8C:97:E9:9C:81 Arc Touch Mouse SE
> > >
> > >
> > > Thanks.
> > > Ryan
> >
> > Hi Luiz,
> >
> > I realized that 3.15+ kernel had the LE Privacy support, so I tried
> > 3.14 and my mouse reconnects just fine. So somehow my mouse does not
> > work with the new LE Privacy in the kernel.
> >
> > I couldn't find any way to disable this. It seems that bluetoothd
> > just uses the default setting which is LE Privacy enabled. And I
> > couldn't find any way in the kernel to disable it via a module option
> > or sysfs. Is there some other way I can disable this?
>
> What the kernel does is it actually uses a non-resolvable private
> address when doing active scanning. You should still be able to get
> advertising indications even though you don't get scan responses (as the
> remote can only choose to not send you the latter based on your
> address). So it's a bit strange you just get complete silence when doing
> active scanning with a non-resolvable private address.
>
> It'd be interesting to know whether passive scanning discovers the
> device (it should). This is what we should be using, but as the kernel
> interface for it is not yet ready we're reusing the Start Discovery mgmt
> command which uses active instead of passive scanning.
>
> Btw, it would be *much* better if you used btmon instead of hcidump for
> your investigation. It has much more complete decoding of all the
> various commands and events. Now we have to guess part of the parameters
> that you posted since hcidump doesn't show them.
One part I missed: it seems the mouse is using directed advertising:
2014-06-28 12:54:01.425141 > HCI Event: LE Meta Event (0x3e) plen 12
LE Advertising Report
ADV_DIRECT_IND - Connectable directed advertising (1)
bdaddr C5:8C:97:E9:9C:81 (Random)
RSSI: -35
It's possible that this makes your local controller filter out even the
indications as they don't match the local address.
Johan
next prev parent reply other threads:[~2014-06-29 5:29 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 2:27 LE mouse reconnect problem Ryan Press
2014-06-25 7:08 ` Luiz Augusto von Dentz
[not found] ` <CABx3TkVgs6J1UR8Z5Rbyd2e90p74RfggpzsvnxzgWGgN9c2Epg@mail.gmail.com>
2014-06-25 13:23 ` Fwd: " Ryan Press
2014-06-27 8:32 ` Luiz Augusto von Dentz
2014-06-28 15:50 ` Ryan Press
2014-06-28 19:22 ` Luiz Augusto von Dentz
2014-06-28 20:07 ` Ryan Press
2014-06-29 4:51 ` Ryan Press
2014-06-29 5:14 ` Johan Hedberg
2014-06-29 5:29 ` Johan Hedberg [this message]
2014-06-29 9:43 ` Marcel Holtmann
2014-06-29 17:02 ` Ryan Press
2014-06-29 17:52 ` Marcel Holtmann
2014-06-29 19:01 ` Ryan Press
2014-07-01 9:49 ` Marcel Holtmann
2014-07-03 3:01 ` Ryan Press
2014-07-03 7:29 ` Marcel Holtmann
2014-07-03 15:18 ` d.eriksson
2014-07-03 15:41 ` Marcel Holtmann
2014-07-03 16:40 ` d.eriksson
2014-07-03 16:48 ` Marcel Holtmann
2014-07-17 5:40 ` Scott James Remnant
2014-06-29 19:03 ` Scott James Remnant
2014-06-29 19:19 ` Marcel Holtmann
2014-06-29 19:37 ` Scott James Remnant
2014-06-29 19:56 ` Marcel Holtmann
2014-06-29 20:02 ` Scott James Remnant
2014-07-01 16:01 ` Marcel Holtmann
2014-07-17 5:42 ` Scott James Remnant
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=20140629052949.GA32130@t440s \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=ryan@presslab.us \
/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