Skip to content

6LoWPAN on a Raspberry Pi

MonsterCode8000 edited this page Jan 14, 2016 · 6 revisions

We are using the Raspberry Pi 802.15.4 radio to make the Raspberry able to send and receive 6LoWPAN messages. In our case we get from the Phytec phyWAVE-KW2x if we sent an GET request.

At first we followed the How to install 6LoWPAN Linux Kernel on Raspberry Pi. It this was successful your Raspberry Pi 802.15.4 radio works with the Raspberry.

It is necessary to run every start-up:

``sudo kill -s KILL `pgrep ifplugd```

sudo modprobe ipv6

sudo ip link set wpan0 down

sudo ip link set lowpan0 down

sudo iwpan phy phy0 set channel 0 26

sudo ip link add link wpan0 name lowpan0 type lowpan

sudo iwpan dev wpan0 set pan_id 0x23

sudo ip link set wpan0 up

sudo ip link set lowpan0 up

## node configuration sudo ifconfig lowpan0 inet6 add fd2d:0388:6a7b:0001:0000:0000:0000:0001/120

sudo rmmod nhc_udp

Clone this wiki locally