Hello,
We are working with hardware simitlar to Beaglebone Black in a BLE GATT server which implements standard services and other custom ones using the Bluetopia stack v.3.9 (TIInit_11.8.32.bts).
There is an issue when establishing an LE connection. Sometimes the connection fails with Error Domain=CBErrorDomain Code=10 "The connection has failed unexpectedly." on the client side and the server isn't aware of that, it does never receive the disconnection event. I saw this question, (https:// e2e.ti.com/support/wireless_connectivity/bluetooth_cc256x/f/660/t/242821) and the answer basically says that there is no way to recover from this until i receive a disconnection event, which i never do anymore. I've tried cleaning up the GATT profile and unregister every service to restart it all again, which i managed to do successfully, but it doesn't work. When i try to advertise again GAP_LE_Advertising_Enable returns the error BTPS_ERROR_INVALID_DEVICE_ROLE_MODE. I also tried issuing a GAP_LE_Disconnect which fails with the error code -502.
This issue also happens with the LinuxSPPLE Demo provided with every kind of LE GATT client we tried so far.
Is there any solution for this?
Thank you in advance.
Pedro.