[riot-notifications] [RIOT-OS/RIOT] netstats: add counter for retransmissions (#11836)

José Alamos notifications at github.com
Wed Sep 25 11:53:51 CEST 2019

The AT86RF233 has a retransmission counter (see `XAH_CTRL_2`). The AT86RF231 doesn't report any kind of retransmission counter, so it's impossible to get the actual number there while using Extended Mode.

As @PeterKietzmann describes incrementing a counter on "NOACK" while only give a lower bound and doesn't represent the actual value.

If we are going to add a retransmission counter, I would add at least a way to check if the radio support ACK retransmissions before displaying them to the user. They can be e.g dropped from the message.

    printf("retransmissions %u", stats->rx_retrans"); 

So we get
TX succeeded 45 errors 2
Instead of
TX succeeded 45 errors 2 retransmissions <a_lower_bound_value>

This `radio_supports_retrans_counter` can be obtained from a NETOPT or even better, from radio caps (see #11473). 

Note that all radios running in Basic Mode with software IEEE802.15.4 implementation (WIP) will support the retransmission counter. So for experiments, it's possible to do this or use a radio that support the counter

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190925/31fd296b/attachment-0001.htm>

More information about the notifications mailing list