save list of one hop neighbors in transmission range

42 views
Skip to first unread message

mento...@gmail.com

unread,
Aug 26, 2016, 3:50:41 PM8/26/16
to OMNeT++ Users

I wanted to make a table of node's neighbors. For that i need to know those neighbors which are in nodes transmission range as one hop neighbors.
i have set transmission range as r=100. I have written the code in myClass.
How should i do that?

Any help will be highly appreciated.

gates:
       
        input gateInOut @directIn;

types:
        channel Channel extends ned.DelayChannel
        {
            delay = 10ms;
        }
    submodules:
        node[10]: myClass {
        @display("r=100");}
        connections allowunconnected:

mento...@gmail.com

unread,
Aug 28, 2016, 10:39:16 AM8/28/16
to OMNeT++ Users
any one ??

Alfonso Ariza Quintana

unread,
Aug 30, 2016, 4:12:28 PM8/30/16
to omn...@googlegroups.com

I suppose that you are speaking about a wireless network, in this case you need to set the transmission range using the transmission power and sensitivity

  @display("r=100");} doesn't set the transmission range.


De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de mento...@gmail.com <mento...@gmail.com>
Enviado: viernes, 26 de agosto de 2016 21:50:41
Para: OMNeT++ Users
Asunto: [Omnetpp-l] save list of one hop neighbors in transmission range
 
--
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 https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

mento...@gmail.com

unread,
Aug 31, 2016, 3:31:34 AM8/31/16
to OMNeT++ Users, aari...@hotmail.com

Thank you so much Alfonso for the response.
I was working at lan nodes and now i wanted to make them wireless. Plus i need to set all those neighbors as one hop neighbors which are in its communication range. I wanted to know their IDs in the initialize function.
Then on the basis of these ids i will set their one hop neighbors as two hop to the current node.
Please suggest me how should i do that?
Reply all
Reply to author
Forward
0 new messages