Re: Recovering from loss of pairing data
Re: Recovering from loss of pairing data
- Subject: Re: Recovering from loss of pairing data
- From: Roland King <email@hidden>
- Date: Thu, 25 Aug 2016 09:05:24 +0800
On 25 Aug 2016, at 07:32, Ramin Firoozye < email@hidden> wrote:
AFAIK there’s no way to force the equivalent of a ‘Forget Device’ from the app level. iOS is supposed to attempt pairing if a characteristic in the GATT returns with an insufficient authentication status. If the phone was paired and is now not paired any more, you could try accessing a known characteristic in the app and by doing so it returns insufficient auth and forces the device and the phone to go through the pairing process again.
I don’t think that’s actually correct, not in my experience anyway. If iOS thinks it’s already paired with a device I’ve only ever seen it attempt to use the stored key, I’ve never made it re-pair no matter what I send. Sending insufficient authentication just gets it to try and encrypt the link again with the same stored key. Similarly having the peripheral request encryption does the same thing. I’ve found no solution other than to forget the device in iOS. On August 24, 2016 at 3:10:12 PM, Ben Levitt (email@hidden) wrote: Hello,
We have an app that talks (as a central) to a bluetooth peripheral that we control. Our peripheral can only store pairing/bonding data for the 2 most recently connected devices, so it's very possible that a given iOS device that has previously paired (and thinks it is still paired) to our peripheral, can try to connect, and be denied access when the peripheral no longer has pairing data for this iOS device.
At that point, is there any way for the iOS device to recognize this problem, and clear this peripheral from its list of paired devices? I hear rumors that this works in some apps. I don't know of a way to do this programmatically. Am I missing something? Or is there something we can set up differently on our peripheral so that the iOS device will recognize this problem and re-request pairing itself?
Thanks very much! Ben
|
_______________________________________________
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