Pages

Monday 8 August 2022

Contiki NG Installation in Ubuntu 20.04

Start by installing some necessary packages:

$ sudo apt update 

$ sudo apt install build-essential doxygen git curl wireshark python3-serial srecord rlwrap

While installing Wireshark, select enable the feature that lets non-superuser capture packets (select "yes"). 

$ sudo apt install autoconf automake libxmu-dev


To install GCC for ARM controller 

$ wget https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major/+download/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2


Extract this file in the home folder itself. 

root@ubuntu:/home/ubuntu# tar xvf gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2

To open the above file using a terminal

vl@ubuntu:~/gcc-arm-none-eabi-5_2-2015q4-20151219-linux$ pwd
/home/vl/gcc-arm-none-eabi-5_2-2015q4-20151219-linux
vl@ubuntu:~/gcc-arm-none-eabi-5_2-2015q4-20151219-linux$ cd
vl@ubuntu:~$ pwd
/home/vl
vl@ubuntu:~$ gedit .bashrc

set the above in the PATH Environment. 

/home/vl/.bashrc as:

export PATH=$PATH:/home/vl/gcc-arm-none-eabi-5_2-2015q4-20151219-linux/bin 

To check the added path use the commnad 

$ echo $PATH

 
$ sudo apt install gcc-msp430
 

$ sudo apt install default-jdk ant
 


Add this path in .bashrc file 

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/bin/java 


CoAP Client 

$ sudo apt-get install -y npm && sudo apt-get clean && sudo npm install coap-cli -g && sudo ln -s /usr/bin/nodejs /usr/bin/node

MQTT Clients 

$ sudo apt-get install -y mosquitto mosquitto-clients

Configuration Completed. 

 

Download Contiki NG 

vl@ubuntu:~$ git clone https://github.com/contiki-ng/contiki-ng.git 
$ cd contiki-ng 
$ git submodule update --init --recursive

 
How to run cooja :
make // for first program
make clean // for next program we need to do
 



To view Cooja simulator:
$ sudo ant run 


No comments:

Post a Comment

OSPF Using CPT

OSPF (Open Shortest Path First)  is a common networking protocol used for routing within an autonomous system and is widely used due to its ...