<?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>Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6964/nrf51-iot-tcp-client-testing</link><description>Hi All, 
 we have PCA10028 v1.10 nordic development board, i tested the normal ping from local ip and global ip of device from my linux PC by flashing tcp client iot application , which is working fine. 
 but data transmission between client and server</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 May 2015 14:18:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6964/nrf51-iot-tcp-client-testing" /><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24569?ContentTypeID=1</link><pubDate>Thu, 21 May 2015 14:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5857528a-002a-4c3a-9c0d-26e59977177f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It could be that your router doesn&amp;#39;t support protocol 41. Have you tried to sniff? I would try to use wireshark and sniff the et0 interface. Then you should see packets with destination address 192.88.99.1 when you ping ipv6.google.com.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24561?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 13:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f00bdc7f-6cad-4930-acdb-66602246ca65</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;sudo tcpdump  -ns 0 -i eth0 proto 41 -vv&lt;/p&gt;
&lt;p&gt;i issued this command to check protocol 41. but  only displayed on terminal is&lt;br /&gt;
&amp;quot;tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes&amp;quot;&lt;/p&gt;
&lt;p&gt;So i think my router does not support protocol 41. What need to do know?.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24560?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 12:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0323d703-4621-4b65-b02f-048fe751a71a</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;How to check my router support protocol 41 and it is not blocked?.&lt;br /&gt;
I tired by removing tunnel completely also but not works.
No i install complete  Ubuntu 14.04 LTS version with kernel 3.17.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24568?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 12:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f084f1a9-a896-45d6-a610-f47cc0d2238e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you try tshark?
Can you check if your router supports protocol 41, and that it is not blocked? Protocol 41 is generally used for tunneling.
Could it be that you are behind some NAT? If your IP is not globally unique tun6to4 may not work.
You could also try to &lt;a href="http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/configuring-ipv6to4-tunnels.html"&gt;remove the tunnel completely&lt;/a&gt; and try again.
Are you using VMWare? If you are you need to use Brdiged and not NAT under Network connection in Virutal Machine Settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24567?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 05:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:613297f8-30b0-41d7-93c8-4461c9eb9ef7</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;I am not getting any error while i run the script , it just throughs my ipv4 and ipv6 address.
But still i am not able to ping ipv6.google.com.
Kindly tell me how to solve this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24566?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 12:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d22b974e-d221-48dc-91ae-df5f56a28a82</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;117.218.56.124 is your public IPv4 address which you get with &lt;code&gt;ipv4_cur=$(dig @ns1.google.com -t txt o-o.myaddr.l.google.com +short | tr -d &amp;quot;\&amp;quot;&amp;quot;)&lt;/code&gt; 192.168.1.102 is your local IPv4 address which you get from eth0 interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24565?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 11:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f254fb0-bf7f-492e-82b5-b09dbcc096d6</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;One thing i notice is my inet addr is 117.218.56.124 even i passed 192.168.1.102 in my script.
Why is it so(compared to document is SDK)?.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24564?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 11:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:576c128b-6088-4ead-ba40-783ca9ab7a33</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;Yes i did &amp;quot;ip link set dev tun6to4 up&amp;quot;&lt;/p&gt;
&lt;p&gt;I am able to ping 192.88.99.1 but ipv6.google.com is not pinging.&lt;/p&gt;
&lt;p&gt;Yes first i need to solve the tunnelling issue. then i will go with bt0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24563?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 11:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba5b50e-0a76-47f5-a6b3-3f08725f5e9e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The setup can be a bit unstable, please do &amp;quot;ip link set dev tun6to4 up&amp;quot; before you do the ipv6 ping. The prefix of the bt0 interface should be 2002:75da:387c::&lt;strong&gt;1&lt;/strong&gt;/64, but I think you should focus on getting the tunnel up first. Are you able to ping 192.88.99.1? It is difficult to know what the problem is, if you haven&amp;#39;t got any errors and have followed the setup. You could try to sniff the interface, and see what is happening. You can try &lt;a href="https://www.youtube.com/watch?v=WMbNT82OZgQ"&gt;tshark&lt;/a&gt;, you sniff an interface with &amp;quot;tshark -I bt0&amp;quot;&lt;/p&gt;
&lt;p&gt;Edit 21.05.2015: Corrected IPv6 address/prefix of bt0 interface&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24562?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 11:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b6a371-135a-4379-9e14-cae06d7d9696</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;Now if in case , i am able to ping ipv6.google.com from router then i can ping my router and DK from internet right?.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24555?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 10:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d4a04d-90b2-4093-a2c9-b4c372f0ca80</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;Yes with teredo , it gives unicast ipv6 address so it is pinging ipv6.google.com.&lt;/p&gt;
&lt;p&gt;Now i remover teredo , added tun6to4 by modifying the script which is now giving the prefix.
Here it is tun6to4&lt;/p&gt;
&lt;p&gt;tun6to4&lt;br /&gt;
Link encap:IPv6-in-IPv4&lt;br /&gt;
inet addr:117.218.56.124  Mask:255.255.255.255&lt;br /&gt;
inet6 addr: ::192.168.1.102/96 Scope:Compat&lt;br /&gt;
inet6 addr: 2002:75da:387c::1/48 Scope:Global&lt;br /&gt;
UP RUNNING NOARP  MTU:1480  Metric:1&lt;br /&gt;
RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
TX packets:904 errors:3 dropped:0 overruns:0 carrier:3&lt;br /&gt;
collisions:0 txqueuelen:0&lt;br /&gt;
RX bytes:0 (0.0 B)  TX bytes:83519 (83.5 KB)&lt;/p&gt;
&lt;p&gt;Now i changed same prefix in /etc/radvd.conf&lt;/p&gt;
&lt;p&gt;interface bt0&lt;br /&gt;
{&lt;br /&gt;
AdvSendAdvert on;&lt;br /&gt;
prefix 2002:75da:387c::1/48&lt;br /&gt;
{&lt;br /&gt;
AdvOnLink off;&lt;br /&gt;
AdvAutonomous on;&lt;br /&gt;
AdvRouterAddr on;&lt;br /&gt;
};&lt;br /&gt;
};&lt;/p&gt;
&lt;p&gt;But i am not able to ping ipv6.google.com from by router. Kindly tell me what is problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24556?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 10:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42895773-b82b-42bb-b425-eb5821e67486</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;In the link you are just simulating a global network. This can&amp;#39;t be used on the Internet. Are you sure you need a tunnel? You said you were able to ping ipv6.google.com, which requires IPv6 connectivity. Anyways, Teredo gives your router an IPv6 address that doesn&amp;#39;t have a prefix, it is a unicast address. Please see &lt;a href="https://devzone.nordicsemi.com/question/34356/ping-icmp-ipv6googlecom-iot/"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24558?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e547e32-845b-48c8-bc06-783f26820037</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;i installed the package&lt;/p&gt;
&lt;p&gt;sudo apt-get install miredo&lt;/p&gt;
&lt;p&gt;for tunnelling and not fallowed the script.&lt;/p&gt;
&lt;p&gt;Now teredo ipv6 address (which is of router) is pinging from internet . but DK is not pinging.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24557?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a4390e1-c7e4-4846-8bab-11617f91068c</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;i fallow this link&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/28143/how-to-setup-network-enviornment-for-iot/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;my router is also not pinging from internet.&lt;/p&gt;
&lt;p&gt;Which ipv6 address i need to ping whether bt0 or eth0?.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24559?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfbf4643-64eb-48fe-b202-12cba6c20bbc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You shouldn&amp;#39;t send router advertisments on the eth0 interface. You should get router advertisments from the network on the eth0 interface. The router advertisments are used to assign a IPv6 address and prefix to the eth0 interface. Check what they are by in ifconfig. Before you try to ping the nRF51 DK you need to be able to ping the router from the internet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24554?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 09:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d4294a-bed8-4d3e-a949-5f96102157a1</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;yes i added prefix and started radvd service also but device is not pinging from internet.&lt;/p&gt;
&lt;p&gt;Here is my configuration&lt;/p&gt;
&lt;p&gt;interface eth0&lt;br /&gt;
{&lt;br /&gt;
AdvSendAdvert on;&lt;br /&gt;
prefix 2005:abc::/64
{&lt;br /&gt;
AdvOnLink on;&lt;br /&gt;
AdvAutonomous on;
AdvRouterAddr on;&lt;br /&gt;
};&lt;br /&gt;
route ::/0&lt;br /&gt;
{&lt;br /&gt;
};&lt;br /&gt;
};&lt;/p&gt;
&lt;p&gt;interface bt0&lt;br /&gt;
{&lt;br /&gt;
AdvSendAdvert on;&lt;br /&gt;
prefix 2001:db8::/64&lt;br /&gt;
{&lt;br /&gt;
AdvOnLink off;&lt;br /&gt;
AdvAutonomous on;&lt;br /&gt;
AdvRouterAddr on;&lt;br /&gt;
};&lt;br /&gt;
};&lt;/p&gt;
&lt;p&gt;And also i added these from command line&lt;/p&gt;
&lt;p&gt;ifconfig bt0 add 2001:db8&lt;br /&gt;
ifconfig eth0 add 2004:abc::1/64::1/64&lt;br /&gt;
service radvd restart&lt;/p&gt;
&lt;p&gt;Now able to ping device from my pc and by router but not by internet.&lt;/p&gt;
&lt;p&gt;Kindly suggest me , where i am missing.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24553?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 07:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:298afa07-24ac-4800-b1d9-a4ef7dede99c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems you have native IPv6 connectivity. What ipv6 address and prefix is your router getting?&lt;/p&gt;
&lt;p&gt;Have you set up RADVD so that the nRF51 DK gets the correct prefix? It should be something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;interface bt0
{
	AdvSendAdvert on;
	prefix 2002:c213:5692::1/64
    {
	    AdvOnLink off;
    };
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(This is from my 6to4 tunneling setup)&lt;/p&gt;
&lt;p&gt;You also need to add the prefix to the bt0 interface and restart radvd:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ifconfig bt0 add 2002:c213:5692::1/64
service radvd restart
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can try to ping the nRF51 DK from the internet &lt;a href="http://www.subnetonline.com/pages/ipv6-network-tools/online-ipv6-ping.php"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Edit 21.05.2015: Corrected IPv6 address/prefix of bt0 interface&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24552?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 07:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c9276c-4cf5-41d8-b1f5-4ebb07b364b0</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I able to control device (DK) from my router and my PC (both are connected to LAN).
Now i want to control device from outside world ?.
How to do it?.&lt;/p&gt;
&lt;p&gt;My router is pinging both google.com and ipv6.google.com.
And also both device and router has global ipv6 address.&lt;/p&gt;
&lt;p&gt;Kindly suggest me.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24550?ContentTypeID=1</link><pubDate>Mon, 18 May 2015 10:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56322459-dcbe-4c0b-a6d9-ef720720c46a</guid><dc:creator>Fab1223</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;I am doing in My ubuntu PC 14.04 linux 3.17.
Now tcp client is working fine with my PC and problem is ,  i did not change the  client code with proper server ip.Once i change it works fine.&lt;/p&gt;
&lt;p&gt;Right now my server code is running on router itself , so i can control device.
But if i want to control the device from outside world , how to do it.
Give any example code for that , i am good at linux also , kindly suggest any solution.
I assigned global ip for both device and router.&lt;/p&gt;
&lt;p&gt;Regards
Punith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf51 IOT TCP Client testing</title><link>https://devzone.nordicsemi.com/thread/24551?ContentTypeID=1</link><pubDate>Wed, 13 May 2015 11:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a30e9ada-22ad-468f-b598-3a0e1ec762fe</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could you please explain a bit more about your setup? How are you routing this? Are you using a RPi? Have you performed any other ping tests than PC to nRF51 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>