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

  • You shouldn'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.

  • i fallow this link

    devzone.nordicsemi.com/.../

    my router is also not pinging from internet.

    Which ipv6 address i need to ping whether bt0 or eth0?.

    Regards Punith

  • i installed the package

    sudo apt-get install miredo

    for tunnelling and not fallowed the script.

    Now teredo ipv6 address (which is of router) is pinging from internet . but DK is not pinging.

    Regards Punith

  • In the link you are just simulating a global network. This can'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't have a prefix, it is a unicast address. Please see this for more information.

  • Yes with teredo , it gives unicast ipv6 address so it is pinging ipv6.google.com.

    Now i remover teredo , added tun6to4 by modifying the script which is now giving the prefix. Here it is tun6to4

    tun6to4
    Link encap:IPv6-in-IPv4
    inet addr:117.218.56.124 Mask:255.255.255.255
    inet6 addr: ::192.168.1.102/96 Scope:Compat
    inet6 addr: 2002:75da:387c::1/48 Scope:Global
    UP RUNNING NOARP MTU:1480 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:904 errors:3 dropped:0 overruns:0 carrier:3
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:83519 (83.5 KB)

    Now i changed same prefix in /etc/radvd.conf

    interface bt0
    {
    AdvSendAdvert on;
    prefix 2002:75da:387c::1/48
    {
    AdvOnLink off;
    AdvAutonomous on;
    AdvRouterAddr on;
    };
    };

    But i am not able to ping ipv6.google.com from by router. Kindly tell me what is problem?

Related