usnistgov / psc-ns3

Public Safety Communication modeling tools based on ns-3
Other
68 stars 37 forks source link

Sidelink losses uplink EARFCN and bandwidth configuration when using ConstantSpectrumPropagation #21

Open ghost opened 3 years ago

ghost commented 3 years ago

image

I was running the example lte-sl-relay-cluster with the pathloss lteHelper->SetAttribute ("PathLossModel", StringValue (ns3::ConstantSpectrumPropagationLossModel"));

lteHelper->SetPathlossModelAttribute ("Loss", DoubleValue ());

tomhenderson commented 3 years ago

Hello, I tried to reproduce this with the latest code in the default psc-4.0 branch. I made this modification:

diff --git a/src/lte/examples/d2d-examples/lte-sl-relay-cluster.cc b/src/lte/examples/d2d-examples/lte-sl-relay-cluster.cc
index 2311c9a..17e5e4f 100644
--- a/src/lte/examples/d2d-examples/lte-sl-relay-cluster.cc
+++ b/src/lte/examples/d2d-examples/lte-sl-relay-cluster.cc
@@ -348,7 +348,8 @@ int main (int argc, char *argv[])
   Config::SetDefault ("ns3::LteSlBasicUeController::ProseHelper", PointerValue (proseHelper));

   //Set pathloss model
-  lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::Hybrid3gppPropagationLossModel"));
+  lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::ConstantSpectrumPropagationLossModel"));
+  lteHelper->SetPathlossModelAttribute ("Loss", DoubleValue ());

   //Enable Sidelink
   lteHelper->SetAttribute ("UseSidelink", BooleanValue (true));

and then I ran:

$ ./waf --run lte-sl-relay-cluster

and I did not see any error. Can you please clarify that you still experience this on the latest code, and if so, provide more hints as to how to reproduce?