Starting with MiXiM: A step-by-step guide

549 views
Skip to first unread message

Marcos Fagundes Caetano

unread,
Aug 9, 2013, 6:04:05 PM8/9/13
to omn...@googlegroups.com
Hi,

It is my first time trying to work with OMNETpp simulator.

I'm very frustrated, because I can't make the first example works in my computer.

I'm trying to do the first tutorial example named: Starting with MiXiM: A step-by-step guide

http://sourceforge.net/apps/trac/mixim/wiki/StepByStep

I was able to compiled the OMNET source code (4.3) and also the mixim (from git). All mixim and OMNET examples are working perfectly.

When I try to run my project, the eclipse shows the following message:

Error in module (cCompoundModule) MeuProjeto.node[0] (id=4) during network setup: Submodule mobility: no module type named `BaseMobility' found that implements module interface inet.mobility.IMobility (not in the loaded NED files?), at ../minix/src/modules/node/WirelessNode.ned:32.

Someone could tell me what is going on? I just want to create a simple topology in order to evaluate the IEEE 802.11 implementation. I would like to make some changes and run some different simulations scenarios.

Best regards.

Caetano.

Arliones Hoeller

unread,
Aug 11, 2013, 12:00:28 PM8/11/13
to omn...@googlegroups.com
Hi Caetano!

I'm not a user of MiXiM but, apparently, they have modeled interfaces for mobility (IMobility) just as INETMANET does. This is a recent change and, probably, the tutorial you are following is outdated.
What you have to do is to go to your network NED file and replace "BaseMobility" with some implementation of the IMobility interface that, I guess, are located at $MIXIM/src/modules/mobility. StationaryMobility should give a basic mobility model (i.e., static nodes).

Hope it helps!
Arliones.
--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
---
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ivo Calado

unread,
Aug 11, 2013, 1:00:16 PM8/11/13
to omn...@googlegroups.com
Marcos,
   could you send the code in order I can test here?

[]'s
--
Ivo Calado

Quidquid latine dictum sit, altum viditur

Putt's Law:
       Technology is dominated by two types of people:
               Those who understand what they do not manage.
               Those who manage what they do not understand.

Marcos F. Caetano

unread,
Aug 11, 2013, 1:18:12 PM8/11/13
to omn...@googlegroups.com
Hi, Arliones,

Thank you very much for the reply. I'm very happy to know that you are participating in this community!

Your advice was correct. When I created the scenario using the wizard tutorial, the default code generated for mobility was:

**.node[*].mobilityType = "BaseMobility"
**.node[*].mobility.debug = false
**.node[*].mobility.updateInterval = 0.1s
**.node[0].mobility.initialX = 150m
...

I just changed to:

**.node[*].mobilityType = "StationaryMobility"
**.node[*].mobility.debug = false
**.node[*].mobility.initFromDisplayString = false

Now, everything is working perfectly.

Best regards.

Caetano.

 ---------------------------------------------
 M.F. Caetano
 ---------------------------------------------
 Professor Assistente I
 Departamento de Ciência da Computação (CIC)
 Universidade de Brasília (UnB)
 
 Web...: http://www.cic.unb.br/~caetano
 E-mail: mfca...@unb.br
 Phone : +55 61 3107 3681
 ---------------------------------------------


On Sun, Aug 11, 2013 at 1:00 PM, Arliones Hoeller <arli...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/WiZi9fB7LHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

Marcos F. Caetano

unread,
Aug 11, 2013, 1:26:56 PM8/11/13
to omn...@googlegroups.com
Hi, Ivo.

Thank you for your reply.

I already solved the problem. I changed the default mobility code parameters to the code below.


**.node[*].mobilityType = "StationaryMobility"
**.node[*].mobility.debug = false
**.node[*].mobility.initFromDisplayString = false

Thank you for your interest in helping me.

Best regards.

Caetano.

 ---------------------------------------------
 M.F. Caetano
 ---------------------------------------------
 Professor Assistente I
 Departamento de Ciência da Computação (CIC)
 Universidade de Brasília (UnB)
 
 Web...: http://www.cic.unb.br/~caetano
 E-mail: mfca...@unb.br
 Phone : +55 61 3107 3681
 ---------------------------------------------


You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/WiZi9fB7LHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages