<?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>nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52047/nrf9160-lwm2m-sample-with-leshan-prj-conf-setup</link><description>I&amp;#39;ve been trying to run the LWM2M sample from here but I&amp;#39;ve been running into some issues. Leshan provides two URLs for publicly accessible test LWM2M servers, coap://leshan.eclipseprojects.io:5683 and coaps://leshan.eclipseprojects.io:5684, as described</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Oct 2019 06:29:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52047/nrf9160-lwm2m-sample-with-leshan-prj-conf-setup" /><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/213093?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 06:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2870eac9-0e42-4f32-bc10-0fa79e4b6063</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Our NCS team informed me that there is a fix for the DNS issues (the reason for why you have to use an IP), Please try to update your master branch and let me know how that works. Also, the leshan servers seem to be more stable at the moment.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/212172?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 06:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b859877-44f2-4686-b566-a9e5c04e987d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I forwarded your answer to our team.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote]&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;app_lwm2m_connmon: Unable to obtain modem parameters: -11&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This should be fixed in the latest version on master branch. Please update your repo with a &lt;em&gt;git pull &lt;/em&gt;and&lt;em&gt; west update.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[quote][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:08.342,346]&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;lt;inf&amp;gt; net_lwm2m_rd_client: RD Client started with endpoint &amp;#39;nrf-xxxxxxxxxxxxxxx&amp;#39; with client lifetime 30&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:19.038,024]&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: 0x200226a4&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:39.038,909]&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: 0x200226a4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is unfortunately nothing we can do with, as this is due to server instability. Our team has observed the same behaviour when connecting to &amp;quot;leshan.eclipseprojects.io&amp;quot;. Testing against a non-public LwM2M server (running leshan implementation as well) was successfull, with no issues.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/211640?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 20:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5429a3ae-9753-4e1c-abb3-b9af0db390ca</guid><dc:creator>bjull</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;I tried using the IP address and it looks like it worked a bit better. Now I get an error getting the modem parameters and I&amp;#39;m unabled to connect to the LWM2M server. I did some debugging and it looks like the error occurs inside modem_info_params_get when trying to get cellid_hex. After sending the AT command and reading, modem_info_parse returns E2BIG.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the console output:&lt;/p&gt;
&lt;p&gt;uart:~$ ***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1281-g40b430ba977c *****&lt;br /&gt;[00:00:00.340,911] &amp;lt;inf&amp;gt; app_lwm2m_client: Run LWM2M client&lt;br /&gt;[00:00:00.341,308] &amp;lt;err&amp;gt; buzzer: Could not bind to device&lt;br /&gt;[00:00:00.341,308] &amp;lt;err&amp;gt; ui: Could not enable buzzer, err code: -19&lt;br /&gt;[00:00:00.341,827] &amp;lt;inf&amp;gt; app_lwm2m_client: Initializing modem.&lt;br /&gt;[00:00:00.342,651] &amp;lt;inf&amp;gt; app_lwm2m_client: endpoint: nrf-xxxxxxxxxxxxxxx&lt;br /&gt;[00:00:00.343,170] &amp;lt;dbg&amp;gt; app_lwm2m_loc.lwm2m_init_location: GPS device found: GPS_SIM&lt;br /&gt;[00:00:00.343,811] &amp;lt;dbg&amp;gt; app_lwm2m_loc.update_location_data: nmea_data&lt;br /&gt;[00:00:00.343,963] &amp;lt;err&amp;gt; app_lwm2m_temp: No temperature device found.&lt;br /&gt;[00:00:00.344,573] &amp;lt;inf&amp;gt; app_lwm2m_accel: accelerometer normal&lt;br /&gt;[00:00:00.344,696] &amp;lt;inf&amp;gt; app_lwm2m_firmware: Update Counter: current 0, update 0&lt;br /&gt;[00:00:00.344,726] &amp;lt;inf&amp;gt; app_lwm2m_firmware: Image is confirmed OK&lt;br /&gt;[00:00:00.344,726] &amp;lt;inf&amp;gt; app_lwm2m_firmware: Firmware updated successfully&lt;br /&gt;[00:00:02.734,252] &amp;lt;inf&amp;gt; app_lwm2m_client: Connecting to LTE network.&lt;br /&gt;[00:00:02.734,252] &amp;lt;inf&amp;gt; app_lwm2m_client: This may take several minutes.&lt;br /&gt;[00:00:07.415,252] &amp;lt;inf&amp;gt; app_lwm2m_client: Connected to LTE network&lt;br /&gt;[00:00:07.417,114] &amp;lt;inf&amp;gt; net_lwm2m_rd_client: LWM2M Client: nrf-xxxxxxxxxxxxxxx&lt;br /&gt;[00:00:07.423,522] &amp;lt;err&amp;gt; app_lwm2m_connmon: Unable to obtain modem parameters: -11&lt;br /&gt;[00:00:08.342,346] &amp;lt;inf&amp;gt; net_lwm2m_rd_client: RD Client started with endpoint &amp;#39;nrf-xxxxxxxxxxxxxxx&amp;#39; with client lifetime 30&lt;br /&gt;[00:00:19.038,024] &amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: 0x200226a4&lt;br /&gt;[00:00:39.038,909] &amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: 0x200226a4&lt;br /&gt;[00:01:00.342,437] &amp;lt;dbg&amp;gt; app_lwm2m_loc.update_location_data: nmea_data&lt;br /&gt;[00:01:19.048,065] &amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: 0x200226a4&lt;br /&gt;[00:02:00.350,982] &amp;lt;dbg&amp;gt; app_lwm2m_loc.update_location_data: nmea_data&lt;br /&gt;[00:02:39.057,189] &amp;lt;wrn&amp;gt; net_lwm2m_rd_client: Registration Timeout&lt;br /&gt;[00:02:39.057,189] &amp;lt;dbg&amp;gt; app_lwm2m_client.rd_client_event: Disconnected&lt;br /&gt;[00:02:39.057,220] &amp;lt;dbg&amp;gt; app_lwm2m_client.rd_client_event: Registration failure!&lt;br /&gt;[00:02:39.577,178] &amp;lt;inf&amp;gt; net_lwm2m_rd_client: RD Client started with endpoint &amp;#39;nrf-xxxxxxxxxxxxxxx&amp;#39; with client lifetime 30&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/211435?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 07:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b555b8-cbb3-4647-90d6-c3bcb65acd62</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Ben,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please try to use an IP address instead of server name:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_APP_LWM2M_SERVER=&amp;quot;23.97.187.154&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;According to the responsible engineer, this is a known bug and will be handled in a future release.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/210828?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 06:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1220cad1-c46a-4d5d-b2ad-aca5ca5f21be</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;There maybe many reasons for that, but one, which occurred frequently over the years, was the encoding of the PSK secret. Leshan supports hex to enable access to a full binary secret. Other just use the ASCII string direct as secret. To check that, change the secret in the client to &amp;quot;0123456789ABCDEF&amp;quot; and on leshan to &amp;quot;30313233343536373839414243444546&amp;quot;. Good luck :-).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/210006?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 07:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9724e40-a0c5-4531-bde5-af1e82b0eca3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Ben,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry, but no target date available yet. Will keep you posted.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/209934?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2019 19:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977577e9-ef22-42b1-a83e-7f5ad47bbea0</guid><dc:creator>bjull</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your feedback and flagging to the SDK team. Could you please provide a target date for the resolution of the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Ben&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/209425?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 12:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c0933f-4768-4194-9374-ff1245a6f88d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am seeing the same here, and unfortunately, nothing to do at the moment.&amp;nbsp; Will report as a bug to our SDK team.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 LWM2M sample with Leshan prj.conf setup</title><link>https://devzone.nordicsemi.com/thread/209346?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 08:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3af1fc-796b-4ba4-84df-ff5d3f7531f2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""] I&amp;#39;ve followed the instructions on the &amp;quot;nRF9160: LwM2M Client&amp;quot; page but I&amp;#39;ve been unable to connect to the LWM2M server[/quote]
&lt;p&gt;The only thing that comes to mind, is that in the documentation it&amp;nbsp;to configure prj.config with:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_APP_LWM2M_SERVER=&amp;quot;{IP address of LwM2M server}&amp;quot;
CONFIG_LWM2M_PEER_PORT=5684&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, the error message:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:17:17.579,772] &amp;lt;err&amp;gt; net_lwm2m_rd_client: Cannot init LWM2M engine (-22)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;quot;Cannot init LWM2M engine (-22) indicates, according to&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/lib/libc/minimal/include/errno.h"&gt;errno.h&lt;/a&gt;, an invalid argument when calling &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/71dcbe440a732b052424c8dfe9129c28fbb054db/subsys/net/lib/lwm2m/lwm2m_rd_client.c#L698"&gt;lwm2m_engine_start()&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Will investigate here.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>