Mobile RSU source code

77 views
Skip to first unread message

Farhan Javed

unread,
Jan 3, 2022, 4:39:32 PM1/3/22
to Network Simulator 2 (NS2)
Does anyone have the source code for mobile RSU?

knudfl

unread,
Jan 3, 2022, 5:52:35 PM1/3/22
to Network Simulator 2 (NS2)
Please read posts of  "Jan 1, 2022"  here https://groups.google.com/g/ns-users/c/Awwp5OjBFk4

...... And if you want the RSU to move, then please add a movement pattern / movement text lines for the RSU node.

Farhan Javed

unread,
Jan 10, 2022, 8:15:48 AM1/10/22
to Network Simulator 2 (NS2)
Sir, 
The codes that you shared are giving these errors, kindly let me know how to avoid them. I am mentioning them in the image attached here.
The tcl file "test_vanetRSU.tcl" as well as "vanet-RSU.tcl", both are giving these errorsWhatsApp Image 2022-01-10 at 1.58.03 PM.jpeg

knudfl

unread,
Jan 10, 2022, 11:27:28 AM1/10/22
to Network Simulator 2 (NS2)
Hi.
I guess you know how to copy-paste a text.
Or use
$ ns test__vanetRSU.tcl > text1.txt
$ ns vanet-RSU.tcl > text2.txt        to get text files.

Files ref. https://www.projectguideline.com/a-simple-vanet-protocol-simulation-using-tcl-level-functions-of-ns-2/ are not supposed to work with a default 'ns'. The examples are included for completeness. Examples are listed as "May work or may not work" : "I don't remember what works, and what doesn't" → https://groups.google.com/g/ns-users/c/Awwp5OjBFk4
Reply all
Reply to author
Forward
0 new messages