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

ot-br-posix losing network configuration sporadically #2566

Open
dakhnod opened this issue Oct 28, 2024 · 1 comment
Open

ot-br-posix losing network configuration sporadically #2566

dakhnod opened this issue Oct 28, 2024 · 1 comment

Comments

@dakhnod
Copy link

dakhnod commented Oct 28, 2024

I have ot-br-posix running under linux, and it allows to join a network using ot-ctl.
This all works fine, until the RCP refuses to connect all of a sudden.
ot-ctl dataset active yields Not found.
Only re-joining the network helps.

By now I found out that the host system stores the configuration under /var/lib/thread.
So far, I cannot tell if the configuration in the folder also disappears.

In any case, whould could cause the border router to simply lose its dataset?

@jwhui
Copy link
Member

jwhui commented Oct 28, 2024

On posix systems, OpenThread stores the settings in a file. You can find the implementation here:
https://github.com/openthread/openthread/blob/main/src/posix/platform/settings.cpp

The settings will only be list if:

  1. the settings are explicitly deleted (e.g. by a call to otPlatSettingsDelete())
  2. the settings file is deleted
  3. the settings file becomes corrupt

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