We are using MSP430 with CC2564 and one problem we have is that in some situation
bluetooth stack will enter a zombie status: iOS phone or android phone has disconnected from
our BLE device, but etGATT_Connection_Device_Disconnection or etLE_Disconnection_Complete event
is never triggered. Bluetooth stack still thinks itself is in connection status, and iOS phone or android phone
can no longer connect to BLE device.
If calling GAP_LE_Disconnect now, disconnect will fail with error code -502,
which is HCI_ERROR_CODE_NO_CONNECTION.
Our experiment shows this only happen when there is many advertisement packet send to BLE device,
(our BLE device use manufacturer data of advertisement packet to communicate with each other)
at the same time iOS/Android disconnecting from BLE device .
It seems somehow Bluetopia missed the disconnect event, therefor stay
in connection mode forever.
Most of the time receiving many advertisement packet and meanwhile being connected and disconnected
works fine, but when the error happens, the only solution is to reset the whole system to be able
to make BLE device reconnectable again.
This problem happens in both v1.4 and v1.5R1
http://e2e.ti.com/support/wireless_connectivity/f/538/p/313674/1093528.aspx#1093528