linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Barry Byford <31baz66@gmail.com>
To: Bluez mailing list <linux-bluetooth@vger.kernel.org>
Subject: Re: Error 133 (0x85): GATT ERROR
Date: Tue, 9 Feb 2016 22:02:54 +0000	[thread overview]
Message-ID: <CAAu3APZ+idS4xiAn7UxP=9ynB-dgBHqpmYKaDup5vo_-2As+aQ@mail.gmail.com> (raw)
In-Reply-To: <10106988.mHUPtLp52x@leonov>

Hello Szymon,

On 9 February 2016 at 09:03, Szymon Janc <ext.szymon.janc@tieto.com> wrote:
> Hi Barry,
>
> On Tuesday 09 of February 2016 08:00:52 Barry Byford wrote:
>
>  <snip>
>
>> >>According to my phone the code on the Raspberry Pi is advertising with
>> >>only the 'LE General Discoverable Mode' flag set. The 'BR/EDR not
>> >>Supported' is not set.
>> >>I've looked at the DBus API documentation again and it is not obvious
>> >>that I can change this setting on the advertisement. Am I missing
>> >>something?
>> >>
>> > Have you tried setting ControllerMode = le in bluez¹s main.conf?  If set,
>> > bluetoothd will explicitly enable le and disable br/edr in the kernel via
>> > the management interface, and that should set advertising flags
>> > appropriately.  There does not appear to be a DBus API, probably because
>> > this is more of a static setting.
>>
>> Thanks for the suggestion. I've added that setting to the
>> /etc/bluetooth/main.conf and when the Raspberry Pi advertises it now
>> has the 'BR/EDR Not supported' flag set.
>> Now when I try to connect from my phone it fails with the same error
>> message on my phone although in the hcidump and bluetoothd logs
>> nothing appears when the phone tries to connect.
>>
>> Thanks again for the suggestion.
>
> If this is Android phone with 4.0 BT (no 4.1/4.2 features) then you need to
> unpair the device and toggle phone BT off/on. Otherwise Bluedroid stack cache
> info that your device is dual mode and tries to connect over BR/EDR.
>
Good suggestion!

The modification to main.conf and resetting the phone has allowed me
to access the services on my phone the raspberry pi is advertising.

Thanks for your help.

Regards,
Barry

      reply	other threads:[~2016-02-09 22:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 20:30 Error 133 (0x85): GATT ERROR Barry Byford
2016-02-08 10:13 ` Luiz Augusto von Dentz
2016-02-08 12:22   ` Barry Byford
2016-02-08 22:08   ` Barry Byford
2016-02-09  1:12     ` Adam Moore
2016-02-09  8:00       ` Barry Byford
2016-02-09  9:03         ` Szymon Janc
2016-02-09 22:02           ` Barry Byford [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='CAAu3APZ+idS4xiAn7UxP=9ynB-dgBHqpmYKaDup5vo_-2As+aQ@mail.gmail.com' \
    --to=31baz66@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;
as well as URLs for NNTP newsgroup(s).