[mc1322x] Contiki + 6LowPAN
Mariano Alvira
mar at devl.org
Tue Jun 15 13:08:25 EDT 2010
On Tue, Jun 15, 2010 at 06:50:05PM +0200, Daniel Berenguer wrote:
> Which is the easiest way to play with Contiki's 6LowPAN functionality
> on the Econotags? In other words, which of the available Contiki
> (6LowPAN) examples has been tested to work on the redwire platforms?
> Sending basic UDP messages is fine by the moment.
>
> I just want to have a first 6LowPAN experience with minimal frustration :-)
I suggest using the RPL examples:
examples/ipv6/rpl-border-router
examples/ipv6/rpl-udp
allthough examples/udp-ipv6 should work too (no RPL multi-hop though).
Make both rpl-border-router and rpl-udp. The econotag platform now
generates a random Redwire EUI64 id (from which a nodes IPv6 address
is derived) and flashes it. Therefore the first time you run this code
your nodes will get EUI64 ids that will be persistent. (You can change
this behavior in contiki-conf.h).
Run rpl-border-router_redbee-econotag.bin on one node and
udp-client_redbee-econotag.bin on another.
Now say the router is on /dev/ttyUSB1.
in tools, make tunslip6.
After loading the router bin, kill the terminal so tunslip6 doesn't
compete. You probably want to note the IPv6 address of the
router. Then run:
tunslip6 -s /dev/ttyUSB1 aaaa::1/64
You should be able to ping the router:
ping6 [router ip]
You should also be able to ping the udp-client's address. udp-client
periodically sends a udp packet to a hardcoded ip address.
You can also go to the border router's webpage and see all the
neighbors and routes.
In firefox, I do:
http://[ipv6 address of router]
-Mar.
More information about the mc1322x
mailing list