[riot-notifications] [RIOT-OS/RIOT] ieee802154/submac: reimplement using FSM (#16746)

José Alamos notifications at github.com
Fri Sep 3 10:51:57 CEST 2021

@jia200x commented on this pull request.

> +    if (ieee802154_submac_state_is_idle(submac)) {
+        return NETOPT_STATE_SLEEP;
+    }
+    else {
+        return NETOPT_STATE_IDLE;

Since this branch of `netdev_ieee802154` is in top of the `submac`, `NETOPT_STATE_STANDBY` makes not so much sense here. 

The idea is that the SubMAC provides the lowest power consumption for a given operation mode. Therefore, `NETOPT_STATE_IDLE` should be receiving and `NETOPT_STATE_SLEEP` should put the device in its lowest consumption profile. In fact, we should probably try to keep the radio sleeping as much as possible:  since the SubMAC handles all critical timings (ACKs, CSMA-CA, retransmissions), going to the lowest consumption mode won't add timing issues due to long wake-up times.

This is not implemented yet, but the dea is that the SubMAC is able to re-configure the radio if it goes to deep sleep (we added a REG_RETENTION cap). 

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/20210903/31d47ab2/attachment.htm>

More information about the notifications mailing list