[riot-notifications] [RIOT-OS/RIOT] RDM: The 802.15.4 Radio HAL (#13943)

José Alamos notifications at github.com
Mon Aug 9 16:34:12 CEST 2021


Hi again!

After stress testing the SubMAC, I came to 2 conclusions:

1. Flushing the RX Buffer seems to be more appropriate for the `read` function rather than the `set_trx_state`. For the radio is not ilegal to call `set_trx_state(RX_ON)` when the state is already RX_ON. This might happen when there's a race condition between RX_DONE and ACK timeout (ACK frame received slightly after the ACK timeout). 
2. On RX_DONE or CRC_ERROR we tend to call `set_trx_state(RX_ON)` because the resulting state is hardware dependent. We can simply add a "RX_LEAVE" indication that tells the upper layer that the RX_ON state was left. In such case the upper layer has a way to know when to set the RX_ON state again (and we save several no-op calls to `set_trx_on`)

Opinions?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13943#issuecomment-895276277
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210809/81b7b19a/attachment-0001.htm>


More information about the notifications mailing list