Configuring NrPmSearch SubbandSize Attribute For Different BWPs

5 views
Skip to first unread message

Alan Birchler

unread,
Sep 19, 2025, 9:53:04 AM (16 hours ago) Sep 19
to 5G-LENA-users
Hello everyone,

I'm simulating a scenario where there are two sets of UEs each communicating to a gnodeb under one of the operating bands that the gnodeb services (and thus are under different central frequencies, numerologies, etc.). Under each band, there are two CCs, each having only one BWP. Thus, each band has a total of 2 BWPs. 

Setting the Config::SetDefault("ns3::NrPmSearch::SubbandSize", UintegerValue(1)); line will cause errors as the BWPs under one band will have a different value for total PRBs from the BWPs in the other band. Thus, is it possible to set the SubbandSize attribute of the NrPmSearch class for each BWP? Or is there in general a way in 5G-LENA to perform the NrPmSearch functionality given BWPs of different varying PRBs?

Best regards,


Alan Birchler De Allende

Gabriel Ferreira

unread,
Sep 19, 2025, 11:04:18 AM (15 hours ago) Sep 19
to 5G-LENA-users
I think it is possible, but you will need to set it manually. Something like this

for (cc)
{
ObjectFactory  pmSearchFactory;
pmSearchFactory.SetTypeId(NrPmSearchFull::GetTypeId());
pmSearchFactory.Set("CodebookType" ,  TypeIdValue(NrCbTypeOneSp::GetTypeId()));
pmSearchFactory.Set("SubbandSize", UintegerValue(subBandSize.at(cc)));
auto pmSearch = pmSearchFactory.Create<NrPmSearch>();
ueNetDev->GetPhy(i)->SetPmSearch(pmSearch);
auto gnbAnt = gnbNetDev->GetPhy(i)->GetSpectrumPhy()->GetAntenna()->GetObject<PhasedArrayModel>();
auto ueAnt = ueNetDev->GetPhy(i)->GetSpectrumPhy()->GetAntenna()->GetObject<PhasedArrayModel>();
pmSearch->SetGnbParams(gnbAnt->IsDualPol(), gnbAnt->GetNumHorizontalPorts(), gnbAnt->GetNumVerticalPorts());
pmSearch->SetUeParams(ueAnt->GetNumPorts());
pmSearch->InitCodebooks();
Reply all
Reply to author
Forward
0 new messages