Changing physical distance between nodes

37 views
Skip to first unread message

Vera

unread,
Jun 18, 2020, 5:34:27 AM6/18/20
to ns-3-users

Hi,


I'm working on my  of 6LoWPAN protocol operating principles depending on the transmission distance. Now I'm using LrWpanNetDevice.

Now I'm using MobilityHelper but when I change DeltaX and  DeltaY, nothing changes (data transmission time at least).

Here is an extract of my code:

------------------------------------------------------------------------------------------------

  double m_step = 100;
  CommandLine cmd;
  cmd.AddValue ("step", "Size of edge in our grid (meters)", m_step);

...

  MobilityHelper mobility;
  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
  mobility.SetPositionAllocator ("ns3::GridPositionAllocator",
                                 "MinX", DoubleValue (0.0),
                                 "MinY", DoubleValue (0.0),
                                 "DeltaX", DoubleValue (m_step),
                                 "DeltaY", DoubleValue (m_step),
                                 "GridWidth", UintegerValue (30),
                                 "LayoutType", StringValue ("RowFirst"));
  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
  mobility.Install (nodes);

------------------------------------------------------------------------------------------------

I need to change PHYSICAL distance between nodes so I can get some parameters changes.

Is it possible to do in ns-3? I will appreciate your help as soon as possible!


Thanks in advance

Edivaldo

unread,
Jun 18, 2020, 6:14:33 PM6/18/20
to ns-3-users
Hi, Vera.

Maybe you can find something similar here:

Health and Peace

- Edivaldo
Reply all
Reply to author
Forward
0 new messages