Should the Thread radio be disabled by default? #10553
Replies: 1 comment
-
While I like this idea and I think it seems reasonable, I suggest that we'd be careful about this. Modifying this behavior could have unintended consequences for existing code that integrate the OpenThread stack. Some app or platform-layer code might implicitly depend on the fact that radio being enabled upon OpenThread stack initialization (from the I recommend maybe exploring a |
Beta Was this translation helpful? Give feedback.
-
When the Thread stack starts, it sets the radio to be enabled by default (mac.cpp). The radio will always be enabled unless users manually call the cli command
radio disable
. For the POSIX platform, the radio_spinel.cpp periodically send Spinel commandSPINEL_PROP_RCP_TIMESTAMP
to RCP to synchronize time. If Thread stack is not enabled, it still periodically wake up Thread host. I want to stop the time sync when the Thread stack is not enabled to save power. Could we set the Thread radio to be disabled by default, enable Thread radio when the Thread network interface is up and disable Thread radio when the Thread network interface is down? So that theradio_spinel.cpp
can start or stop the RCP time sync based on the radio's state.Beta Was this translation helpful? Give feedback.
All reactions