<?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>Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40299/access-the-internet-over-thread-from-android-things</link><description>I&amp;#39;m trying to connect to the Internet from Android Things connected to an NCP through the OpenThread Border Router. 
 1 Raspberry PI running RaspPi_OT_Border_Router_Demo_v2.0.0-1.alpha. This device is also connected to IPv4 ethernet connection to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Feb 2019 15:58:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40299/access-the-internet-over-thread-from-android-things" /><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/173295?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 15:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee252b7a-6234-4b95-87bf-f1647183308a</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;I still get&amp;nbsp;connect failed: ENETUNREACH (Network is unreachable) after running that command.&lt;/p&gt;
&lt;p&gt;At this point, based on Google&amp;#39;s comments that they are focusing Android Things on smart screens and smart speakers only, this project will adjust to use something other than Android Things.&amp;nbsp; Thanks for all the help so far, but we don&amp;#39;t need to continue this further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/171077?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 10:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3f64df-38b3-4f4e-aa03-810be19191f7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you try to add a route through the border router:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adb shell ip -6 route add default via &amp;lt;border-router-mesh-local-IP&amp;gt; dev wpan1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note the &amp;#39;via&amp;#39; keyword, and that the&amp;nbsp;address should be that of the border router, not the website.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/168941?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 18:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e82c56-d330-4965-839c-e80239e54d72</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;I tried changing the NAT64 prefix to&amp;nbsp;2001:db8:1:ffff::/96 and ran the commands below on the Android Things device, but behaviour didn&amp;#39;t change.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell su 0 ip route add table wpan1 64:ff9b::/96 dev wpan1 proto kernel scope link src fd45:5412:9874:0:667b:4209:4a08:d4b0 metric 1
adb shell su 0 ip route add table wpan1 2001:db8:1:ffff::/96 dev wpan1 proto kernel scope link src fd45:5412:9874:0:667b:4209:4a08:d4b0 metric 1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/168933?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 17:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38bafd7-358d-4bac-996d-b987a76d1d29</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It would appear that the packets are not correctly routed by the Android things device and do not leave the device over the mesh network. The network itself however appears to be establishing itself correctly in both cases.&lt;/p&gt;
&lt;p&gt;Did you try changing the well known NAT64 prefix in border router settings from 64:ff9b::/96 to something else and setting the routing table in Android things device accordingly?&lt;/p&gt;
&lt;p&gt;The NAT64 settings should be in /etc/tayga.conf in the border router. The packets with nat64 prefix should be routed to wpanX interface on the Android things device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/166070?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee4a193-1d3b-4a07-ac14-39b64dd9ac84</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;The network key is&amp;nbsp;4554ab2c58e2218ef5e4fec886100af7&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/166069?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7254bc3e-4d0f-4456-832c-28119c710f21</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The traces seems to be encrypted. Can you provide decryption key, or provide new traces with key exchange included?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/166063?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50b843e4-c958-4e08-9247-e01ddaa9714b</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;Here are the packet captures:&amp;nbsp;&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1SoW1s1qKjwlUE5mbkRILGJWxVmkCela1/view?usp=sharing"&gt;https://drive.google.com/file/d/1SoW1s1qKjwlUE5mbkRILGJWxVmkCela1/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Local communication - Is from the Android Things device to a server running on the border router.&lt;/p&gt;
&lt;p&gt;Internet communication - Is from the Android Things device to a public Internet server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/165554?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 15:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6f7f8c-d904-4059-8dde-8a471684f607</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you upload the sniffer traces?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/164577?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 18:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aea6cd8-6962-4114-a147-acce3e11bdbc</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;I set up the&amp;nbsp;&lt;span&gt;802.15.4 sniffer to check traffic.&amp;nbsp; I see captures of both devices doing advertisements, but no other traffic when the Android Things device tries to connect to the Internet through the border router.&amp;nbsp; I can see traffic captured when the Android Things devices talk to one another over Thread.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nothing was captured before or after performing the &amp;quot;route add&amp;quot; command I posted above.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/160143?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 09:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e197480-b60f-48a2-8087-e3206ce4baf8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Perhaps it is worth changing the well-known nat64 prefix from 64:ff9b::/96 to some other value on the border router and change route settings on the Android Things device accordingly.&lt;/p&gt;
&lt;p&gt;Is any traffic visible on 802.15.4 sniffer?&lt;/p&gt;
&lt;p&gt;It could also be used to verify if AT devices and border router are connecting properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/159998?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 14:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16eec2d6-d586-4dae-b680-206302df56ed</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;I ran the following command on the Android Things device:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell su 0 tcpdump -i wpan1 &amp;amp;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then attempted to make a public connection, nothing was shown in the tcpdump.&lt;/p&gt;
&lt;p&gt;The route command isn&amp;#39;t available on Android Things, but running:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell su 0 ip -6 route show&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Gives empty results as well.&lt;/p&gt;
&lt;p&gt;I attempted to manually add a route.&amp;nbsp;&amp;nbsp;The command below removes the &amp;quot;android.system.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)&amp;quot;, but seems to hang connecting:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell su 0 ip route add table wpan1 64:ff9b::/96 dev wpan1 proto kernel scope link src fd45:5412:9874:0:a859:d2c0:52c6:3d36 metric 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Instead, it gives: java.net.ConnectException: failed to connect to /64:ff9b::686c:6a10 (port 80) from /:: (port 59152): connect failed: ETIMEDOUT (Connection timed out)&lt;/p&gt;
&lt;p&gt;So does it seem that Android Things is not correctly picking up the default route from the Border Router?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/159973?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a438aae1-cd82-4319-9fad-9f94e789fa09</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got some more information from our developers and some proposition to help resolving this issue:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;It is important to find out at what point frames to public IP address get lost. We can observe the 802.15.4 traffic using this sniffer software:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF-802.15.4-sniffer"&gt;https://github.com/NordicPlayground/nRF-802.15.4-sniffer&lt;/a&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Also we need to observe traffic at the border router and Android Things network interfaces using tcpdump. Interfaces of interest: wpanX, nat64, wlanX or ethX.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;This is the&amp;nbsp;proposed setup:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-29a3106068134e5393dc0db4c930808e/Screenshot-from-2018_2D00_11_2D00_29-16_2D00_06_2D00_01.png" /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;I am not familiar with Android Things but I suppose the tcpdump should be launched like this:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell tcpdump -i wpanX &amp;amp;&lt;/pre&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Then we should ping a server and see the traffic on tcpdump and 802.15.4 sniffer.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;If there is no traffic visible then the first thing to check would be the routing table:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;pre class="ui-code" data-mode="text"&gt;adb shell route -6&lt;/pre&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;This should help us pinpoint the location of the issue and move further.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/159168?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 08:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ba7a82-e0ec-4046-a0c9-cff2051b5bd2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;No, problem. I&amp;#39;m sorry we couldn&amp;#39;t be of more help.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/159068?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 14:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3629cfff-21fe-482a-8ccc-bce00f28033c</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;Understood, thank you for looking into this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/158996?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 10:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6542a4f-a9f1-4b13-874d-f27308185d31</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been in contact with the Thread team, but unfortunately they don&amp;#39;t know why you get those&amp;nbsp;exceptions and they are short on resources these days and don&amp;#39;t have time to dig into it.&amp;nbsp;I don&amp;#39;t have the necessary HW to reproduce it myself either, so I&amp;#39;m afraid you are on your own on this one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/158008?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 14:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf0cb13-7bad-490b-8ff1-e30b19d5bd12</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;I didn&amp;#39;t get any further along getting the Android Things (AT) device to connect to the Internet.&amp;nbsp; For now I&amp;#39;m considering having the app on the AT device connect to an app on the Border Router, which then relays data to the destination server.&amp;nbsp; But that isn&amp;#39;t the ideal setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/157895?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 09:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d15b932c-cafa-4131-bf15-569313b159d5</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. Bjørn is traveling at the moment, but I&amp;#39;ll try to help you out from here.&lt;/p&gt;
&lt;p&gt;Have you made any progress? I have asked for a comment from the Thread team. I&amp;#39;ll keep you posted.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/156930?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 14:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86e6dc23-dd0b-441a-9d82-bb22de8643df</guid><dc:creator>MSohm</dc:creator><description>&lt;p&gt;That example is Bluetooth, so a bit different from what I&amp;#39;m trying.&amp;nbsp; Since the Android Things device is connected to the Thread network Border Router, it should be able to access the Internet directly.&lt;/p&gt;
&lt;p&gt;I could create something like what is shown in that example, where there is a server (Node.js for example) listening on the Border Router that acts as a gateway application to the Internet.&amp;nbsp; However, the Border Router should be able to do this on it&amp;#39;s own as that is what it is designed to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Access the Internet over Thread from Android Things</title><link>https://devzone.nordicsemi.com/thread/156906?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 14:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d97b274-aafd-4e25-b2f1-90245ee85573</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Would it be a possibility to use this demo to use the Raspberry Pi as an internet gateway (&lt;a href="https://www.youtube.com/watch?v=itXVj17HxJg"&gt;link 1&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/walkthrough-of-nordic-thingy52-nodejs-raspberry-pi"&gt;link 2&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/nordic-thingy52-nodejsraspberry-pi-demos"&gt;link 3&lt;/a&gt;)? It should work out of the box with a Nordic Thingy:52, but could most likely easily be tweaked to work on a 52840 dk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>