Creation of nodes

30 views
Skip to first unread message

pp37...@gmail.com

unread,
Jun 25, 2015, 7:08:21 AM6/25/15
to omn...@googlegroups.com
Hi,

I have a WirelessHost in my network and I would like to let it appear after 10 seconds in my simulation. Is this possible?

Thank You

Michael Kirsche

unread,
Jun 25, 2015, 8:01:13 AM6/25/15
to omn...@googlegroups.com
Probably through the use of the LifecycleController and lifecycle operations (startup, shutdown, etc.).

Here's some API documentation:
https://omnetpp.org/doc/inet/api-current/neddoc/inet.base.LifecycleController.html

Alfonso Ariza Quintana

unread,
Jun 25, 2015, 11:29:08 AM6/25/15
to omn...@googlegroups.com

https://github.com/aarizaq/inetmanet-2.0/tree/inetmanet-2.2/examples/manetrouting/dynamicNodeCreation

 

This this example, in this example the nodes are included/deleted in simulation time

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

pp37...@gmail.com

unread,
Jun 29, 2015, 11:54:59 AM6/29/15
to omn...@googlegroups.com, aari...@hotmail.com
Hi Michael and Hi Alfonso,

i tried to use the lifecycle controller and my node is offline according to my specifications. But I get an exception, if the node receives a message, for example a broadcast message if it is close to an accesspoint. The error is:
"Message XY received when module is OFF" .

Is is possible to configure the module to ignore incoming messages?

Best

Alfonso Ariza Quintana

unread,
Jun 29, 2015, 1:52:09 PM6/29/15
to omn...@googlegroups.com

 

Without modify the code, in some modules no. The modification is easy

Tobias Hardes

unread,
Jun 29, 2015, 2:07:24 PM6/29/15
to omn...@googlegroups.com
Hi Alfonso,

yeah I could just replace the exception statement with a return statement and thats it, but the modification would take place in Ieee80211MgmtBase.

Do You think this is the right way?

Best
signature.asc

Tobias Hardes

unread,
Jun 29, 2015, 2:14:40 PM6/29/15
to omn...@googlegroups.com
@pp37...@gmail.com

Sorry for interrupting this, but when I read this thread I thought there would be a nicer solution than mine.

You might solve your problem by just replace that "throw cRuntineError" with a "return". Of course this depends on Your scenario...

Best
Tobias
signature.asc

Alfonso Ariza Quintana

unread,
Jun 29, 2015, 2:17:22 PM6/29/15
to omn...@googlegroups.com

Also you need to delete the received packet prior to the return

Alfonso Ariza Quintana

unread,
Jun 29, 2015, 2:19:15 PM6/29/15
to omn...@googlegroups.com

The idea is to search the module that send the packet and “to stop” the module.

Reply all
Reply to author
Forward
0 new messages