address mac of pan coordinator

10 views
Skip to first unread message

hxyz xyz

unread,
Jan 15, 2017, 3:41:22 PM1/15/17
to omn...@googlegroups.com
Hello sir
Please how can i get the address mac of the pan coordinator of a specefic node for example if i have the address mac of a specefic node how can i get the address mac of its pan coordinator
Best,

Alfonso Ariza Quintana

unread,
Jan 16, 2017, 4:47:24 AM1/16/17
to omn...@googlegroups.com

If you want to visualize the address you can include a watch macro in the node code, with this, you can visualize it in the IDE.

--
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.

hxyz xyz

unread,
Jan 16, 2017, 2:20:47 PM1/16/17
to omn...@googlegroups.com
I search for something such as this one : ie->getSrcPanId();
i do exactly this example but it gives me the error:
class InterfaceEntry’ has no member named ‘getSrcPanId’

The example:
 IInterfaceTable *inet_ift= InterfaceTableAccess().get();
                          for (int i = 0; i < inet_ift->getNumInterfaces(); i++)
                          {
                          InterfaceEntry * ie =inet_ift->getInterface(i);
                          const char * name = ie->getName(); 
                              ie->getSrcPanId();
                          }

2017-01-16 10:47 GMT+01:00 Alfonso Ariza Quintana <aari...@hotmail.com>:

If you want to visualize the address you can include a watch macro in the node code, with this, you can visualize it in the IDE.

 

 

De: omn...@googlegroups.com [mailto:omnetpp@googlegroups.com] En nombre de hxyz xyz
Enviado el: domingo, 15 de enero de 2017 21:41
Para: omn...@googlegroups.com
Asunto: [Omnetpp-l] address mac of pan coordinator

 

Hello sir

Please how can i get the address mac of the pan coordinator of a specefic node for example if i have the address mac of a specefic node how can i get the address mac of its pan coordinator

Best,

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.

Alfonso Ariza Quintana

unread,
Jan 17, 2017, 10:34:50 AM1/17/17
to omn...@googlegroups.com

The coordinator address in the mpib.macCoordShortAddress.

 

You can use WATCH in the ini file

 

WATCH(mpib.macCoordShortAddress);

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de hxyz xyz
Enviado el: lunes, 16 de enero de 2017 20:21
Para: omn...@googlegroups.com
Asunto: Re: [Omnetpp-l] address mac of pan coordinator

 

I search for something such as this one : ie->getSrcPanId();
i do exactly this example but it gives me the error:
class InterfaceEntry’ has no member named ‘getSrcPanId’

The example:
 IInterfaceTable *inet_ift= InterfaceTableAccess().get();
                          for (int i = 0; i < inet_ift->getNumInterfaces(); i++)
                          {
                          InterfaceEntry * ie =inet_ift->getInterface(i);
                          const char * name = ie->getName(); 
                              ie->getSrcPanId();
                          }

2017-01-16 10:47 GMT+01:00 Alfonso Ariza Quintana <aari...@hotmail.com>:

If you want to visualize the address you can include a watch macro in the node code, with this, you can visualize it in the IDE.

 

 

De: omn...@googlegroups.com [mailto:omn...@googlegroups.com] En nombre de hxyz xyz
Enviado el: domingo, 15 de enero de 2017 21:41
Para: omn...@googlegroups.com
Asunto: [Omnetpp-l] address mac of pan coordinator

 

Hello sir

Please how can i get the address mac of the pan coordinator of a specefic node for example if i have the address mac of a specefic node how can i get the address mac of its pan coordinator

Best,

--
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.

--

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.

--
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.

hxyz xyz

unread,
Jan 19, 2017, 8:36:05 AM1/19/17
to omn...@googlegroups.com
WATCH(mpib.macCoordShortAddress);

In ini file i give me this error
Line must be in the form key=value

To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.

--

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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages