CBPeripheral's discoverServices Fails After 3-6 Reconnections
CBPeripheral's discoverServices Fails After 3-6 Reconnections
- Subject: CBPeripheral's discoverServices Fails After 3-6 Reconnections
- From: email@hidden
- Date: Tue, 13 May 2014 22:11:38 -0700
I am developing an elaborate industrial automation app for a large company
that reads from four (4) independent Bluetooth 4.0 sensors that are custom
manufactured for this specific application. We are seeing reconnection
issues after reconnecting to the sensors 3-6 times.
My tests result in the same issues whether on iPad Air, iPad Mini, iPod
Touch, iPhone 5. All devices are running 7.1.1. Note: The issue is not
"Bluetooth Error 1309" however, I have seen it once or twice in my
testing. The reconnection issue is easily resolved by swiping up from the
bottom and turning Bluetooth off and then on again. The app does not need
a restart to benefit from this BTLE power cycling.
I have tried to mitigate the issue with zero luck:
1. Aggressive retries of discoverServices using various NSTimers
2. Delaying scanForPeripheralsWithServices by using
retrievePeripheralsWithIdentifiers on subsequent reconnections. This
solution works for the 2nd connection and maybe 3rd connection, but no
difference than if I used a pure scan. (Ugh, how I wish this was the
solution...)
Any ideas on how to make reconnections reliable?
_______________________________________________
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