This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

LwM2M client does not connect with Leshan demo server on nRF52840 DK

Hello Team,

I have downloaded the Zephyr project and working on the LwM2M sample client application to make nRF52840 DK as an LwM2M client. I have followed the below link and able to compile the LwM2M client sample for nRF52840 and flash as well.

https://docs.zephyrproject.org/latest/samples/net/lwm2m_client/README.html#

Problem and Queries:

1) If I run the QEMU as a client then I am able to connect with the Leshan demo server and able to get the data from objects. But If I compile the same sample for nRF52840 then I am unable to register with the Leshan demo server. What I am missing here? If the same sample runs for QEMU then it should run for the nRF52840 as well. Although I am able to send the Openthread commands and able to connect with other devices as well.

2) In nRF5 SDK, I was able to send the data to the google cloud using CoAP APIs. I did not find the same UDP and CoAP APIs in the Zephyr project. WIll there be any specific APIs If I want to send the data to google cloud or LwM2M server?

Thanks in advance,

Hardik

  • Hello Hardik,

    I am working at the same project,though it han been a long time for you.

    Firstly,I am doing the same thing that you had done,but there is something diffirent.I also using the nrf52840DK 、 the OpenThread and the Leshan server.My device is able to connect the Leshan demon server,the application is not using the QEMU.The zephyrproject sample lwm2m-client has the support for the OpenThread ,follow this https://docs.zephyrproject.org/latest/samples/net/lwm2m_client/README.html#building-and-running go to the OpenThread support, you will know how to built and flash your application,but notice two things:1.the prj.conf and overlay-ot.conf,you should config the  ipv6 addr of the Leshan server in this two files. 2.Makesure your client-device can get an ipv6 address which is  assigned by your OpenThread border router.

    And I noticed that you are finding  the OTA process on nRF52840 via OpenThread,I am working on it now,I am using the LwM2M-client and the Leshan which I'm mentioned  above. There is some info https://docs.foundries.io/45/tutorial/basic-system.html  It is not working correctly,but I'm still working on it.

    Well, it’s been a long time, but hopefully it’ll help.

    Semi

Related