为什么获得的rxPower()始终为零,每个地方?

时间:2015-09-01 08:43:32

标签: omnet++ inet

void Ieee80211AgentSTA::dumpAPList(Ieee80211Prim_ScanConfirm *resp)
{
EV << "Received AP list:\n";
for (int i = 0; i < (int)resp->getBssListArraySize(); i++) {
    Ieee80211Prim_BSSDescription& bssDesc = resp->getBssList(i);
    EV << "    " << i << ". "
       << " address=" << bssDesc.getBSSID()
       << " channel=" << bssDesc.getChannelNumber()
       << " SSID=" << bssDesc.getSSID()
       << " beaconIntvl=" << bssDesc.getBeaconInterval()
       << " rxPower=" << bssDesc.getRxPower()
       << endl;
    // later: supportedRates
}
}

我执行了现有的mobileIPv6示例,注意到rxpower的返回值都等于零。

我改变了MN在接入点附近和远离接入点的位置,但没有改变rxpower

我想知道的另一件事是:rxpower是否等于RSSI(接收信号强度指标)?或者我可以从RSSI获得rxPower吗?

模拟日志的事件:

  

**事件#256 t = 0.165239371312 mIPv6Network.MN [0] .wlan [0] .agent(Ieee80211AgentSTA,id = 127),on selfmsg startUp' (cMessage, id=28) Starting up Sending ScanRequest primitive to mgmt ** Event #1372 t=0.815239371312 mIPv6Network.MN[0].wlan[0].agent (Ieee80211AgentSTA, id=127), on inet :: ieee80211 :: Ieee80211Prim_ScanConfirm'(cMessage, ID = 1680)   来自mgmt的处理确认:   inet :: ieee80211 :: Ieee80211Prim_ScanConfirm DEBUG:当前位置=   (180.408,100,0)收到的AP列表:       0. address = 10-AA-00-00-00-01 channel = 1 SSID = HOME beaconIntvl = 0.1 rxPower = 0 选择的AP地址= 10-AA-00 -00-00-01 from list,开始认证将AuthenticateRequest原语发送到mgmt   **事件#1460 t = 0.81767038585 mIPv6Network.MN [0] .wlan [0] .agent(Ieee80211AgentSTA,id = 127),on   inet::ieee80211::Ieee80211Prim_AuthenticateConfirm' (cMessage, id=1823) Processing confirmation from mgmt: inet::ieee80211::Ieee80211Prim_AuthenticateConfirm Authentication successful, let's try to associate Sending AssociateRequest primitive to mgmt ** Event #1513 t=0.81913139312 mIPv6Network.MN[0].wlan[0].agent (Ieee80211AgentSTA, id=127), on inet :: ieee80211 :: Ieee80211Prim_AssociateConfirm'(cMessage,id = 1908)   来自mgmt的处理确认:   inet :: ieee80211 :: Ieee80211Prim_AssociateConfirm协会成功

0 个答案:

没有答案