This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: How to ping cc1310 6LoWPAN end node from a laptop

Part Number: CC1310

My set-up consists of:

*) one cc1310 lanchpad flashed with cc26xx-web-demo contiki application.

**) one weptech  saker gateway (https://www.weptech.de/en/6lowpan/gateway-saker.html)
flashed with weptech-kontiki software (https://github.com/Weptech-elektronik/contiki)

***) one debian 9 linux laptop. Laptop and weptech gateway are connected to my home router through LAN.

The weptech gateway configuration is:

[20:50:37:233] saker␊
[20:50:37:233]  Net       : sicslowpan␊
[20:50:37:233]  MAC       : CSMA␊
[20:50:37:233]  RDC       : ContikiMAC␊
[20:50:37:233]  RF channel: 25␊
[20:50:37:233]  RF cfg    : 802.15.4g 863-870MHz MR-FSK mode #1␊
[20:50:37:233] EUI-64 (wireless interface):␊
[20:50:37:233]  00:12:4b:00:06:0f:a4:2f␊
[20:50:37:634] IP64: Starting DHCPv4␊
[20:50:37:634] Requesting IP address.......Done:␊
[20:50:44:666]  IPv4 address  : 192.168.1.206␊
[20:50:44:666]  netmask       : 255.255.255.0␊
[20:50:44:666]  default router: 192.168.1.1␊
[20:50:44:666] Created a new RPL dag using prefix:␊
[20:50:44:666]  fd4d:4267:5f8c::␊
[20:50:44:666] IPv6 addresses:␊
[20:50:44:666]  fd4d:4267:5f8c::212:4b00:60f:a42f␊
[20:50:44:666]  fe80::212:4b00:60f:a42f␊
[20:50:44:666] RPL border router up and running␊

When I type the weptech IPv4 address (192.168.1.206) in the browser I see:

Neighbors

fe80::212:4b00:e09:25d3   REACHABLE

Routes

fd4d:4267:5f8c::212:4b00:e09:25d3/128 (via fe80::212:4b00:e09:25d3) 1688s


This page was sent 22 times (0.00 sec)

Trying to ping6 from laptop gives me:

stefan@lenovo:~$ ping6 -I enp0s31f6  fd4d:4267:5f8c::212:4b00:e09:25d3
connect: Network is unreachable

stefan@lenovo:~$ ping6 -I enp0s31f6  fe80::212:4b00:e09:25d3
PING fe80::212:4b00:e09:25d3(fe80::212:4b00:e09:25d3) from fe80::ca5b:76ff:fecd:b3f4%enp0s31f6 enp0s31f6: 56 data bytes
From fe80::ca5b:76ff:fecd:b3f4%enp0s31f6 icmp_seq=1 Destination unreachable: Address unreachable
From fe80::ca5b:76ff:fecd:b3f4%enp0s31f6 icmp_seq=2 Destination unreachable: Address unreachable

So how to ping my cc1310 device from the Laptop?

  • Hi Stefan,

    I highly recommend to contact Weptech for support regarding their products.

    However, you probably need to configure the IP stack on your Linux PC to route all packets with the prefix fd4d:4267:5f8c::/64 (the wireless network prefix) to the weptech gateway interface.

    It would help if you could post the output of "ifconfig".
  • Hi

    I also sent this question directly to the weptech support. Here is the answer:

    As you can see from the logs you have send, the saker gateway is connected to your local network via IPv4 (LAN interface) -  this is the reason you will NOT be able to address any node inside the 6LoWPAN network via IPv6. Technically: the sake gateway acts as a NAT64 gateway, allowing any IPv6 node to send data (e.g. MQTT) to a IPV4 node, but not vice versa. The only way to solve this problem is to use port fowarding, something which has to be hardcoded in contiki.

    Does someone has experience with port forwarding in contiki? According to weptech github.com/.../ip64-special-ports.h can be used as starting point.




  • Stefan,

    I suggest to continue the on-going support you have with Weptech. The problem you've encountered is with Weptech's product, not ours. You could additionally try to reach out to the Contiki community.

    I will leave this thread open for the community to help if anyone has anything to contribute, but I will stop my ongoing support.