Experienced Share: Install CTP-Castalia on OMNeT++

I have recently researched on tree routing protocol in WSN. I had analysed the CTP routing protocol under TinyOS’s nesC programming, however, due to some limitations the built-in TOSSIM simulator has to offer on energy and radio modeling and in graphical analysis, and after doing some research, I found that the WSN’s CTP on Castalia simulator just serve the purpose.

However, the intriguing part is that the CTP routing version ported on Castalia are developed few years back in 2011 with the existing tools on that particular year. Meaning to say, in short, I have to use the same old tools for today. But, I had done some trial and error to answer my curiosity question I had in mind: ‘I need latest tools. Why should I use tools that are already 9 years old while some of its features already obsolete? What if the Castalia’s CTP make to test run in latest tools (latest version of ubuntu, omnet++, castalia)? Can it be successfully compiled?

Therefore, I had for more than a week mingling with the versions mixture of ubuntu, omnet++, and castalia, for example I have tried tenth of tenth combination of version among these tools, for example ubuntu 18 + omnet++ 4.6 + castalia 3.2, or ubuntu 16 + omnet++ 4.2, castalia 3.0, ubuntu 10 (even the distro already not supported) + omnet++ 4.2.2 + castalia 3.2, ubuntu 14 + omnet++ 4.2.2 + castalia 3.0/3.2, but NONE works..I do get similar error during the make process such as the TosEnvironment.h error, dynamic argument error, bison compile error, gcc compile error, etc.

However, after almost give up on everything, finally after many trials and errors, I found that the only mixture that works for me is this combination: Ubuntu 12.04.5-LTS 64 bit, OMNeT++ 4.2.2, Castalia 3.2..even I have to satisfy myself of using not the latest tools in a rack! In particular, this combination are using these versions of software: java openjdk-6-jdk 1.6.0_41, java jre 1.6.0_41, gcc/g++ 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5), python 2.7.3, bison (GNU) 2.5, perl v5.14.2, flex 2.5.35, tcl/tk 8.5. Try this, and fingers crossed, you get the ctp-castalia compiled and run success for you.

I believe someone out there does struggle the same experienced I had and I hope that this note helps them find the exit road!

Particular links to the download:

1. Ubuntu 12.04.5 LTS 64 bit: http://releases.ubuntu.com/12.04/

2. OMNeT++ 4.2.2: https://omnetpp.org/download/old.html

3. Castalia 3.2: https://github.com/boulis/Castalia/releases

4. Ctp-Castalia-beta-1.1: https://code.google.com/archive/p/ctp-castalia/downloads

Hope it works for you as it works for me!

Knowing worth sharing.

Yusnaidi, UTM

From The Blog

How to install TinyOS 2.1.1 on Ubuntu 14.0.4 32 bit

How to install TinyOS 2.1.1 on Ubuntu 14.0.4 32 bit

How to install TinyOS-2.1.1 on Ubuntu 14.0.4 LTS 32-bitEven TinyOS has been updated to version 3 but in terms of simulation, I found few limitations hindered one to simulate particularly on micaz platform. I have been searching all over the web and other references...

How to Install TinyOS-2.1.1 on VM Ubuntu

How to Install TinyOS-2.1.1 on VM Ubuntu

How to install TinyOS-2.1.1 on Ubuntu 14.04.5 LTS 32-bit VirtualBox VMThe recent TinyOS 3 version has limitation on supporting simulation. Therefore, to leverage the use of TOSSIM, the built-in TinyOS simulator, researchers has to rely on the backdated version of the...

In the Name of God for Mankind. Kerana Tuhan Untuk Manusia.

Universiti Teknologi Malaysia

Never underestimate yourself.

Yusnaidi Md Yusof

Speak good or remain silent.

Prophet Muhammad ﷺ

No two things have been than knowledge and patience.

Prophet Muhammad ﷺ

Fall seven times, stand up eight.

Japanese Proverb

You can't learn in school what the world is going to do next year.

Henry Ford

Stay hungry, stay foolish.

Steve Jobs

You don't have to see the whole staircase, just take the first step.

Martin Luther King

Design is not just what it looks like and feels like. Design is how it works.

Steve Jobs

I want to put ding in the universe.

Steve Jobs

Rule No. 1: Never lose money. Rule No. 2: Never forget rule No. 1.

Warren Buffett

You only have to do a very few things right in your life so long as you don't do too many things wrong.

Warren Buffett

Someone is sitting in the shade today because someone planted a tree a long time ago.

Warren Buffett

We enjoy the process far more than the proceeds.

Warren Buffett

I don't look to jump over 7-foot bars: I look around for 1-foot bars that I can step over.

Warren Buffett

Price is what you pay. Value is what you get.

Warren Buffett

The key is not to prioritize what's on your schedule, but to schedule your prioritizes.

Stephen Covey

Live out your imagination, not your history.

Stephen Covey

The main thing is to keep the main thing the main thing.

Stephen Covey

Happiness is not something you postpone for the future; it is something you design for the present.

Jim Rohn

Mens et manus. Mind and Hand.

Massachusetts Institute of Technology

Veritas. Truth.

Harvard University

Hinc lucem et pocula sacra. From this place, we gain enlightenment and precious knowledge.

Cambridge University

Dominus Illuminatio Mea. The Lord is my Light.

Oxford University

Die Luft der Freiheit weht. The Wind of Freedom Blows.

Stanford University

Fiat lux. Let There be Light.

University of California, Los Angeles

Zukunft denken. Thinking the Future.

RWTH Aachen University

mens agitat molem. Coat of Arms.

Newcastle University

Dei Sub Numine Viget. Under the Protection of God She Flourishes.

Princeton University

ज्ञानम् परमम् ध्येयम्. Knowledge is the Supreme Goal.

Indian Institute of Technology, Bombay

自强不息、厚德载物. Self-Discipline and Social Commitment.

Tsinghua University

Takuetsu-sei o hakken suru. Discover Excellence.

The University of Tokyo

Dare to Reach the Highest.

National University of Singapore

اقْرَأْ بِاسْمِ رَبِّكَ الَّذِي خَلَقَ Read! In the name of your Lord Who created.

King Abdulaziz University

Наука есть ясное познание истины, просвещение разума, Science is clear understanding of truth, enlightenment of the mind.

Moscow State University

Naturam Primum Cognoscere Rerum, First to learn the nature of things.

Australian National University

Discipline is the bridge between goals and accomplishment.

Jim Rohn

You don't get paid by the hour. You get paid for the value you bring to the hour.

Jim Rohn

My number one piece of adive is: You should learn how to program.

Mark Zuckerberg

If you get tired, learn to rest, not to quit.

Anonymous

Let's Start Something new
SAY HELLO!

"Two are Better Than One". I believe Bigger Mind Sparks Bigger Idea. Let's be a Team, because we are already a Family. Let's talk research. Let's share research. I would loved to learn new things, explore new possibilities, collaborate new research, improve knowledge skills, and learn from YOU!

Let's Be a Team

7 + 11 =

5 Comments

  1. crork

    A motivating discussion is worth comment. I do think that you ought to publish more on this issue, it may not be a taboo matter but generally people don’t talk about such issues. To the next! Kind regards!!

    Reply
  2. XMC.PL

    Hello 🙂 I bookmarked this site. Thanks heaps for this!… if anyone else has anything, it would be much appreciated. Great website Super Ezines Free Laptops Inside http://www.Ezines.M106.COM Enjoy!…

    Reply
  3. www.xmc.pl

    Nigdy nie zapomnij najpiekniejszych dni swojego zycia! Wracaj do nich, ilekroc w twoim zyciu wszystko zaczyna sie walic. – Jim Rohn

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *