Other Parts Discussed in Thread: CC2650
Hi,
on cc2650 using
Using ble_cc26xx_2_01_00_44423
I am experiencing hangs due to air interference on a link that is using indications and trying to understand how to gracefully bring the link up again.
I would like to ask a question on flow of messages.
I would like to ask if it is possible that a GAP_LINK_TERMINATED_EVENT
is recieved prior to ATT_FLOW_CTRL_VIOLATED_EVENT .
if I understand correctly ATT_FLOW_CTRL_VIOLATED_EVENT could be sent to the application after 30secs of retries. (My application is using indication mechanism).
1. Since it is very hard to simulate this scenario I would like to know what are the possible sequences of these messages:
ATT_FLOW_CTRL_VIOLATED_EVENT then GAP_LINK_TERMINATED_EVENT ?
GAP_LINK_TERMINATED_EVENT then ATT_FLOW_CTRL_VIOLATED_EVENT ?
2. I would like to verify If I this call is valid, my code
...
if (pMsg->method == ATT_FLOW_CTRL_VIOLATED_EVENT)
{
Note: srvrChId could not exist if GAP_LINK_TERMINATED_EVENT is called prior to ATT_FLOW_CTRL_VIOLATED_EVENT
uint8_t srvrChId = connection_handler_server_channel_get(pMsg->connHandle);
if(srvrChId != 0xFF)
{
//Have to terminate connection
GAPRole_TerminateConnection(pMsg->connHandle);
}
}
Thanks
Tamir