where i can find the retrasmition number in case of not ack?
where i can find the retrasmition number in case of not ack?
Hi,
Do you want the maximum number of retransmissions or to monitor the retransmissions during runtime?
The configured maximum is defined by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT (for direct transmissions/unicast) and OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_INDIRECT (for indirect, like parent-child polling) in modules/lib/openthread/src/core/config/mac.h.
You can also get the max retries during runtime by calling otLinkGetMaxFrameRetriesDirect() and otLinkGetMaxFrameRetriesIndirect().
If you instead want to monitor it during runtime you can use the otMacCounters struct, like this:
const otMacCounters *counters = otLinkGetCounters(aInstance); uint32_t retries = counters->mTxRetry;
Best regards,
Marte
Hi,
Do you want the maximum number of retransmissions or to monitor the retransmissions during runtime?
The configured maximum is defined by OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT (for direct transmissions/unicast) and OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_INDIRECT (for indirect, like parent-child polling) in modules/lib/openthread/src/core/config/mac.h.
You can also get the max retries during runtime by calling otLinkGetMaxFrameRetriesDirect() and otLinkGetMaxFrameRetriesIndirect().
If you instead want to monitor it during runtime you can use the otMacCounters struct, like this:
const otMacCounters *counters = otLinkGetCounters(aInstance); uint32_t retries = counters->mTxRetry;
Best regards,
Marte