Missing diag, meshdiag commands in OpenThread CLI example

pptzpp
Posts: 6
Joined: Thu Aug 19, 2021 10:59 am

Missing diag, meshdiag commands in OpenThread CLI example

Postby pptzpp » Tue May 07, 2024 2:50 pm

I am building the ot_cli example for esp32h2 and want to enable the mesh diagnostic command diag (I would expect meshdiag to also be there, but that one doesn't show up in the menu — could be related to config issues described below). Empirically, it does not suffice to enable CONFIG_OPENTHREAD_DIAG. I'm not sure, but from grepping the openthread component of esp-idf, I believe that the OPENTHREAD_BORDER_ROUTER option should be enabled for that:

Code: Select all

openthread/openthread/src/core/config/mesh_diag.h:#define OPENTHREAD_CONFIG_MESH_DIAG_ENABLE OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
So I try to enable the border router in the example project build, and that fails on idf 5.1.2 and 5.2.1 with the error:

Code: Select all

openthread/lib/esp32h2/libopenthread_br.a', needed by 'esp_ot_cli.elf', missing and no known rule to make it
And, indeed, for esp32h2 the prebuilt lib is missing, while it's present for other processor types.

Thoughts appreciated.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 73 guests