psc-ns3
psc-ns3 copied to clipboard
Sidelink losses uplink EARFCN and bandwidth configuration when using ConstantSpectrumPropagation
I was running the example lte-sl-relay-cluster with the pathloss lteHelper->SetAttribute ("PathLossModel", StringValue (ns3::ConstantSpectrumPropagationLossModel"));
lteHelper->SetPathlossModelAttribute ("Loss", DoubleValue (<genericValue>));
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?