Radio Environment Map problem

104 views
Skip to first unread message

Yared Zerihun

unread,
Feb 10, 2016, 7:02:34 AM2/10/16
to ns-3-users
Hello dears,

I put the script that produces REM just above Simulator::Run() . I also have a script that will calculate simulation results above the REM code.

here is the script to produce REM,

Ptr<RadioEnvironmentMapHelper> remHelper = CreateObject<RadioEnvironmentMapHelper> ();
   remHelper->SetAttribute ("ChannelPath", StringValue ("/ChannelList/1"));
   remHelper->SetAttribute ("OutputFile", StringValue ("rem.out"));
   remHelper->SetAttribute ("XMin", DoubleValue (-400.0));
   remHelper->SetAttribute ("XMax", DoubleValue (400.0));
   remHelper->SetAttribute ("XRes", UintegerValue (100));
   remHelper->SetAttribute ("YMin", DoubleValue (-300.0));
   remHelper->SetAttribute ("YMax", DoubleValue (300.0));
   remHelper->SetAttribute ("YRes", UintegerValue (75));
   remHelper->SetAttribute ("Z", DoubleValue (0.0));
   remHelper->SetAttribute ("UseDataChannel", BooleanValue (true));
   remHelper->SetAttribute ("RbId", IntegerValue (10));
   remHelper->SetAttribute("StopWhenDone", BooleanValue(true));
   remHelper->Install ();

But the third column of the output file (rem.out) ,which is the SNR value is always zero.

I don't understand why this is the case.

Tommaso Pecorella

unread,
Feb 11, 2016, 6:24:27 PM2/11/16
to ns-3-users
Hi,

are you sure that the 3rd column is the SNR ?
I mean, couldn't be something different like... the z axis position ?

Check the code before having doubts, it's way faster than posting a question and waiting for an answer.

T.

Yared Zerihun

unread,
Feb 11, 2016, 8:35:38 PM2/11/16
to ns-3-users
Hello Tommaso,

I am really sorry. I mean to say the fourth column.

I've searched the forum, and anywhere else, but I couldn't find the solution.

Tommaso Pecorella

unread,
Feb 11, 2016, 8:42:40 PM2/11/16
to ns-3-users
Hi,

well, if the 4th column is zero, then there IS a problem. Check your script against the two in src/lte/examples, probably you missed some bits (these two works).

Have fun,

T.
Message has been deleted

Yared Zerihun

unread,
Feb 12, 2016, 12:36:10 AM2/12/16
to ns-3-users
commenting out the following line of code corrected everything,


remHelper->SetAttribute ("UseDataChannel", BooleanValue (true));

My script couldn't generate REM for a data channel as it is described in the models document about REM.

Further more, I checked how SNR values are calculated, and it turns out that it uses the power of the
reference signal in the calculation, and this value is always zero if I use the above line of code. I think the reference signal is a control
signal that operates only in the physical layer (with no mapping in higher layers unlike other channels), I am not
sure though.


Reply all
Reply to author
Forward
0 new messages