Calculation of RSSI value in INET

423 views
Skip to first unread message

jillublue

unread,
Feb 12, 2017, 4:52:19 PM2/12/17
to OMNeT++ Users
I'm a complete beginner to OmNet++. Right now working on the AODV example given in INET. How do I calculate the RSSI value in INET? 

Florian Kauer

unread,
Feb 13, 2017, 8:12:55 AM2/13/17
to omn...@googlegroups.com
If you apply this patch
https://github.com/openDSME/inet/commit/c5963e47a25fa926dbde63f9c48b3651980ab12f

you can receive the RSSI like this

inet::physicallayer::ReceptionIndication* control = check_and_cast<inet::physicallayer::ReceptionIndication*>(macPkt->getControlInfo());
ss << "RSSI: " << inet::math::mW2dBm(control->getMinRSSI().get() * 1000) << " dBm ";

Greetings,
Florian

On 12.02.2017 22:52, jillublue wrote:
> I'm a complete beginner to OmNet++. Right now working on the AODV
> example given in INET. How do I calculate the RSSI value in INET?
>
> --
> 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
> <mailto:omnetpp+u...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/omnetpp.
> For more options, visit https://groups.google.com/d/optout.

Henrique Junior

unread,
Mar 18, 2019, 2:29:23 PM3/18/19
to OMNeT++ Users
Greetings Florian and jillublue

This patch is for the RSSI received by the Access Point host, right?
In which class should I call the rows.

--inet :: physicallayer :: ReceptionIndication * control = check_and_cast <inet :: physicallayer :: ReceptionIndication *> (macPkt-> getControlInfo ());
--ss << "RSSI:" << inet :: math :: mW2dBm (control-> getMinRSSI (). get () * 1000) << "dBm";

?

Best regards,
Henrique
Reply all
Reply to author
Forward
0 new messages