Hi @ all,
is it possible to recognize when the stack resends a package because the receiving node doesn't send an acknowledge or doesn't receive the package?
Thanks,
Felix
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.
Hi @ all,
is it possible to recognize when the stack resends a package because the receiving node doesn't send an acknowledge or doesn't receive the package?
Thanks,
Felix
Nobody familiar with this?
Thanks,
Felix
Hi Felix,
At the application level, you will only be notified once all the MAC level retries have failed. I believe the default is 4 retries. You can then decide at the application level whether or not to re-try the transmission.
Peder
Hi Peder,
this is better than nothing. How can I recieve these notifications?
Thanks,
Felix
Hi Felix
this case in fuction UINT16 GenericApp_ProcessEvent( byte task_id, UINT16 events ) of Z-Stack do this
case AF_DATA_CONFIRM_CMD:
// This message is received as a confirmation of a data packet sent.
// The status is of ZStatus_t type [defined in ZComDef.h]
// The message fields are defined in AF.h
afDataConfirm = (afDataConfirm_t *)MSGpkt;
sentEP = afDataConfirm->endpoint;
sentStatus = afDataConfirm->hdr.status;
sentTransID = afDataConfirm->transID;
(void)sentEP;
(void)sentTransID;
// Action taken when confirmation is received.
if ( sentStatus != ZSuccess )
{
// The data wasn't delivered -- Do something
}
break;