Dear all, thank you very much for your kind response!
Nicola: Due to I need to use Friis propagation model I tried to fix this bug in a very quick way by changing the lte-helper as following:
(I am not sure if this is enough to set the the lambda value for both channel, uplink and downlink but I think it can work for this propagation model)
Thank you in advanced for your help!
Leticia
See in red the changes!
NS_LOG_LOGIC ("set the propagation model frequencies");
double dlFreq = LteSpectrumValueHelper::GetCarrierFrequency (dev->GetDlEarfcn ());
NS_LOG_LOGIC ("DL freq: " << dlFreq);
bool dlFreqOk = m_downlinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (dlFreq));
if (!dlFreqOk)
{
m_downlinkPathlossModel->SetAttribute ("Lambda", DoubleValue (300000000/dlFreq));
NS_LOG_WARN ("DL propagation model does not have a Frequency attribute");
}
double ulFreq = LteSpectrumValueHelper::GetCarrierFrequency (dev->GetUlEarfcn ());
NS_LOG_LOGIC ("UL freq: " << ulFreq);
bool ulFreqOk = m_uplinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (ulFreq));
if (!ulFreqOk)
{
m_uplinkPathlossModel->SetAttribute ("Lambda", DoubleValue (300000000/ulFreq));
NS_LOG_WARN ("UL propagation model does not have a Frequency attribute");