BLE connection interrupts sporadically

Using the standard CoreBluetooth Framework the applications disconnects sporadically from the BLE Board Type "espressif esp32".

All operations e.g. read/write characteristics work great. The delegate callback function "didDisconnectPeripheral()" appears after a short time (sometimes instant sometime after 2-3 minutes or even longer timeintervals - up to 30 min).

I can see in the log that the app does not crash. It has to be an issue on the BLE board side.


But with Android devices it does NOT disconnect, it runs stable.

Is there something e.g. security algorithms from the CoreBluetooth framework that interrupts the connection?


Note! Some characteristics are set to "sendNotify" on the BLE board.


What hardware is recommended to work with iOS Bluetooth Low Energy?


Greetings


Tobias

Replies

First, you should start with this document to make sure your connection parameters are as specified:

https://developer.apple.com/library/archive/qa/qa1931/_index.html


If all the parameters are to spec, and you are still seeing the disconnects, and you are sure the issue is not signal strength, interference, or otherwise RF related, you should get an airtrace to see if there is a timeout happening on either end, or as you suspect, some security level issue is surfacing.