This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nrf51 IOT TCP Client testing

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 is not working , basically server is not connecting to client by using phyton server code.

Here my server ip config.

bt0 Link encap:UNSPEC HWaddr 68-94-23-FF-FE- 8A-45-50-00-00-00-00-00-00-00-00
inet6 addr: fe80::6a94:23ff:fe8a:4550/64 Scope:Link inet6 addr: 2001:db8::9586:dfba:1684:a501/64 Scope:Global inet6 addr: 2001:db8::1/64 Scope:Global inet6 addr: 2001:db8::6a94:23ff:fe8a:4550/64 Scope:Global UP POINTOPOINT RUNNING MTU:1280 Metric:1 RX packets:630 errors:0 dropped:0 overruns:0 frame:0 TX packets:1019 errors:579 dropped:120 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:32434 (32.4 KB) TX bytes:70649 (70.6 KB)

So i changed the ip in server with my pc ip (2001:db8::6a94:23ff:fe8a:4550). but connection is not happened.

Kindly let me know what is the issue.

and also i bit confused with how to access device from internet. kindly let us know.

Regards Punith

Parents
  • yes i added prefix and started radvd service also but device is not pinging from internet.

    Here is my configuration

    interface eth0
    {
    AdvSendAdvert on;
    prefix 2005:abc::/64 {
    AdvOnLink on;
    AdvAutonomous on; AdvRouterAddr on;
    };
    route ::/0
    {
    };
    };

    interface bt0
    {
    AdvSendAdvert on;
    prefix 2001:db8::/64
    {
    AdvOnLink off;
    AdvAutonomous on;
    AdvRouterAddr on;
    };
    };

    And also i added these from command line

    ifconfig bt0 add 2001:db8
    ifconfig eth0 add 2004:abc::1/64::1/64
    service radvd restart

    Now able to ping device from my pc and by router but not by internet.

    Kindly suggest me , where i am missing.

    Regards Punith

  • 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 remove the tunnel completely 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.

Reply
  • 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 remove the tunnel completely 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.

Children
No Data
Related