<?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>Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15470/setting-up-lwm2m-server-with-nrf-iot-sdk</link><description>Hi, 
 I have a nordic chip (nrf2832) and I am trying to use it as a LWM2M client and register it to a LWM2M Server. I want to achieve this:
 developer.nordicsemi.com/.../LWM2M_client.svg 
 I have already done the steps described in
 developer.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2016 09:13:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15470/setting-up-lwm2m-server-with-nrf-iot-sdk" /><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59086?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 09:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29639c6-5060-416a-a7c5-3d18641a35b6</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Good that you figured it out :) I guess the reason the route was not automatically added from the radvd config was the same reason that the btx interfaces could not be added automatically, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.iotsdk.v0.9.0/iot_sdk_user_guides_radvd.html?cp=6_1_0_2_3_2#iot_sdk_radvd_alternatives."&gt;infocenter.nordicsemi.com/.../iot_sdk_user_guides_radvd.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59085?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 06:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882e96cf-c01d-448d-8f21-9eedd25b5071</guid><dc:creator>arjunkamath1</dc:creator><description>&lt;p&gt;We got it working here... Everything Ole mentioned is correct, but we needed to do a few additional steps. I&amp;#39;ll write them here for future reference.&lt;/p&gt;
&lt;p&gt;Firstly, having a look at the diagram here helped a lot:
&lt;a href="http://teamarin.net/2015/03/03/ipv6-brewed-coffee-bluetooth-smart/"&gt;teamarin.net/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As per that, we needed to add the gateway addresses on the rasPi manually:
sudo ifconfig eth0 add 2001:db81::1/64
sudo ifconfig bt0 add 2001:db82::1/64&lt;/p&gt;
&lt;p&gt;Then, we also needed to add routes on the rasPi (not sure why this wasn&amp;#39;t automatically added):
sudo ip route add 2001:db81::/64 dev eth0
sudo ip route add 2001:db82::/64 dev bt0
sudo ip route add default dev eth0&lt;/p&gt;
&lt;p&gt;After this, we were able to see bootstrap message from nRF to our bootstrap server. We&amp;#39;re still having version issues, the bootstrapping server complains, but we&amp;#39;re looking into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59092?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 14:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a23c49-f17d-4548-bffe-1738994828e1</guid><dc:creator>arjunkamath1</dc:creator><description>&lt;p&gt;Hi,
We&amp;#39;ve spent an entire day on this and we haven&amp;#39;t get this to work :(&lt;/p&gt;
&lt;p&gt;I added interfaces on the RasPi
sudo ifconfig eth0 add 2001:db81::1
sudo ifconfig bt0 add 2001:db82::1&lt;/p&gt;
&lt;p&gt;Strangely enough I can ping 2001:db82::1 from my laptop but not 2001:db81::1 which is the actual router address. From the RasPi I can ping other PCs connected to the LAN which is great. On the RasPi I run tcpdump and I can actually see the bootstrap request coming and directed to the right address, but they are not forwarded apparently. I feel like it&amp;#39;s a routing problem... so maybe this helps?
sudo ip route add 2001:db81::/64 dev eth0.. but it didn&amp;#39;t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59091?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 06:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8590ff50-c28c-4846-9907-0ce40a1eb966</guid><dc:creator>arjunkamath1</dc:creator><description>&lt;p&gt;Alright, this makes so much more sense. Thanks :) At least I understood something correctly. I&amp;#39;ll try this out and hopefully it will work. Also, is there a way to find out the exact Leshan and IoT SDK versions used in this.. this will help in debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59090?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 14:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7cb3e3-e84a-4b14-8565-d1557fcb02d9</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Yes you should run the &lt;code&gt;ifconfig eth0 add 2001:db81::1/64&lt;/code&gt; and &lt;code&gt;ifconfig eth0 add 2001:db81::2/64&lt;/code&gt; on the ubuntu server. This is because the bootstrap server and the leshan server use the same port (DTLS for security).&lt;/p&gt;
&lt;p&gt;I did not actually try it out (which is why there are errors) so I don&amp;#39;t know if the problem is the Leshan version.&lt;/p&gt;
&lt;p&gt;You need to add the &lt;code&gt;route::/0 {};&lt;/code&gt; to the radvd config to route between the interfaces, good catch ;)&lt;/p&gt;
&lt;p&gt;I will update my answer with the correct info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59089?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 12:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6cf3037-bb92-4dc5-b519-946257cbd400</guid><dc:creator>arjunkamath1</dc:creator><description>&lt;p&gt;&lt;a href="http://teamarin.net/2015/03/03/ipv6-brewed-coffee-bluetooth-smart/"&gt;teamarin.net/.../&lt;/a&gt; has a similar configuration right? Doesn&amp;#39;t the &amp;quot; route::/0 {}; &amp;quot; part add the routes between interfaces?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59088?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 09:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70677426-e722-478b-ab18-157d3bc127ec</guid><dc:creator>arjunkamath1</dc:creator><description>&lt;p&gt;Hi Ole,&lt;/p&gt;
&lt;p&gt;Thanks for the response. Actually, we first tried with bootstrap and management server on the RasPi and we managed to get something to the bootstrap server. There was an error, and we felt that this was since we used a recent version of Leshan and something have probably changed. Can you let us know which release of Leshan worked for you?&lt;/p&gt;
&lt;p&gt;Secondly, regarding your configuration above, I have some questions. Firstly, here&amp;#39;s a picture of the configuration as I understand: &lt;a href="http://www.imageno.com/mfm8iqo3lximpic.html"&gt;www.imageno.com/mfm8iqo3lximpic.html&lt;/a&gt;. With this the nrf1 will get a IP from 2001:db82::/64 and the ubuntu server gets an IP from 2001:db81::/64&lt;/p&gt;
&lt;p&gt;Now, should I run ifconfig eth0 add 2001:db8::1/64 and ifconfig eth0 add 2001:db8::2/64 on the ubuntu server? Shouldn&amp;#39;t the IPs belong to the subnet 2001:db81::/64 or am I missing something?&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t I also need to add routes on the RasPi?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up LwM2M server with nrf IOT SDK</title><link>https://devzone.nordicsemi.com/thread/59087?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2016 15:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:310bae7e-abcf-4668-8d09-e7b2943f88b8</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;&lt;strong&gt;EDIT 2016:08:03:&lt;/strong&gt; Changed the radvd config and the address in the interfaces added on the server side according to comments from this date.&lt;/p&gt;
&lt;p&gt;The example is using a linux machine with a Bluetooth dongle running the servers.&lt;/p&gt;
&lt;p&gt;If you want a raspberry pi to do the BLE routing and another machine running the servers, it gets a bit more complicated. &lt;strong&gt;I suggest that you try the example on one machine first, before trying to do it with raspberry pi as the router.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2001:db8::1 is the address of the bootstrap server and 2001:db8::2 is the address of the Leshan server.&lt;/p&gt;
&lt;p&gt;If you want to do it on two machines this is what you have to do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create two addresses for the two servers on Ethernet interface (on the device hosting the servers):
ifconfig eth0 add 2001:db81::1/64
ifconfig eth0 add 2001:db81::2/64&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configure radvd to distribute a prefix on the Ethernet interface (and change bt0 to avoid conflict):&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.iotsdk.v0.9.0/iot_sdk_user_guides_radvd.html?cp=6_1_0_2_3"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;interface eth0
{
    AdvSendAdvert on;
    prefix 2001:db81::/64
    {
        AdvOnLink on;
        AdvAutonomous on;
        AdvRouterAddr on;
    };

    route ::/0
    {
    };
};

interface bt0
{
    AdvSendAdvert on;
    prefix 2001:db82::/64
    {
        AdvOnLink off;
        AdvAutonomous on;
        AdvRouterAddr on;
    };
};
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;When adding an interface to bt0 you have to choose something other than 2001:db8::1/64 or 2001:db8::2/64.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>