summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-04-03 20:24:39 +0200
committerGuido Günther <agx@sigxcpu.org>2015-04-03 20:24:39 +0200
commit82de8b3abedf676877e089c8f3047ea3417920e6 (patch)
treefa0ba32d37c4c4256d34885c87ca983abdf79ee4
parent3de01076448b7a18cbbd3e950a0912090a9eaf73 (diff)
Setup 6lowpan link
-rw-r--r--hw/rpi6lowpan.mdwn22
1 files changed, 22 insertions, 0 deletions
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