[Omnetpp-l] How to use INET modules in OMNET++ projects

1,960 views
Skip to first unread message

Ali Dabirmoghaddam

unread,
Aug 10, 2008, 3:04:19 AM8/10/08
to omne...@omnetpp.org
Hi everybody,

I have a good understanding of using OMNET++, though am totally new to INET framework. To simulate a routing protocol in sensor networks, I need to exercise the 802.11b MAC module from the INET framework. I have installed both OMNET++ and INET framework on my Linux machine; but am completely confused about how I can bind my codes in pure OMNET++ with available 802.11b MAC module of the INET framework. In more precise words, I know that my codes have to be compiled and built using the Makefile created by the "opp_makemake -f" command, but as far as I am know, the modules of the INET framework do not need to be recompiled in order to be used; and my problem is that I don't know how to resolve this contradiction. I will be most appreciative if anybody could help me figure out this issue by describing the whole steps I should take to bring this thing to work.

Thanks in advance,
--Ali


Marco T.

unread,
Aug 10, 2008, 6:34:00 AM8/10/08
to omne...@omnetpp.org
Hi Ali,
 
dealing with INET is very similar to OMNET. If you have to extend INET functionalities, all you have to do is to modify .cc files in the subdirectory you are working on, then move into INET main directory and type "make". This will recompile INET modules along with all your changes. 
Instead if you need to add new modules (new files) execute "opp_makemake" before make. This will include your new modules inside INET.
Remember that you can use inside INET any Omnet++ module (cTopology, cGate, etc...). If you take a look at INET documentation you can find a lot of useful functions which directly access omnet modules.
Then, in order to run your simulation with INET modules, simply move in your working directory (where you have .ned and .ini files) and execute one of the following:
INET (if you want to use the graphical interface)
INET -r [run to execute] -u Cmdenv -l libcmdenv (if you want to execute from command line)
 
Regards,
 
Marco

Ajay Bharwaj

unread,
Feb 23, 2013, 3:15:44 PM2/23/13
to omn...@googlegroups.com, omne...@omnetpp.org, kps...@hotmail.com
Hi...
i am new to omnet++ and INET
can u tell me how to perform handover in wireless communications in omnet++
please reply.

monali suthar

unread,
Feb 12, 2018, 9:40:34 PM2/12/18
to OMNeT++ Users
My work is same.....can you help me ?
Reply all
Reply to author
Forward
0 new messages