linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to make subsequent BLE connections
@ 2014-12-10 23:29 Alan Au
  2014-12-11  7:36 ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Au @ 2014-12-10 23:29 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I'm connecting to a BLE oximeter device. The first couple of connects 
succeed. But after that the connection always fails. I have tried with 
both gatttool and with my own code. hcidump shows that the "LE Start 
Encryption" command fails with  "PIN or Key Missing". If I delete the 
pairing (that was created by the earlier successful connection) then 
subsequent connects will succeed for a few times again.

I analysed the hcidumps of successful and failed connects. In the failed 
case, it looks to me like bluez is not sending out an SMP PairingRequest 
in response to an SMP SecurityRequest from the slave. I can see in the 
kernel code that smp_cmd_security_req() does not send out the 
PairingRequest if it finds an LTK. But is that correct? Should it not 
try to pair anyway because the remote device is requesting it and may 
have deleted the earlier bonding.

I can provide the detailed hcidumps if anyone needs that.

Thanks.

Alan


______________________________________________________________________
This communication contains information which may be confidential or privileged. The information is intended solely for the use of the individual or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this communication in error, please notify me by telephone immediately.
______________________________________________________________________

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

end of thread, other threads:[~2014-12-11 23:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10 23:29 Unable to make subsequent BLE connections Alan Au
2014-12-11  7:36 ` Johan Hedberg
2014-12-11 23:37   ` Alan Au

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).