From 82de8b3abedf676877e089c8f3047ea3417920e6 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 3 Apr 2015 20:24:39 +0200 Subject: Setup 6lowpan link --- hw/rpi6lowpan.mdwn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'hw') diff --git a/hw/rpi6lowpan.mdwn b/hw/rpi6lowpan.mdwn index 6c6a1f9..4ab8ea5 100644 --- a/hw/rpi6lowpan.mdwn +++ b/hw/rpi6lowpan.mdwn @@ -175,6 +175,28 @@ Now we have all the tools: cca_mode: 1 tx_power: 0 +Make sure there's no ifplugd that brings the interface up. Kill it, +if it's there. Then make sure the interface is down, set a pan_id and +and add create the 6LoWPAN interfade: + + $ kill $(ps awux | grep "[i]fplugd.*wpan0" | awk '{print $2}') + $ ifconfig wpan0 | grep -qs UP && ifconfig wpan0 down + $ src/iwpan dev wpan0 set pan_id 0xbeef + $ ip link add link wpan0 name lowpan0 type lowpan + $ ifconfig wpan0 up + +You can now (hopefully) ping the other device: + + $ ping6 -I lowpan0 fe80::f836:9287:905c:a684 + PING fe80::f836:9287:905c:a684(fe80::f836:9287:905c:a684) from fe80::cb23:b779:742d:4fd2 lowpan0: 56 data bytes + 64 bytes from fe80::f836:9287:905c:a684: icmp_seq=4 ttl=64 time=16.6 ms + 64 bytes from fe80::f836:9287:905c:a684: icmp_seq=11 ttl=64 time=30.6 ms + 64 bytes from fe80::f836:9287:905c:a684: icmp_seq=12 ttl=64 time=16.3 ms + --- fe80::f836:9287:905c:a684 ping statistics --- + 67 packets transmitted, 8 received, 88% packet loss, time 66025ms + +I do have to figure out the reason for the massive packet loss. + Upstream info on wpan-tools is at http://wpan.cakelab.org/ [1]: https://en.wikipedia.org/wiki/6LoWPAN -- cgit v1.2.3