I'm developing a multirole device to connect to a peripheral device that we developed earlier.
The multirole device when acting as a central device it scans for the peripheral and if found it connects, then secure the connection and bond. After several successful connections, the central says that it connects to the peripheral but before being able to secure the connection or to discovery the services it disconnects.
I've enabled the logger on both devices and added logs to see the progress of the connection and the events.
I've seen that when the problem happens, the central is showing me the BLE_GAP_EVT_CONNECTED but the peripheral doesn't show anything. it's like the central device is firing a false BLE_GAP_EVT_CONNECTED event.
I've tried with the scan_params.extended on and off and the behavior is the same.
I've confirmed that when connected from another central that works fine (using the phone with the nrfConnect application), the peripheral shows the events as expected.
Both devices are using the nrf52832
The peripheral is using the SDK 15.0.0 and the softdevice s132 6.0.0
The device acting as a central is using the SDK 16.0.0 and the softdevice s132 7.0.1