<?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 can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40535/lwm2m-can-not-connect-to-leshan-bootstrap-server</link><description>Hi, 
 I have been trying implement this , which i successfully implemented two week earlier. But for some reason i am not able to implement this anymore. I tried last week and till today. 
 Could you please suggest what might be the source of evil ? </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Nov 2018 10:16:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40535/lwm2m-can-not-connect-to-leshan-bootstrap-server" /><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/158588?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 10:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f4104e5-a57f-43cf-8866-3e2d609bb449</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;ok, great,&amp;nbsp; i will post the wireshark capture with USE_SECURITY set to 0.&lt;br /&gt;&lt;br /&gt;thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/158584?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 10:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80e5c3a-24fa-4b93-833b-cbd46223aa00</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was referring to the wireshark sniffer trace. If you use security, wireshark will not be able to decrypt, thus you&amp;#39;ll not be able to peek into the content.&lt;/p&gt;
&lt;p&gt;Could you run it without USE_SECURITY, then do a wireshark trace?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/158559?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 08:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:759de6ca-d886-42d4-8750-bbcde00e8c1a</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am running with USE_SECURITY set to &amp;#39;1&amp;#39;, and i am not sure what log are you asking for. I did not find anything in my /var/logs directory for wireshark. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/158478?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 15:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80454d18-2bac-4ea6-8f80-cc2aba4f054e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Could you share the wireshark log? Also, are you running with USE_SECURITY set to &amp;#39;0&amp;#39;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/158321?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 08:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49314d97-b8b5-4fe3-9fc1-598c1f601a1e</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Your comment helped a lot though there is still something that i am not clear about. here is the kernel version of my machine:&lt;br /&gt;&lt;br /&gt;uname -r&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;4.15.0-20-generic&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;i changed the sdk config according to your suggestions and I manged to execute boostrapping and registration of one client. What i am seeing in wireshark is confusing me. There are some message saying malformed packets and unknown packets. Any idea why ? Screenshot added below&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2018_2D00_11_2D00_21_5F00_10_2D00_37_2D00_42.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/157884?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 09:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a4e396-40c1-40de-a95b-7fb50f6b11a5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Which kernel version are you using? I assume you&amp;#39;re on v4.16, since you&amp;#39;re using Ubuntu LTS. If using v4.12 or newer, this define must be set to 0 in your sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__ble__6lowpan__config.html#ga5285fd3eaf403092286f607cd66850f3"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__ble__6lowpan__config.html#ga5285fd3eaf403092286f607cd66850f3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Judging by the wireshark logs, this might be the source of your issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you verify if this setting is correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/157759?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 14:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67a00b5-e611-4d8f-9e51-5200cd020571</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;Thanks for your reply,&lt;/p&gt;
&lt;p&gt;0. For some reasons WARNING message is gone.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1. Yes i can post configuration to the boostrap server and see that as follow:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/bootrap.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;also i can see a data folder being created under leshan directory. This data folder contains &lt;strong&gt;bootstrap.json &lt;/strong&gt;file.&lt;/p&gt;
&lt;p&gt;2. I know the default mode is secure mode in lwm2m client, i also tried non-secure mode by setting #if (USE_SECURITY == 0), in both case i failed to connect the client to the bootstrap server.&lt;/p&gt;
&lt;p&gt;And in the post command as you referred by the link, i put the json file with security instance, so that means my server also in security mode right ?&lt;/p&gt;
&lt;p&gt;3. When i trigger the button one, i expected a hello coap message for handshaking to start, but in wireshark this message is type &lt;strong&gt;unkown 254 &lt;/strong&gt;(You can see details in the capture below as i have added in the comment) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/157742?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 13:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e5112d-6f09-4e0b-a9f8-17e2397fb598</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Does your current user have permissions to that file? Have you edited this file via another user or similar?&lt;/p&gt;
&lt;p&gt;Are you able to post configuration to the bootstrap server via your localhost, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/iot_sdk_user_guides_leshan.html?cp=4_0_1_5_4_5_2_2#leshan_howto_config_post"&gt;like described here&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The lwm2m example is by default setup with security (main.c::USE_SECURITY). Is your server setup this way as well?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Bet regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/157559?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e4c7d3d-3389-4766-a4e3-a1aa828a735a</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;this is what i am getting in wireshark, there were quite few warning:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/wire2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M can not connect to leshan bootstrap server</title><link>https://devzone.nordicsemi.com/thread/157531?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 13:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9de596-90d1-4821-9dc2-fd041ce4d042</guid><dc:creator>shohidur</dc:creator><description>&lt;p&gt;i m getting this error and seems to me this the reason, could you please tell me how to get rid of following warning:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2018-11-15 15:55:26,412 WARN NetworkConfig - cannot write properties to file /home/iot/leshan/Californium.properties: Californium.properties (Permission denied)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>