Saturday, 20 August 2011

Installing and Test BLIP 6LoWPAN implementation using Telosb & MicaZ platforms

- BLIP is one of some well known 6LowPAN implementation (6LowPAN IPv6 packets to be sent to and received from over IEEE 802.15.4 based networks).
- BLIP included as a core part of TinyOS-2.1.1 so you need to install tinyos-2.1.1 if you want to use blip. 

Steps of install BLIP:
  1. Add an 802.15.4 interface to the device (Edge router).
  2. Upload your program image on the motes (node router)
  3. Compile and run the routing driver (on pc/laptop).
  4. Communicate with motes via IPV6.

BLIP Network Items



















 1- Upload blip Interface on edge router
  • cd $TOSROOT/apps/IPBaseStation
  • $ make telosb blip install 
    (for telosb mote)
  • $ make micaz blip install  mib520, /dev/ttyUSB0
    (for micaz mote)
 2- Upload program image on node routers 
  • cd $TOSROOT/apps/UPDEcho
  • make micaz blip install,ID mib520,/dev/ttyUSB0
  • make telosb blip install,ID
3- Compile and run routing driver on PC/laptop
Build it first (for one time): 
cd $TOSROOT/support/sdk/c/sf
./bootstrap
./configure
make
cd $TOSROOT/support/sdk/c/blip
./bootstrap.sh
./configure
make
 
While you are still in the $TOSROOT/support/sdk/c/blip directory run routing driver
sudo driver/ip-driver /dev/ttyUSB1 micaz

- Router driver loads its configuration from $TOSROOT/support/sdk/c/blip/serial_tun.conf.
  You can change channel # and IPv6 prefix fec0:: used.
4- Test connection
    ping6 fec0::ID
 
- fec0::/10 This is a site-local prefix  offered by IPv6.
- The prefix fec0:: is coming from serial_tun.conf file and the suffix is coming from Node Id. 
 

TinyOS-2.1.1 configuration


Edit $TOSROOT/tinyos.sh file
sudo gedit /opt/tinyos-2.1.1/tinyos.sh
add /tinyos.jar to the end of CLASSPATH to be : CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar
Also edit user bash file as following:
sudo gedit ~/.bashrc
and add this line to the end of the file

source /opt/tinyos-2.1.1/tinyos.sh
You can export some helpful directories export apps=$TOSROOT/apps
export blipdir=$TOSROOT/support/sdk/c/blip
cd $apps





 

TinyOS-2.1.1 installation steps using ubuntu-11.04


Open Terminal to edit sources.list file 
sudo gedit /etc/apt/sources.list
add this line at the end of the file opened
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu karmic main
“karmic” for all type of ubuntu distribution.
Install aptitude package
sudo apt-get install aptitude
Install autoconf package
sudo apt-get install autoconf2.13
Then type this command to install TinyOS-2.1.1
sudo aptitude install tinyos-2.1.1 
Maybe you will need to change the owner of the tinyos-2.1.1 folder
sudo chown –R username:group /opt/tinyos-2.1.1/
    change username and group by your user name and group.