Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Dynamic association compared to RSSI 0dB (1mW) on init and will not select any eNB #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/stack/phy/layer/LtePhyUe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void LtePhyUe::initialize(int stage)
handoverLatency_ = par("handoverLatency").doubleValue();
dynamicCellAssociation_ = par("dynamicCellAssociation");
currentMasterRssi_ = 0;
candidateMasterRssi_ = 0;
candidateMasterRssi_ = -120.0; // set do MIN_VALUE to allow best eNB selection during dynamic association
hysteresisTh_ = 0;
hysteresisFactor_ = 10;
handoverDelta_ = 0.00001;
Expand Down Expand Up @@ -127,7 +127,8 @@ void LtePhyUe::initialize(int stage)
rssi += *it;
rssi /= rssiV.size(); // compute the mean over all RBs

EV << "LtePhyUe::initialize - RSSI from eNodeB " << cellId << ": " << rssi << " dB (current candidate eNodeB " << candidateMasterId_ << ": " << candidateMasterRssi_ << " dB" << endl;
EV << "LtePhyUe::initialize - RSSI from eNodeB " << cellId << ": " << rssi << " dB (current candidate eNodeB "
<< candidateMasterId_ << ": " << candidateMasterRssi_ << " dB" << endl;

if (rssi > candidateMasterRssi_)
{
Expand Down Expand Up @@ -218,7 +219,8 @@ void LtePhyUe::handoverHandler(LteAirFrame* frame, UserControlInfo* lteInfo)
rssi /= rssiV.size();
}

EV << "UE " << nodeId_ << " broadcast frame from " << lteInfo->getSourceId() << " with RSSI: " << rssi << " at " << simTime() << endl;
EV << "UE " << nodeId_ << " broadcast frame from " << lteInfo->getSourceId()
<< " with RSSI: " << rssi << " at " << simTime() << endl;

if (rssi > candidateMasterRssi_ + hysteresisTh_)
{
Expand Down