We have a central that alternately connects to 2 peripherals.
Sometimes, just after it attempts to connect, there is no connUp callback, just "bleprofile_connDown stop Idle Timer" and then the connDown callback, and no callback for connUp/encrypt/bond.
Our LOOP is essentially:
Start scan and get Bluetooth address of each peripheral.
Callback fine timer to STOP SCAN and
start connection "blecm_CreateConnection".
[ >>> DISCONNECTION SOMETIMES OCCURS HERE <<< ]
Callback for connUp
Callback for encrypt
Callback for bond
receive multiple notifications.
Callback for connDown
Select next peripheral and
This was caused by unexpected
bleprofile_connDown stop Idle Timer" (see subsequent question about this).