Power Settings Diag Interface Clarification #10611
Replies: 2 comments 2 replies
-
<1> These functions could be implemented by the platform when <2> All of these four functions have been declared as week functions. Whether to implement these functions depends on your product's requirements. You can implement these functions by yourself, or just use the default implementation in power_calibration.cpp, or do not implement them if you do not need the power calibration feature. <3> For the function <4> The |
Beta Was this translation helpful? Give feedback.
-
Refer to the latest update of the platform power related APIs: #10839 |
Beta Was this translation helpful? Give feedback.
-
Hello, I have some questions about these four diag functions related to power settings:
otPlatDiagRadioSetRawPowerSetting
otPlatDiagRadioGetRawPowerSetting
otPlatDiagRadioRawPowerSettingEnable
otPlatDiagRadioGetPowerSettings
My first question is whether or not these functions make sense to implement in the platform library when
OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
is disabled.The last function in this list,
otPlatDiagRadioGetPowerSettings
, is non-weakly implemented when power calibration is enabled, and it seems like the rest of these functions are appropriate to implement in this case. However, I am unsure if it is sensible for these functions to be implemented if power calibration is disabled. It doesn't appear to me that these are used in this configuration, but I also don't see any basis for this assumption in the diag header or the power calibration code.My other question is related the power calibration feature with regards to the diag startup process:
On an SOC device,
Diags::ProcessStart
method callsotPlatRadioSetTransmitPower
. WhenOPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
is enabled, power_calibration.cpp also implementsotPlatRadioSetChannelTargetPower
, and the note in this function description suggests that only one of these two otPlatRadio functions should be enabled at one time.Is
OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
generally supported with SOC configurations or only with RCP configurations? It would be nice if this is clarified, as I'm not sure if there is disagreement with this operation on an SOC, or if this is an unsupported configuration.I would greatly appreciate any clarity, corrections, or other thoughts on this topic.
Beta Was this translation helpful? Give feedback.
All reactions