I want to understand the way Contiki uses IPv6 to 'tunnel' thru the network. Will I be able to connect my Ravens directly to a Wi-Fi 802.11 b/g/n hub?
Asking a better question, is the beginning of learning.
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
The ravens will link to any ipv6 connectivity you have. A linux box running radvd will autoconfigure ipv6 for all your local machines on ethernet and wifi. They will be globally accessible with an ipv6 connection to the internet. There is no tunnelling involved, unless the ipv6 internet connection uses a tunnel.
A wifi hub running openwrt can use the jackdaw as an rndis interface to 6LoWPAN. Again, ipv6 connection to the internet may or may not involve a tunnel.
Thanks DAK for this reply and ALL your support. You're amazing!
The router I'm trying to connect up to is running Android ICS. My guess is that adding Router Advertisement Daemon (radvd) to that is possible.
Adding the Jackdaw is not possible because the router is supplied by my vendor without USB.
Any comments are welcome.
Well although the wifi 802.11 frequencies are similar the modulations are incompatible, so you need some way of getting the 802.15.4 packets into the host, and a USB dongle like the jackdaw is an easy way since the host RNDIS or CDC interface is automatically created during the enumeration process.
Another way is a serial connection, with host software that creates a tap/tun interface and transfers packets between it and the radio through a SLIP protocol.
There are multiple-interface variants, but the basic contiki uip stack works with a single interface. If that is to be 6LoWPAN over an 802.15.4 radio, exchanging packets with the host through SLIP or RNDIS takes some special workarounds and traps. For example the jackdaw does no networking on its own, but uses a limited subset of the uip stack to bridge between 6LoWPAN and RNDIS. The serial version diverts packets to SLIP as a last resort, if there is no match in the routing tables.
On the host side radvd takes over all the routing between interfaces. But you need to create the 802.15.4 interface somehow unless you want to handle all the packets yourself (using pcap for example to tie into eth0 directly).
Thanks again for your insightful suggestions.
I will check into the possibility of adding a USB interface. This seems to be the easier route.
Upgrading the firmware in the 802.11 router is possible. This is a good approach since no hardware changes are required.
© 2021 Microchip Technology Inc.