<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67757/lwm2m-client-does-not-connect-with-leshan-demo-server-on-nrf52840-dk</link><description>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. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jan 2021 07:59:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67757/lwm2m-client-does-not-connect-with-leshan-demo-server-on-nrf52840-dk" /><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/290658?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 07:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9002d7b3-0354-4b38-abe1-dea6b154ab6b</guid><dc:creator>SemiBlain</dc:creator><description>&lt;p&gt;Hello Hardik,&lt;/p&gt;
&lt;p&gt;I am working at the same project,though it han been a long time for you.&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/samples/net/lwm2m_client/README.html#building-and-running"&gt;https://docs.zephyrproject.org/latest/samples/net/lwm2m_client/README.html#building-and-running&lt;/a&gt;&amp;nbsp;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&amp;nbsp; ipv6 addr of the Leshan server in this two files. 2.Makesure your client-device can get an ipv6 address which is&amp;nbsp; a&lt;span&gt;ssigned by your OpenThread border router.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I noticed that you are finding&amp;nbsp;&lt;/span&gt;&amp;nbsp;the OTA process on nRF52840 via OpenThread,I am working on it now,I am using the LwM2M-client and the Leshan which I&amp;#39;m&amp;nbsp;&lt;span&gt;mentioned&amp;nbsp;&lt;/span&gt; above. There is some info&amp;nbsp;&lt;a href="https://docs.foundries.io/45/tutorial/basic-system.html"&gt;https://docs.foundries.io/45/tutorial/basic-system.html&lt;/a&gt;&amp;nbsp; It is not working correctly,but I&amp;#39;m still working on it.&lt;/p&gt;
&lt;p&gt;Well, it&amp;rsquo;s been a long time, but hopefully it&amp;rsquo;ll help.&lt;/p&gt;
&lt;p&gt;Semi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/280439?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 16:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:306ba99c-fc68-4ffd-ac06-52ca04aa35aa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="Hardik Prajapati"]1) Is there anything I can use the LwM2M client application for nRF52840?[/quote]
&lt;p&gt;If you are referring to the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/samples/nrf9160/lwm2m_client/README.html"&gt;LwM2M Client application&lt;/a&gt; in nRF Connect SDK, this is only supported on nRF9160. The LwM2M Client in Zephyr supports OpenThread transport, and can be run on nRF52840, but this is so recently added to Zephyr that it is not included in the current Zephyr version integrated with nRF Connect SDK. Since this is developed by Zephyr, you need to contact the Zephyr community regarding support for this sample.&lt;/p&gt;
[quote user="Hardik Prajapati"]2) I am able to connect the client to the border router using OT commands, so If I want to create a server-client environment, which client app should I use to use for the same?[/quote]
&lt;p&gt;By connect, I assume you mean they are part of the same Thread network? The border router provides the Thread network with internet connectivity. The server can run anywhere, as long as you have the correct connectivity to the border router (IPv4, IPv6).&amp;nbsp;&lt;/p&gt;
[quote user="Hardik Prajapati"]3) Does any client application support the ARM Pelion server?[/quote]
&lt;p&gt;Unfortunately, I&amp;#39;m not aware of any client applications with support for ARM Pelion server in nRF Connect SDK yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/279180?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 10:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dffd0bff-8aeb-4bba-988c-308520ab28ab</guid><dc:creator>Hardik Prajapati</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know whether my border router is connected with the Leshan demo server or not, but it is connected with the internet and the client should send and retrieve the data from the server if it requests.&lt;/p&gt;
&lt;p&gt;Also, I have started exploring nRF connect SDK too which uses the zephyr implementation, and tested the Openthread CLI and NCP apps as well.&lt;/p&gt;
&lt;p&gt;Can you please help me with my below queries on nRF connect SDK:&lt;/p&gt;
&lt;p&gt;1) Is there anything I can use the LwM2M client application for nRF52840?&lt;/p&gt;
&lt;p&gt;2) I am able to connect the client to the border router using OT commands, so If I want to create a server-client environment, which client app should I use to use for the same?&lt;/p&gt;
&lt;p&gt;3) Does any client application support the ARM Pelion server?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hardik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/278218?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 09:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec85cd0d-0623-4fcd-a0be-836f9b6b6dfb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Hardik,&lt;/p&gt;
&lt;p&gt;Is your Border Router communicating with your Leshan demo server? Is your nRF52840 communicating with the Border router?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/277951?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 06:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80502f0-8793-4007-8e81-db2543fc5ffe</guid><dc:creator>Hardik Prajapati</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;First, I have flashed the LwM2M client example on my nRF52840 DK and then connected to the border router using the OT commands, this is how I connect the Openthread to the internet. I have already tested with nRF5 SDK&amp;#39;s examples with the same setup so assuming this will also work in the same manner.&lt;/p&gt;
&lt;p&gt;QEMU is just an emulator if you don&amp;#39;t have a device or don&amp;#39;t want to test with it.&lt;/p&gt;
&lt;p&gt;I am using the bare Zephyr project, have not&amp;nbsp;tried with the nRF Connect SDK yet.&lt;/p&gt;
&lt;p&gt;Please check the below details for more information on how exactly I am testing.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Environment Setup:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1) With QEMU:&lt;/p&gt;
&lt;p&gt;A Leshan demo server is running on a local machine and on the same machine QEMU is running with the LwM2M client sample app. The QEMU is communicating with the server using sockets. This is working as expected.&lt;/p&gt;
&lt;p&gt;2) With nRF52840:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The nRF52840 is flashed with the LwM2M client sample app and connected to the same machine where the Leshan demo server is running. The border router is connected to another machine. The nRF52840 is connected with the border router via Openthread.&lt;/p&gt;
&lt;p&gt;Let me know what I am missing here. Should I connect the border router too to the same machine where the server is running?&lt;/p&gt;
&lt;p&gt;Thanks and BR,&lt;/p&gt;
&lt;p&gt;Hardik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M client does not connect with Leshan demo server on nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/277659?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 15:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447f0f9a-9b19-4756-84ff-5b4e0f4bf816</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I have never seen the Leshan demo server before, so please be aware that I know nothing about it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What do you use to communicate between your openthread network and the internet?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""] If the same sample runs for QEMU then it should run for the nRF52840 as well.[/quote]
&lt;p&gt;&amp;nbsp;Maybe? What is a QEMU?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I did not find the same UDP and CoAP APIs in the Zephyr project.[/quote]
&lt;p&gt;&amp;nbsp;Do you use the &amp;quot;bare&amp;quot; Zephyr project, or do you refer to the nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently the openthread support is a bit limited in the nRF Connect SDK, but that is something we are working on.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>