Mobility Function for the moving station

117 views
Skip to first unread message

Radheshyam Singh

unread,
Aug 18, 2022, 6:58:27 AM8/18/22
to mininet-wifi-discuss
Hello,
I am trying to make a topology where I can start the moving of the station from one location and stop at some location, again I want to start the mobility from that location and stop it for few seconds at some other location.

 if '-s' not in args:
        net.startMobility(time=0, ac_method='ssf')
        net.mobility(Car1, 'start', time=60, position='1,70,0')
        net.mobility(Car1, 'stop', time=65, position='50,70,0')
 
        net.mobility(Car1, 'start', time=66, position='50,70,0')
        net.mobility(Car1, 'stop', time=75, position='150,70,0')
        net.mobility(Car1, 'start', time=76, position='150,70,0')
        net.mobility(Car1, 'stop', time=80, position='300,70,0')
        net.stopMobility(time=88)

As shown in the above piece of code. But when I am running the code the Car1's location is showing at 150,70,0.  But based on my assumption it should start the mobility from 1,70,0 and stop at 50,70,0 and after 1sec it should start from this location. But mobility started from 150,70,0 and stopped at the last position 300,70,0.

I want some pause in this mobility as shown in the code. Could someone please help me out to make this work? This code is part of the Handover scenario.

Please find the attached images where Car1's location is shown at 150,70,0 but its initial position should be at 1,70,0.

I am waiting for your reply.

BR,
Radhe 
Figure_1.png

Ramon Fontes

unread,
Aug 18, 2022, 7:00:29 AM8/18/22
to Radheshyam Singh, mininet-wifi-discuss

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/fbbcdffd-c697-4102-aee5-a4edf45af1dfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages