wireless networks and mobile nodes

24 views
Skip to first unread message

Rehab Shaheen

unread,
Aug 1, 2017, 9:17:34 AM8/1/17
to OMNeT++ Users
Hello,
I am new to omnet++ and started using it a couple of days ago.
I followed the tic toc example and now, I need to learn how to simulate wireless networks
 I need to implement a very simple example similar to tic toc scenario but in a wireless network and two mobile nodes

should I use INet/Mixim for modeling wireless and/or mobility?
or there is another simpler way?

Message has been deleted
Message has been deleted

Atif Shahzad

unread,
Aug 2, 2017, 2:09:21 AM8/2/17
to OMNeT++ Users
you can create a simple wireless scenario without using any model. in this case, instead of send() use sendDirect command

target = getParentModule()->getSubmodule("wireless1"); // defining a module
        cMessage *msg = new cMessage("tictocMsg");
        sendDirect(msg,target,"radioIn"); // sendDirect message
        cMessage *msg2 = new cMessage();
        scheduleAt(simTime()+par("sendInterval"),msg2);
Reply all
Reply to author
Forward
0 new messages