This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[IoT SDK]pc cannot ping pca10028!

hi,there

raspberry can ping6 pca10028, rasberry can receive udp packets from pca10028.

but how can i ping6 pca10028 from pc?

env: pca10028 + csr ble dongle + raspberry pi b+ + ethernet direct link or router + pc

pc can ping6 raspberry's ethernet, but cannot ping6 bt0 of raspberry and pca10028.

any idea?

ipv6 forwarding? radvd between pc and raspbeery?

Thanks.

Edit: Format

  • You need to give your PC IPv6 connectivity. You can setup a simulated global network, consisting of two subnets, bt0 is one subnet and eth0 is the other. Connect your PC directly to the RPi.

    Tell RADVD to send router advertisements with prefix 2005::/64 on the bt0 interface and with prefix 2004::/64 on the eth0 interface (or some other prefixes):

    interface bt0
    {
    	AdvSendAdvert on;
    	prefix 2005::/64
    	{
    		AdvOnLink off;
    	};
    };
    
    interface eth0
    {
    	AdvSendAdvert on;
    	prefix 2004::/64
    	{
    	};
    };
    

    Restart RADVD - service radvd restart

    Add the correct prefixes to the interfaces:

    ifconfig bt0 add 2005::1/64
    ifconfig eth0 add 2004::1/64
    

    N.B. The bt0 must be visible in hciconfig when you do this, and it is only visible if you have something connected to it.

    Setup the PC to use the 2004::/64 prefix like below

    image description

    Now you should be able to ping the PCA10028 from the command line using the 2005::/64 prefix:

    ping 2005::211:22FF:FE33:4455
    
Related