This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We are developing an application on the CC2541 that is based on the HostTestApp example project.
In this application, we want to communicate with a smart phone (using a specific android app). Once the devices are connected, the phone should subscribe to notifications on a characteristic.
After a while of sending notifications and empty PDU:s we get LL_Terminate_Ind with errcode 0x13.
I have attached sniffer logs as well as an image of the relevant part of the sniffer log.
Do you have any idea what could cause the disconnect or what I should look for?
I assumed that it is the CC2541 that terminates the connection, but I might be interpreting the data wrong.
The phone is master. The phone sends the LL_Terminate_Ind with errcode 13. But errcode 13 means that the remote user (in this case the CC2541?) terminated the connection?
The CC2541 is not terminating, as you would then see it sending the LL_TERMINATE_IND packet.My suspicion here is that the Android stack is terminating the link because it doesn't like something about the notification that you sent. Were the characteristics properly implemented with the correct declaration and permissions? Do you have a client characteristic configuration descriptor, and are you waiting until notifications have been enabled before sending any notifications?