public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Read by Group Type is denied when issued before Pairing is finsihed
@ 2017-08-23 19:38 Konrad Zapalowicz
  2017-08-24  8:04 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Zapalowicz @ 2017-08-23 19:38 UTC (permalink / raw)
  To: linux-bluetooth

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-30 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23 19:38 Read by Group Type is denied when issued before Pairing is finsihed Konrad Zapalowicz
2017-08-24  8:04 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox