CLI command linkmetrics with OTBR

151 views
Skip to first unread message

Yasmine Safi

unread,
Jul 1, 2021, 5:20:18 AM7/1/21
to openthread-users

Dear OpenThread Team,

I am currently using the OTBR with ot-rcp project from siliconlabs flahed on MGM210.

I was trying to run linkmetrics command on the border router as below : 

sudo ot-ctl linkmetrics query <ip_addr> single qmr

But it is always returning Invalid Command.We also made sure that the feature 
OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE is enabled in the features file sl_openthread_features_config.h. Still the same error.

My question is: 
- Is OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE defined elsewhere ( not in sl_openthread_features_config.h ) ? if so, how can I enable it ? 


Thank you in advance :) 

Li Cao

unread,
Jul 1, 2021, 6:23:18 AM7/1/21
to openthread-users
Hi Yasmine,

Thanks for reaching out. Recently we updated the macro, spliting it into two: `OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE` and `OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE`. The default definition is at mle.h:270.

To enable it: How did you build OTBR? If you are using cmake, make sure you are using Thread 1.2 and add `-DOT_LINK_METRICS_INITIATOR=ON -DOT_LINK_METRICS_SUBJECT=ON` when building it.

Note: I have been working on nRF platform. I'm not sure if the RCP on silab supports Thread 1.2. If it doesn't, otbr-agent with 1.2 cannot start (will exit after it finds the RCP doesn't support 1.2).

Best regards,
Li

Yasmine Safi

unread,
Jul 1, 2021, 7:43:58 AM7/1/21
to openthread-users
Hello, 
Thank you for your reply. 

Latest SDK from Silabs is now supporting Thread 1.2

I think the issue was with the build, I didn't add the defines you mentioned above.

I have one more question: where can I find the list of optional defines that I can add to build. 

Thanks again.

best regards,
Yasmine

Jonathan Hui

unread,
Jul 1, 2021, 10:43:00 AM7/1/21
to Yasmine Safi, openthread-users
For build configs, see src/core/config in openthread/openthread.

--
Jonathan Hui



--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/b1c186a5-ea8d-4889-ac74-228f01ea951cn%40googlegroups.com.

Yasmine Safi

unread,
Jul 1, 2021, 10:52:43 AM7/1/21
to openthread-users
Thanks, I'll check it 

Sébastien Parent-Charette

unread,
Jul 1, 2021, 11:43:07 AM7/1/21
to openthread-users
Hi Yasmine,

I'm having a look at what you've described in this conversation and checking to see if there's anything else that would be required when using our GSDK 3.2 to build your OTBR and use this CLI command. I'll post again soon once I have more information.

Sincerely,

Sébastien Parent-Charette

unread,
Jul 1, 2021, 2:46:17 PM7/1/21
to openthread-users
Hi Yasmine,

I've discussed this CLI command with our dev team and it seems this feature change came out a few days after the release of our newest GSDK 3.2/OpenThread SDK 1.2.0.0 GA came out just a few days before. Therefore, it will not work as expected with the current GSDK.

That being said, the team is aware of this and a bug report was filed. It should be addressed in a coming patch release. In the meantime, you should use OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE when using the stack version shipped with GSDK 3.2.

If you still have issues, a possible cause would be a mismatched stack version between your projects (OTBR, RCP). Please make sure that all your projects are generated using the same OpenThread version (specific commit) as the GSDK 3.2 or simply generated from the GSDK 3.2. You can see the commit version used in the release notes in section 1.1 & section 1.2.

Sincerely,

On Thursday, July 1, 2021 at 10:52:43 a.m. UTC-4 Yasmine Safi wrote:

Yasmine Safi

unread,
Jul 1, 2021, 5:44:35 PM7/1/21
to openthread-users
Hi Sebastian,

Thank you for your reply. 
I was using different commits ( OTBR is more recent than RCP ) , so as you mentioned that could be the reason why
OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE  didn't work with the CLI command.

Thanks again for your help!

Best regards,
Yasmine
Reply all
Reply to author
Forward
0 new messages