Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置dataset active不生效 (TZ-164) #17

Closed
HeFeng1947 opened this issue Jun 29, 2023 · 4 comments
Closed

设置dataset active不生效 (TZ-164) #17

HeFeng1947 opened this issue Jun 29, 2023 · 4 comments

Comments

@HeFeng1947
Copy link

HeFeng1947 commented Jun 29, 2023

之前一直基于旧版本开发测试,没有问题
IDF: 17451f1fb3d6485af5113d96b6836a7ce60efee8
esp_ot_cli_extension:0.3.0

最近更新到IDF:d2fb7240a713490b7a96d270ae31149e75c7ae0f esp_ot_cli_extension:0.4.6,出现了设置dataset active不生效的问题。
code中调用otDatasetSetActive(),返回正常且log打印正常,但是实际上不生效。后续在打开thread网络的时候,log显示:

E (935606) OPENTHREAD: esp_openthread_publish_meshcop_mdns(142): Failed to get OpenThread active dataset

测试了基于esp_ot_cli_extension的交互
串口输入:dataset init new &dataset commit active,返回也是done,但是实际上也不生效。
串口输入:dataset active永远都是Error 23: NotFound

尝试了回退IDF和esp_ot_cli_extension的版本,应用层完全不变,功能正常。

@github-actions github-actions bot changed the title 设置dataset active不生效 设置dataset active不生效 (TZ-164) Jun 29, 2023
@HeFeng1947
Copy link
Author

@zwx1995esp 请帮忙看下这个问题,ot组件存储网络信息到nvs这一部分的代码实现,近期有改动吗

@HeFeng1947
Copy link
Author

因为0.4.6版本的esp_ot_cli_extension,有OPENTHREAD_EVENT_SET_DNS_SERVER这个事件,我没办法在旧IDF基础上测试。考虑到调用ot的api也有问题,我觉得问题应该不是在esp_ot_cli_extension的实现。

@chshu
Copy link
Collaborator

chshu commented Jun 29, 2023

最近 IDF master 上我们更新了 nvs 的实现,删掉了 ot_storage:espressif/esp-idf@4b86ee1

基于 IDF master 的代码要做如下改动:
image

@HeFeng1947
Copy link
Author

最近 IDF master 上我们更新了 nvs 的实现,删掉了 ot_storage:espressif/esp-idf@4b86ee1

基于 IDF master 的代码要做如下改动: image

更新nvs配置之后测试正常,非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants