Clarification on Power calibration feature #9899
-
I was looking into the power calibration feature and there are two different macros that are provided,
Is my understanding correct? If so where and how is option 4 useful. I see that all the platform APIs are already implemented in |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
The The So the Both the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response @zhanglongxia. So if I understand correctly, both the macros can be enabled on RCP and only the If this is the case, is there a way for platforms to know when the table is updated? Also would it make sense to update the function documentations to indicate that there is a default implementation of the APIs like |
Beta Was this translation helpful? Give feedback.
-
@zhanglongxia can you confirm my assumptions above? |
Beta Was this translation helpful? Give feedback.
-
I think your understanding is correct. We assume that the calibration table and the target power table are fixed, and the Thread host sends the calibration table and the target power table to the RCP at the beginning of the Thread stack starts. So the RCP doesn't need to care about whether the table has updated. If you want to update the table after thread stack is working, you may need to add an extra feature to implement it. That's a good idea to add extra comments to the API documentations to let the developer know the default implementation. |
Beta Was this translation helpful? Give feedback.
-
@zhanglongxia when power calibration is enabled the documentation states that |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification @zhanglongxia. This is also one of the documentation item that we can update. I will try to raise a PR to add a note to this effect. |
Beta Was this translation helpful? Give feedback.
-
@zhanglongxia is there any documentation to understand the power configuration in openthread.conf.example? I wanted to check if there is way to modify the conf file to provide different power calibration based on the RegulatoryDomain. Something similar to what we have for channelMask. |
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.
The
OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
is used to enable the OpenThread implemented power calibration feature on the RCP side.The
OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
is mainly used to enable the power calibration feature on the host side. The power calibration related spinel operations are also guarded byOPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
.So the
OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
andOPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
should not be enabled at the same time on POSIX platform (eg. Thread host).Both the
OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
andOPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
can be enabled on the RCP si…