espressif / esp-thread-br

Espressif Thread Border Router SDK
Apache License 2.0
114 stars 25 forks source link

Failure to set active dataset (TZ-895) #68

Closed motters closed 5 months ago

motters commented 6 months ago

Hi,

We've been copy'ing and past the openthread br code into our project which uses ESP-IDF v5.1 with ESP-Ardunio.

Everything works as expected however it is not possible to set to set a new dataset active, see below:

image

We have tried setting the active dataset through code and though the cli and both fail to set it.

image

Our question is:

Cheers!

Additional info: in esp_openthead_settings.c OT_ERROR_NOT_FOUND is always returned when getting network details image

esp_openthead_settings.c OT_ERROR_NONE is always returned when setting the network details image

motters commented 6 months ago

Using nvs_tool.py i can conform he OT dataset is being wrote to flash

image

So the question is why can't it read the dataset from flash.

motters commented 6 months ago

I think the problem is solved. port_config.storage_partition_name was changed from ot_storage to nvs

This commit was a breaking change our orginal BR months back to the current commit https://github.com/espressif/esp-thread-br/commit/f3c952a9ce369f5d6b78e27dd764c8af11fb3d19

Although it's still strange that the data was wrote with no error but could not be read.

motters commented 5 months ago

This was indeed the issue encase anyone else has it.

zwx1995esp commented 5 months ago

Hi, sorry for missing this issue, we recommend using esp-thread-br v1.0 based IDF v5.1.3. So could you please update your codebase?