User Tools

Site Tools


projects:cometos:tutorials:download

Download / Installation of CometOS

OMNeT++

CometOS uses OMNeT++ as simulation environment that has to be installed first. There is a dedicated installation guide for OMNeT++. In a nutshell, the following commands will install OMNeT++ on your Linux computer:

### Go to your home directory
### If you prefer another installation directory, you have to adjust the OMNET_PATH below, too
cd ~
 
### Download and unpack current release
wget http://www.omnetpp.org/omnetpp/doc_download/2282-omnet-45-source--ide-tgz
tar -xvzf 2282-omnet-45-source--ide-tgz
cd omnetpp-4.5/
 
### Add the OMNeT++ path to your environment
echo 'export OMNET_PATH=~/omnetpp-4.5' >> ~/.bashrc
echo 'export PATH=$PATH:$OMNET_PATH/bin' >> ~/.bashrc
source ~/.bashrc
 
### Configure and build
./configure
make

CometOS

Since CometOS is under heavy development, you probably want to get the current version from the repository (only possible with institute account!):

### Go to your home directory
### If you prefer another installation directory, you have to adjust the COMETOS_PATH below, too
cd ~
 
### Get current version of CometOS
svn checkout https://svn.ti5.tu-harburg.de/projects/trunk/wsn/cometos/
 
### Set environment variables
echo 'export COMETOS_PATH=~/cometos' >> ~/.bashrc
echo 'export PATH=$PATH:$COMETOS_PATH/builder' >> ~/.bashrc
echo 'export COMETOS_NED_FOLDERS=$COMETOS_PATH/MiXiM/base:$COMETOS_PATH/MiXiM/modules:$COMETOS_PATH/src:$COMETOS_PATH/sim' >> ~/.bashrc
source ~/.bashrc

Setting up the eclipse-based IDE

The following steps are only needed if you are planning to use the IDE and opp_makemake to build for the simulation.

Setting up the project

→ File → New → OMNeT++ Project
→ Type cometos as project name
→ Unmark "Use default location" and choose the cometos folder in your home folder.
→ Click on finish
→ If you are asked for overriding package.ned, choose No.

Go to the project settings (right click on the project: Properties) and choose OMNeT++→Makemake. If you are planning to use cometos as a library for another project (e.g., cometos_v6), choose cometos as source only source location and Makemake as Build. Options to Makemake are

  • Target: type: Shared Library (check Export this shared/static library for other projects) name: Default
  • Scope: Deep compile and Recursive make

the remaining options can be left at default.

Additionally, only include MiXiM, src, tst in the first directory level. Within src, exclude

  • addressing/platform
  • core/platform
  • files
  • mac/local
  • mac/platform
  • omnetpp/untersch
  • platform
  • python
  • reflex

NED Source Folders have to be set to

  • MiXiM/base
  • MiXiM/modules
  • sim
  • src

With those settings, cometos should be compilable.

AVR Programming with OMNeT++

### Start the OMNeT++ IDE 
cd ~/omnetpp-4.5/ide/
omnetpp
### Install the AVR Plugin:
→ Help → Install New Software
→ Add: insert the site http://avr-eclipse.sourceforge.net/updatesite/ and the name AVR into the form.
→ Check the box next to AVR Eclipse Plugin
→ Next: Follow the instructions (ignore warnings) until the plugin is installed.
→ Restart OMNeT++

AVR Programming

The following steps will configure your computer for programming AVR microcontrollers. You need superuser rights. Ask your supervisor, if these commands fail.

### Install the packages:
sudo apt-get install avrdude gcc-avr avr-libc
 
### Setup the programmer
sudo sh -c 'echo "ATTRS{idVendor}==\"15ba\", ATTRS{idProduct}==\"000c\", ENV{ID_MM_DEVICE_IGNORE}=\"1\", MODE=\"0666\", SYMLINK+=\"olimex-isp\"" > /etc/udev/rules.d/olimex.rules'
sudo restart udev
projects/cometos/tutorials/download.txt · Last modified: 2015/11/27 15:08 by ti5gs