netopt: Add option for retrieving number of retransmissions#7447
netopt: Add option for retrieving number of retransmissions#7447jnohlgard merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
I think the documentation needs some clarification. What type of retries are meant here? |
|
Thanks for the feedback. You're completly right. This is supposed to be purely retransmission for missing ACK packets. I'll push a commit with some clarifications tomorrow |
|
@gebart I've clarified the documentation a bit. Is it clear this way? |
sys/include/net/netopt.h
Outdated
| * @brief Get retry amount from missing ACKs of the last transmission | ||
| * | ||
| * This retrieves the number of retries needed for the last transmissions. | ||
| * Only retries due to missing ACK packets are considered. Retries due to |
There was a problem hiding this comment.
to make this even more clear you could change this to
"Only retransmissions due to missing ACK packets are considered."
ac99341 to
e069a5b
Compare
|
@gebart thank you for your comment. I've reworded the doc to your suggestion and squashed the commits. |
e069a5b to
1eb4635
Compare
|
Whitespace check failed 😢. Fixed it. |
|
I have no clue why the build is failing here. Is it an issue caused by me or is that specific test broken? |
|
you need to add the new option to the string list in sys/net/crosslayer/netopt/netopt.c |
|
@bergzand you can directly amend the string list fix to this commit |
sys/include/net/netopt.h
Outdated
| * | ||
| * This retrieves the number of retries needed for the last transmissions. | ||
| * Only retransmissions due to missing ACK packets are considered. | ||
| * Retransmissionsdue to CCA failures are not counted. |
There was a problem hiding this comment.
The CCA failures are not retransmissions, nothing is transmitted. Call them retries or backoffs instead, those are the words that are used in the 802.15.4 standard where they describe the CSMA/CA algorithm for 802.15.4 networks.
1eb4635 to
c33eb2b
Compare
|
Thanks for the pointer to that file, build is now successful 😄 |
|
No problem, I had made the same mistake in #7481 |
To request the number of retransmissions needed for the last transmission. Useful for ETX calculation. Can only be supported by radio's that report this information such as the at86rf233 and the mrf24j40.