From: Konrad Zapalowicz <konrad.zapalowicz@canonical.com>
To: linux-bluetooth@vger.kernel.org
Subject: Read by Group Type is denied when issued before Pairing is finsihed
Date: Wed, 23 Aug 2017 21:38:38 +0200 [thread overview]
Message-ID: <20170823193838.GD7309@annapurna> (raw)
Hey,
I have stumbled upon a problem with one of the BLE devices that I have
on my desk. BlueZ (bluetoothctl) failed to discover the primary services
and the error returned by the Read by Group type request was
"Insufficient Authentication". It did work when using gatttool though.
I have tracked it down and realized that if calling the
bt_gatt_discover_all_primary_services is delayed until after the pairing
is finished then the primary services are discovered without any issues.
The simplified bt for bt_gatt_discover_all_primary_services is:
(gdb) bt
#0 discover_services
#1 bt_gatt_discover_primary_services
#2 bt_gatt_discover_all_primary_services
#3 exchange_mtu_cb
Now, what would be the best way of approaching this. Calling it could be
delayed with a timer but would it be an optimal solution - thoughts?
Thanks,
K
next reply other threads:[~2017-08-23 19:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 19:38 Konrad Zapalowicz [this message]
2017-08-24 8:04 ` Read by Group Type is denied when issued before Pairing is finsihed Luiz Augusto von Dentz
2017-08-24 8:24 ` Konrad Zapalowicz
2017-08-24 8:40 ` Luiz Augusto von Dentz
2017-08-24 9:16 ` Konrad Zapalowicz
2017-08-30 15:10 ` Konrad Zapalowicz
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=20170823193838.GD7309@annapurna \
--to=konrad.zapalowicz@canonical.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