nrf802154: take FCS into account for lifs/sifs calculation#11138
nrf802154: take FCS into account for lifs/sifs calculation#111381 commit merged intoRIOT-OS:masterfrom
Conversation
|
I guess I missed that. Thanks for the fix. |
|
This PR again is reasonable, the code looks good and compiles, and ping still works. However I could not test this PR to my satisfaction and might have found another bug. problem: Can you reproduce this - might this even be correct behavior? |
Interesting, I'll try to reproduce this asap. In the mean time, is this also an issue on master? Furthermore, with IEEE 802.15.4, the "air time" of a byte is exactly 32 µs (8 bit / (62.5Ksymbol/s * log_2(16) bit/symbol), this matches a bit too well with your scaling factor to be simply ignored :D |
I did test this on master first, before i cherrypicked your commit, and yes, i got the same result.. I dont think I got significant timing differences with and without your PR. I am out of office today, I will look into that later this week. Please keep me posted :) |
|
Okay, I think I've nailed the issue here. It's an related bug with the timer initialization. First #11146 should be a dependency of this PR to actually validate the timing. with those commits cherry-picked in, I get the following (17B total size): The weird thing here is that the GPIO is high->low->high, while it should be low->high->low. issue:As per API, timers are initialized running, so after initialization the |
|
@SemjonKerner see d89db8d |
|
Great bug, yet so obvious. |
No worries, thanks! |
|
Thanks for the contribution :) |
|
Thank you for the review :) |



Contribution description
The FCS is part of the MAC frame and should be included in the size calculation for determining whether to use LIFS or SIFS between the frames
Testing procedure
I have no clue unless somebody is able to actually measure or sniff this on the air.
Issues/PRs references
None