0

I came across some code to get RSSI from this article on stackoverflow. However, only some code is presented, so I wrote the code as follows to check the result. However, it is questionable whether or not this has normally obtained RSSI.

RSU.h

...
#include "veins/modules/phy/DeciderResult80211.h"
#include "veins/base/phyLayer/PhyToMacControlInfo.h"

RSU.cc

// If received some message from other node
double rssi = check_and_cast<DeciderResult80211*>(check_and_cast<PhyToMacControlInfo*>(wsm -> getControlInfo()) -> getDeciderResult()) -> getRecvPower_dBm();
EV << "RSSI Value: " << rssi << std::endl;
...
Minwoo Kim
  • 497
  • 1
  • 5
  • 21
  • What experiments did you already perform to check your hypothesis? In what way did the result not match your expectations? – Christoph Sommer Apr 22 '21 at 09:34
  • @ChristophSommer Some values are displayed normally when outputting the `EV`. For example, `-53.8234`. However, I'm wondering if this is the `RSSI` value calculated by the `RSSI` formula. – Minwoo Kim Apr 22 '21 at 19:05

0 Answers0