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

Openthread stop working after "Update OpenThread revision #23632" #23674

Closed
retfie opened this issue Mar 22, 2020 · 5 comments
Closed

Openthread stop working after "Update OpenThread revision #23632" #23674

retfie opened this issue Mar 22, 2020 · 5 comments
Labels
area: OpenThread bug The issue is a bug, or the PR is fixing a bug

Comments

@retfie
Copy link
Contributor

retfie commented Mar 22, 2020

Describe the bug
Build lwm2m_client sample with OpenThread support, and manually commission it via shell.
Instead of joining already available network, it creates a new segment with the same network parameters and set his state as Leader instead of Child as with before this change. Besides it gets IP from the same local-mesh segment It's unable to ping border router IP or any node in this network.

To Reproduce
cp samples/net/sockets/echo_client/overlay-ot.conf samples/net/lwm2m_client
west build -b nrf52840_pca10056 samples/net/lwm2m_client -- -DCONF_FILE="prj.conf overlay-ot.conf"
west flash --hex-file build/zephyr/zephyr.hex

ot thread stop
ot channel
ot paind
ot extpanid
ot masterkey
ot networkname
ot thread start

Look for messages like:
net_l2_openthread: State changed! Flags: 0x000012a4 Current role: 2

Expected behavior
Current role, should change from 0 up to 2 or 3 and join existing network (in very close proximity) and not going to 4 (Leader) and form a new one, not reachable from other nodes in this network.

When module openthread is checkout at it's previous hash (3c6191eb4e8ca44b5f4eeaa696837bce14e83c69) everything works fine and node was able to connect and register with LWM2M server.

Impact
Openthread is not functional with this change.

Environment (please complete the following information):

  • OS: Linux
  • Zephyr version: 2.2.99
  • Commit SHA: 0095dae
@retfie retfie added the bug The issue is a bug, or the PR is fixing a bug label Mar 22, 2020
@rlubos
Copy link
Contributor

rlubos commented Mar 23, 2020

Hi, there was a change in the usptream OpenThread in default mbedTLS configuration, this can cause compability issues (in general cryptography does not work as expected). I'll open a PR with a fix soon.

@rlubos
Copy link
Contributor

rlubos commented Mar 23, 2020

Please give #23688 a try.

@retfie
Copy link
Contributor Author

retfie commented Mar 23, 2020

Hi Robert,
this PR #23688 fixes the problem, thanks !

@retfie retfie closed this as completed Mar 23, 2020
@ghlualven
Copy link

@retfie Hi, did you get the on-mesh prefixed address (fd11:22) from BR? I cannot on my side and do not know why. #23703

@retfie
Copy link
Contributor Author

retfie commented Mar 28, 2020

@lualven-duplicate sorry for late response, but yes, I've got on-mesh prefixed address, and I can ping it from BR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: OpenThread bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants