First, the main site for using wpan-tools is here.
These are the steps I performed based on that post to get 6LoWPAN & 802.15.5 working on the BeagleBone Black I built earlier. I executed these directly on the Beaglebone.
First, libnl-3 is needed, so lets update the Debian image and install libnl-3.
1 2 3 |
sudo apt-get update sudo apt-get upgrade sudo apt-get install libnl-3-dev libnl-genl-3-dev |
Now get the wpan-tools code from cakelab:
1 2 3 |
wget http://wpan.cakelab.org/releases/wpan-tools-0.4.tar.gz tar xzvf wpan-tools-0.4.tar.gz cd wpan-tools-0.4/ |
Typical .configure, make & install:
1 2 3 |
./configure make make install |
Finally, setup the radio and 6LoWPAN Network:
1 2 3 4 |
iwpan dev wpan0 set pan_id 0xbeef ip link add link wpan0 name lowpan0 type lowpan ip -6 addr add 2001::1/64 dev lowpan0 ifconfig lowpan0 up |
fini