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

LWM2M registration timeout #12245

Closed
arun-kmr opened this issue Dec 30, 2018 · 10 comments
Closed

LWM2M registration timeout #12245

arun-kmr opened this issue Dec 30, 2018 · 10 comments
Assignees
Labels
Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug

Comments

@arun-kmr
Copy link

Describe the bug
The lwm2m example throws LWM2M registration timeout . The device seems to connect to the leshan server as i can see that on web interface of leshan-demo-server (which is running on http://localhost:8080 ). the client last update changes in every 30-45 second with new registration id.
uart log:
[00:04:52.172,454] net_lwm2m_rd_client: RD Client started with endpoint 'nrf52840_pca10056' and client lifetime 30
[00:04:52.682,037] net_lwm2m_rd_client.sm_send_registration: Non dtls
[00:04:52.682,067] net_lwm2m_rd_client.sm_send_registration: registration sent [fdde:ad00:beef:0:3696:3458:e373:be67]
[00:04:55.036,499] net_lwm2m_engine.retransmit_request: Resending message: 0x20001750
[00:04:59.726,745] net_lwm2m_engine.retransmit_request: Resending message: 0x20001750
[00:05:09.097,259] net_lwm2m_engine.retransmit_request: Resending message: 0x20001750
[00:05:27.828,308] net_lwm2m_rd_client: Registration Timeout
[00:05:27.828,308] net_lwm2m_client_app.rd_client_event: Disconnected
[00:05:27.828,308] net_lwm2m_client_app.rd_client_event: Registration failure!

To Reproduce
Steps to reproduce the behavior:

  1. cd sample/net/lwm2m

  2. mkdir build && cd build

  3. cmake -GNinja -DBOARD=nrf52840_pca10056 -DOVERLAY_CONFIG=overlay-ot.conf ..
    overlay-ot.conf.txt

  4. ninja

Expected behavior
It should successfully connected to the leshan server

Screenshots or console output
leshan
lwm2m

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr-sdk
  • Commit id : 06d7835
@arun-kmr arun-kmr added the bug The issue is a bug, or the PR is fixing a bug label Dec 30, 2018
@mike-scott
Copy link
Contributor

Oddly, I don't see overlay-ot.conf here: https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/net/lwm2m_client

I was going to add one, once #12343 is merged and communication via OT border router confirmed.

But right now, I don't think this is an issue?

@arun-kmr
Copy link
Author

arun-kmr commented Jan 5, 2019

I am using overlay-ot.conf defined in echo_client example. I think it is serving it's purpose. please take a look if i am missing something in that file. and of course i will check that PR #12343

@galak galak added the priority: medium Medium impact/importance bug label Jan 8, 2019
@nashif
Copy link
Member

nashif commented Feb 11, 2019

@mike-scott what is the status here?

@mike-scott
Copy link
Contributor

I need to merge an OpenThread overlay.conf that I've tested before this can be fixed. It's not so much of a "bug" as an untested feature atm.

@mike-scott
Copy link
Contributor

@nashif Do I have the ability to get an OpenThread overlay for LwM2M into 1.14 now that the freeze is active?

@mike-scott mike-scott added Feature A planned feature with a milestone and removed bug The issue is a bug, or the PR is fixing a bug labels Feb 11, 2019
@mike-scott
Copy link
Contributor

Removed bug tag and replaced with feature

@nashif nashif added Enhancement Changes/Updates/Additions to existing features and removed Feature A planned feature with a milestone labels Feb 21, 2019
@arun-kmr
Copy link
Author

arun-kmr commented Mar 8, 2019

got it working after pr merger.

@arun-kmr arun-kmr closed this as completed Mar 8, 2019
@nduongn
Copy link

nduongn commented Aug 22, 2019

Hi @ARN-SOFT, Can you help to share your overlay-ot.conf file for lwm2m. I test with the overlay-ot.conf.txt you shared in the first post but it can not run. Thanks.

@mike-scott
Copy link
Contributor

@andynnd Can you open a new issue asking for an overlay-ot.conf to be added to the LwM2M sample? I have one and will get to it when I'm back from ELC.

@nduongn
Copy link

nduongn commented Aug 23, 2019

@mike-scott I just open a new issue at #18601. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants