Hi All,
I am having an issue with the HCI command to Terminate a link (FE0A)
The command gets correctly sent in my opinion (I receive back the Command Status Message with Status Success), but then I don't receive back the Link Termination event and the connection does not get terminated (same for either central or peripheral mode).
This happens if I use the single connection handle, or if I send FFFF to terminate all connections (I have 1 active connection at any single point in time).
Curiously, if I use the Immediate Disconnection (FC13) with the connection handle, the termination is successful and I receive almost immediately the Link Termination event (0606).
I am posting here for two things:
first, why don't I get the even back with the termination? It seems pretty basic to me, but I don't get anything on the UART after I received the command status. I check if they come inverted for some reason, but it does not seem to be the case.
Is it coming differently from the link termination in case of external disconnection? I really don't know what to think anymore.
secondly, I won't be very concerned, but there is a case when I am trying to connect to another device and if the connection fails, I will try to connect to another one. What happens if I don't send the FFFE (connection request termination) to the CC2540 and proceed in connecting another device? If this is not a problem, I will keep using the Immediate Disconnection.
Thanks,
Fabrizio