failed security request
failed security request
- Subject: failed security request
- From: Davis Walker <email@hidden>
- Date: Fri, 06 Apr 2012 14:42:43 -0700
Hello, I'm testing a security-enabled bluetooth LE peripheral talking to the iPhone 4S running iOS 5.1. The devices pair successfully and generally connect successfully after pairing. However, occasionally I'll see the connection terminate soon after connecting. Attaching a sniffer, I can see that the iPhone is sending a "pairing request failed" message, and my peripheral terminates the connection after receiving this message. This happens occasionally in all cases, but happens quite reliably when my iPhone app is running in the background when the connection is made.
The connection sequence I see looks okay:
LL_ENC_REQ->
<- SMP_Security_Request
<- LL_ENC_RSP
<- LL_START_ENC_REQ
LL_START_ENC_RSP ->
<- LL_START_ENC_RSP
SMP_Pairing_failed->
<- LL_Terminate
There is no SMP_Pairing Request in the sequence, and this happens when the devices have already successfully been paired. If I bring the app back to the foreground it will (almost always) successfully connect.
The sequence in a successful connection looks a little different:
LL_ENC_REQ->
<- SMP_Security_Request
<- LL_ENC_RSP
<- LL_START_ENC_REQ
LL_START_ENC_RSP ->
<- LL_START_ENC_RSP
LL_PAUSE_ENC_REQ ->
<- LL_PAUSE_ENC_RSP
LL_PAUSE_ENC_RSP ->
LL_ENC_REQ ->
<- LL_ENC_RSP (note no SMP_Security_Request here)
<- LL_START_ENC_REQ
LL_START_ENC_RSP ->
<- LL_START_ENC_RSP
And all is well.
Any idea what might cause the different sequences between the two cases? From what I can tell my peripheral is behaving identically in the two cases.
Thank you.
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden