Reassigning SSB Beam to a UE During System-Level Simulation for 5G

1 view (last 30 days)
I am doing a simulation similar to the "NR Cell Performance Evaluation with Beam Management" example shown in:
Here, an SSB beam is assigned to each UE as the hNRUE object is created.
The flow of the beam information of a UE is as such:
computeSSBToUE -> simParameters.SSBIndex -> ueParam.SSBIdx -> hNRUE(ueParam,ueIdx)
-> hNRUEPhy(ueParam,ueIdx)
I need to control the beams assigned to the UEs in run-time. Is there a way to change the assigned beam index while the simulation is running? Either by tuning the UEs or the physical layer? Could this be done with "release(.)"?
The part of the example code that creates the UEs:
% Create the set of UE nodes
UEs = cell(simParameters.NumUEs,1);
ueParam = simParameters;
for ueIdx=1:simParameters.NumUEs
% Position of the UE
ueParam.Position = simParameters.UEPosition(ueIdx,:);
ueParam.UERxAnts = simParameters.UERxAnts(ueIdx);
if enableBeamforming
ueParam.SSBIdx = simParameters.SSBIndex(ueIdx);
end
% Assuming same CSI report configuration for all UEs
ueParam.CSIReportConfig = simParameters.CSIReportConfig{1};
ueParam.ChannelModel = channelModelDL{ueIdx};
UEs{ueIdx} = hNRUE(ueParam,ueIdx);
% Create the PHY instance
UEs{ueIdx}.PhyEntity = hNRUEPhy(ueParam,ueIdx);
% Configure the PHY
configurePhy(UEs{ueIdx}, ueParam);
% Set up the interface to PHY
setPhyInterface(UEs{ueIdx});
% Set up logical channel at gNB for the UE
configureLogicalChannel(gNB,ueIdx,rlcChannelConfigStruct);
% Set up logical channel at UE
configureLogicalChannel(UEs{ueIdx},ueIdx,rlcChannelConfigStruct);
% Set up application traffic
% Create an object for on-off network traffic pattern for the specified
% UE and add it to the gNB. This object generates the downlink data
% traffic on the gNB for the UE
dlApp = networkTrafficOnOff('GeneratePacket',true, ...
'OnTime',simParameters.NumFramesSim*10e-3,'OffTime',0, ...
'DataRate',dlAppDataRate(ueIdx));
addApplication(gNB,ueIdx,simParameters.LCHConfig.LCID,dlApp);
end

Answers (0)

Categories

Find more on System-Level Simulation in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!