Vous êtes sur la page 1sur 9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

MATLABExamples
ExamplesHome MATLABFamily SignalProcessingandCommunications LTESystemToolbox
DownlinkWaveformGenerationandAnalysis

ByMathWorks
Explore:
LTESystemToolbox

CopyandruninyourMATLAB:

editRSMeasurementsExample

Viewin:Documentation

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection
IntheLTEsystem,aUEmustdetectandmonitorthepresenceofmultiplecellsandperformcellreselectiontoensurethat
itis"camped"onthemostsuitablecell.AUE"camped"onaparticularcellwillmonitortheSystemInformationandPaging
ofthatcell,butitmustcontinuetomonitorthequalityandstrengthofothercellstodetermineifcellreselectionisrequired.
Inthisexample,thecellreselectiontestenvironmentdescribedinTS36.133AnnexA.4.2.2.1[1]isconfigured.Cell
searchisthenperformedtodeterminethedetectedcells.ReferenceSignal(RS)measurementsaremade:
ReferenceSignalReceivedPower(RSRP)
ReceivedSignalStrengthIndicator(RSSI)
ReferenceSignalReceivedQuality(RSRQ)
FinallytheRSRPisusedasthecriterionforcellreselection.

Contents
Introduction
SignalPowerSetup
NoisePowerSetup
Cell1Configuration
Cell2Configuration
CellSearchConfiguration
SimulationLoopforTestTimePeriods
SimulationResults
Appendix
SelectedBibliography

Introduction
ThepurposeofthetestinTS36.133AnnexA.4.2.2.1[1]istoverifythattherequirementsforTDDtoTDDintra
frequencycellreselectionaremet.ThetestenvironmentconsistsofasingleTDDcarrier,asingleUEandtwocells(Cell1
andCell2)asshowninthediagrambelow:
https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

1/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

ThetestthendefinesthreesuccessivetimeperiodsT1...T3,duringwhichCell1andCell2havedifferentpowerlevels.In
eachofthetimeperiods,theUEmustselectthecorrectcellbasedonthecellreselectioncriteriadefinedinTS36.304
Section5.2[2].ThosecriteriainvolvethemeasuredRSRPandRSRQ,minimumrequiredRSRPandRSRQlevels,and
variousoffsets.Inthisexample,asimplifiedreselectionprocedureisused,wherethecellwiththehighestRSRPis
selected.
ThepowerlevelsofeachcellandtheexpectedbehavioroftheUEineachtimeperiodareasfollows:
IntimeperiodT1,onlyCell1isactiveandCell2ispoweredoff.TheUEshouldselectCell1:

IntimeperiodT2,Cell2ispoweredonandthepowerofCell1isdecreased.TheUEshouldselectCell2:

https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

2/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

IntimeperiodT3,thepowerofCell2isdecreasedandthepowerofCell1isincreased.TheUEshouldselectCell1:

ThisexamplewillshowhowtousetheLTESystemToolboxtoconfigurethetestenvironmentinTS36.133Annex
A.4.2.2.1[1],performcellsearchtodetectthecellswhicharepresent,andfinallymakeRSRPmeasurementsinorderto
performcellreselection.

SignalPowerSetup
Thesignalpowers(indB)forbothcellsineachtimeperiodaresetupaccordingtoTS36.133TableA.4.2.2.12[1].The
signalpowersarevectors,whereeachelementgivesthesignalpowerforeachofthethreetimeperiodsofthetest.
SINRdB1=[161316];%Es/NocforCell1
SINRdB2=[Inf1613];%Es/NocforCell2

NoisePowerSetup
Thenoisepower(indBm)issetupaccordingtoTS36.133TableA.4.2.2.12[1].Thelinearnoisepoweristhen
calculatedandwillbeusedlatertoconfiguretheAWGNaddedinthetest.
NocdBm=98;%dBm/15kHzaveragepowerspectraldensity
NocdBW=NocdBm30;%NocindBW/15kHz
Noc=10^(NocdBW/10);%linearNoc

Cell1Configuration
https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

3/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

ThefunctionlteRMCDL,whichcreatesaReferenceMeasurementChannel(RMC)configuration,isusedtocreatea
completeeNodeBconfigurationforCell1.TheRMCusedisRMCR.7,whichhastherequiredbandwidthof10MHzas
specifiedinTS36.133TableA.4.2.2.11[1].TheTDDuplinkdownlinkconfigurationandspecialsubframeconfiguration
forthetestarealsospecifiedinthattable.OrthogonalChannelNoiseGeneration(OCNG)isenabledandanarbitrarily
chosencellidentityisset.
cell1=lteRMCDL('R.7','TDD');
cell1.TDDConfig=1;
cell1.SSC=6;
cell1.OCNGPDCCHEnable='On';
cell1.OCNGPDSCHEnable='On';
cell1.NCellID=101;

Cell2Configuration
TheconfigurationofCell2isidenticaltothatofCell1exceptadifferentcellidentityisused.
cell2=cell1;
cell2.NCellID=313;

CellSearchConfiguration
Astructuresearchalgiscreated,whichwillbeusedtoconfiguretheoperationofthelteCellSearchfunctionusedto
detectcells.Whendetectingmultiplecells,thisfunctionranksthecellsaccordingtothepeakmagnitudeofthecorrelations
usedtodetectPSSandSSS,ratherthanRSRP.ThereforeMaxCellCount,thenumberofcellstodetect,issetto3as
thestrongesttwocellsintermsofRSRP(expectedtobeCell1andCell2)arenotnecessarilythestrongesttwocells
detectedbylteCellSearch.TheSSSdetectionmethodissetto'PostFFT',whereSSSdetectionisperformedinthe
frequencydomain,withtheOFDMdemodulationsynchronizedusingthetimingestimatefromPSSdetection.
searchalg.MaxCellCount=3;
searchalg.SSSDetection='PostFFT';

SimulationLoopforTestTimePeriods
ThesimulationisruninaloopforthethreetimeperiodsT1...T3definedinthetest.Theprocessingstepsforeachtime
periodareasfollows:
Cell1istransmittedatthespecifiedpowerlevelforthetimeperiod
Cell2istransmittedatthespecifiedpowerlevelforthetimeperiod,andthetimingoffsetbetweencellsspecifiedinTS
36.133TableA.4.2.2.11[1]isapplied
AnAWGNwaveformiscreatedatthespecifiedpowerlevelforthetest,andtheCell1,Cell2andAWGNwaveforms
areaddedtogethertomodelthereceivedwaveformattheUE
Cellsearchisperformedonthereceivedwaveform
Foreachdetectedcell,thereceivedwaveformissynchronized,OFDMdemodulatedandtheRSRPismeasured
(usingthefunctionhRSMeasurements)andthedetectedcellidentitiesarelistedinorderofdecreasingRSRP
Theselectedcell(Cell1orCell2)isdeterminedbyselectingthecellidentitywhichhasthehighestmeasuredRSRP
AnumberofvaluesarerecordedattheMATLABCommandWindowforeachtimeperiod:
ForCell1andCell2:thecellidentity,SINR( / ),SNR( /
waveforms)

)andidealRSRP(measuredfromthetransmitted

Foreachdetectedcellatthereceiver:thecellidentityandthemeasuredRSRP(measuredfromthereceived
waveform)
Theselectedcell(anditscellidentity)
https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

4/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

Notethatanumberofotherphysicallayerparameterssuchasthecyclicprefixlengthandduplexmodeareassumedto
beknownandareassumedtobeequalforeacheNodeB.SeetheCellSearch,MIBandSIB1Recoveryexamplefor
moreinformationondetectingtheseparameters.

https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

5/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

nTimePeriods=3;
txRSRPs=inf(nTimePeriods,2);
rxRSRPs=inf(nTimePeriods,searchalg.MaxCellCount);
detectedCells=zeros(nTimePeriods,1);
rng('default');
separator=repmat('',1,44);
%Foreachtimeperiod:
forT=1:nTimePeriods
fprintf('\n%s\nTimeperiodT%d\n%s\n\n',separator,T,separator);
fprintf('tx:Cell1Cell2\n');
fprintf('NCellID:%7d%7d\n',cell1.NCellID,cell2.NCellID);
%Cell1transmission.
SINR1=10^(SINRdB1(min(T,end))/10);%linearEs/Noc
Es1=SINR1*Noc;%linearEsperRE
[txcell1,~,info]=lteRMCDLTool(cell1,randi([01],1000,1));
txcell1=txcell1*sqrt(Es1);
rxwaveform=txcell1;
%Cell2transmission.
SINR2=10^(SINRdB2(min(T,end))/10);%linearEs/Noc
Es2=SINR2*Noc;%linearEsperRE
txcell2=lteRMCDLTool(cell2,randi([01],1000,1));
txcell2=txcell2*sqrt(Es2);
delta_t=round(info.SamplingRate*3e6);%Timeoffsetbetweencells
rxwaveform=rxwaveform+circshift(txcell2,delta_t);
%Displayidealsignaltonoise/interferenceratiosbasedontest
%parameters.
EsToIot1=10*log10(Es1)10*log10(Es2+Noc);
EsToNoc1=10*log10(Es1)10*log10(Noc);
EsToIot2=10*log10(Es2)10*log10(Es1+Noc);
EsToNoc2=10*log10(Es2)10*log10(Noc);
fprintf('Es/Iot:%7.2fdB%7.2fdB\n',EsToIot1,EsToIot2);
fprintf('Es/Noc:%7.2fdB%7.2fdB\n',EsToNoc1,EsToNoc2);
%PerformReferenceSignal(RS)measurementsonthetransmitted
%signals.
rxgridcell1=lteOFDMDemodulate(cell1,txcell1);
rsmeas1=hRSMeasurements(cell1,rxgridcell1);
txRSRPs(T,1)=rsmeas1.RSRPdBm;
rxgridcell2=lteOFDMDemodulate(cell2,txcell2);
rsmeas2=hRSMeasurements(cell2,rxgridcell2);
txRSRPs(T,2)=rsmeas2.RSRPdBm;
fprintf('RSRP:%7.2fdBm%7.2fdBm\n',txRSRPs(T,1),txRSRPs(T,2));
%Addnoise.
No=sqrt(Noc/(2*double(info.Nfft)));
noise=No*complex(randn(size(rxwaveform)),randn(size(rxwaveform)));
rxwaveform=rxwaveform+noise;
%Cellsearch.
%NDLRBisonlyrequiredsothatlteCellSearchcaninferthesampling
%rateof'rxwavefom'
enb.NDLRB=cell1.NDLRB;
%assumedparameters
enb.DuplexMode=cell1.DuplexMode;
https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

6/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

enb.CyclicPrefix=cell1.CyclicPrefix;
%performcellsearch
[cellIDs,offsets]=lteCellSearch(enb,rxwaveform,searchalg);
%ComputeRSRPsforeachdetectedcell.
%TheTDDuplinkdownlinkconfigurationandspecialsubframe
%configurationareassumedtobeknown.TheassumptionofCellRefP=1
%heremeansthattheRSmeasurementswillonlybecalculatedfor
%cellspecificreferencesignalport0.NSubframeissettozero
%becausethetimingoffsetsreturnedbylteCellSearcharerelativeto
%thestartofaframe.
enb.TDDConfig=cell1.TDDConfig;
enb.SSC=cell1.SSC;
enb.CellRefP=1;
enb.NSubframe=0;
nDetected=length(cellIDs);
forn=1:nDetected
enb.NCellID=cellIDs(n);
rxgrid=lteOFDMDemodulate(enb,rxwaveform(1+offsets(n):end,:));
rsmeas=hRSMeasurements(enb,rxgrid);
rxRSRPs(T,n)=rsmeas.RSRPdBm;
end
[~,idx]=sort(rxRSRPs(T,1:nDetected),'descend');
fprintf('\nrx:\n');
forn=1:nDetected
fprintf('NCellID:%3dRSRP:%7.2fdBm\n',cellIDs(idx(n)),rxRSRPs(T,idx(n)));
end
%SelectthecellwiththehighestRSRP.
enb.NCellID=cellIDs(idx(1));
detectedCells(T)=find(enb.NCellID==[cell1.NCellIDcell2.NCellID]);
fprintf('\nSelected:Cell%d(NCellID=%d)\n',detectedCells(T),enb.NCellID);
end

https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

7/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

TimeperiodT1

tx:Cell1Cell2
NCellID:101313
Es/Iot:16.00dBInfdB
Es/Noc:16.00dBInfdB
RSRP:82.00dBmInfdBm
rx:
NCellID:101RSRP:82.00dBm
NCellID:278RSRP:108.41dBm
NCellID:437RSRP:109.49dBm
Selected:Cell1(NCellID=101)

TimeperiodT2

tx:Cell1Cell2
NCellID:101313
Es/Iot:3.11dB2.79dB
Es/Noc:13.00dB16.00dB
RSRP:85.00dBm82.00dBm
rx:
NCellID:313RSRP:82.03dBm
NCellID:101RSRP:84.93dBm
NCellID:325RSRP:108.91dBm
Selected:Cell2(NCellID=313)

TimeperiodT3

tx:Cell1Cell2
NCellID:101313
Es/Iot:2.79dB3.11dB
Es/Noc:16.00dB13.00dB
RSRP:82.00dBm85.00dBm
rx:
NCellID:101RSRP:81.80dBm
NCellID:313RSRP:84.87dBm
NCellID:437RSRP:108.33dBm
Selected:Cell1(NCellID=101)

SimulationResults
Finally,theresultsobtainedthroughsimulationareplotted.Thefigureproducedbelowillustratesthethreetimeperiods,
showingforeachtimeperiod:
TheidealRSRPs(measuredatthetransmitter)forCell1andCell2
ThemeasuredRSRPs(measuredatthereceiver)foreachdetectedcell
Theselectedcell(Cell1orCell2)basedonthecellidentityofthecellwhichhasthehighestmeasuredRSRP

https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

8/9

1/9/2017

ReferenceSignalMeasurements(RSRP,RSSI,RSRQ)forCellReselection

hRSMeasurementsExamplePlot(txRSRPs,rxRSRPs,detectedCells);

ItcanbeseenthatthemeasuredRSRPsareclosetotheexpectedidealvalues,andthatineachtimeperiodtheUE
selectstheexpectedcellasdescribedintheintroduction.
NotethatthereareactuallyninemeasuredRSRPpoints(MaxCellCount=3foreachofthethreetimeperiods),butthe
plotaxesareadjustedtofocusontheRSRPregionofinterest(around85dBmto82dBm).TheothermeasuredRSRPs
arearound110dBm,afunctionoftheAWGNnoisepower(NocdBm=98dBm)andthenumberofCellSpecificReference
SignalresourceelementsintegratedduringtheRSmeasurements.

Appendix
Thisexampleusesthefollowinghelperfunctions:
hRSMeasurements.m
hRSMeasurementsExamplePlot.m

SelectedBibliography
1.3GPPTS36.133"Requirementsforsupportofradioresourcemanagement"
2.3GPPTS36.304"UserEquipment(UE)proceduresinidlemode"

RelatedExamples

https://www.mathworks.com/examples/ltesystem/mw/lte_productRSMeasurementsExamplereferencesignalmeasurementsrsrprssirsrqforcellresele

9/9

Vous aimerez peut-être aussi