networking - Implementing adaptive power control in OMNeT++ (MIXIM) -


i have form of wireless sensor network designed using mixim framework in omnet++.

i've built on host802154 module, using modified ieee802154 standard , custom protocol.

i want able programmatically adapt power output of transmitter in 1 node during simulation, leaving other nodes @ original power, giving single node larger broadcast radius. should happen during circumstances, not useful have preset power higher outset.

  1. is possible within omnet++? and
  2. if so, how, , have examples of working?

as adaptive power control isn't unheard of, hoping there can implement it.

many thanks.

i think this answer here given @floxyz following question: how change configuration of network during simulation in omnet++? should solve problem.

the basic idea use somekind within handlemessage() can used check specific condition

handlemessage(cmessage *msg){   if(msg->getkind() == yourkind){  // replace yourkind 1 using these messages     transmission_rate = new_value; } 

otherwise answer @christophsommer fit better case. comment on answer useful well.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -