Skip to main content


SUMO Emission of Vehicles | VANETs

Recent posts

NS2 Installation in Ubuntu 22.04

NS-2.35 installation in Ubuntu 22.04 This post shows how to install ns-2.35 in Ubuntu 22.04 Operating System Since ns-2.35 is too old, it needs the following packages gcc-4.8 g++-4.8 gawk and some more libraries Follow the video for more instructions So, here are the steps to install this software: To download and extract the ns2 software Download the software from the following link Extract it to home folder and in my case its /home/pradeepkumar (I recommend to install it under your home folder) $ tar zxvf ns-allinone-2.35.tar.gz or Right click over the file and click extract here and select the home folder. $ sudo apt update $ sudo apt install build-essential autoconf automake libxmu-dev gawk To install gcc-4.8 and g++-4.8 $ sudo gedit /etc/apt/sources.list make an entry in the above file deb bionic main universe $ sudo apt update Since, it&#

How to write Publisher Subscriber in ROS Noetic | Step by Step instructions

ROS1 Noetic -Publisher and Subscriber Example This post tells about the implementation of a publisher and a subscriber in ROS Noetic.   In this example, we have considered the following: Example 1:  One publisher ( and one Subscriber ( Topic: first_lecture Message: String Message  Example 2: Two publishers ( and and Two subscribers ( and Topic: first_lecture   See the following video for step by step instructions for running this example: The following picture shows the nodes (The picture is taken by running the rqt_graph command) Publisher Subscriber in ROS Noetic How to run in ROS Noetic Prerequsities  1. Ubuntu Basic commands 2. PATH Setting in Ubuntu 3. Basic knowledge of Linux  4. Programming fundamentals To Install ROS1 Noetic in Ubuntu 20.04, you can refer the following video in my channel. ROS is enabled with a catkin make system which perform the easier build operation and cross compilation enablement. Create a workspace to store all

Telnet and FTP in Wired networks using NS2 (Network Simulator 2)

Telnet and FTP for a Wired Networks This post tells about the use of Telnet and FTP in Network Simulator 2 for a wired network. This can be extended to a wireless network as well. The following is the source code for implementing Telnet and FTP application in a Wired network scenario.  The network looks like this: Telnet in NS2 Node 0 to Node 2 is enabled with Telnet Application and Node 1 to Node 3 is enabled with FTP Application.  Save the following file as wired.tcl #=================================== # Simulation parameters setup #=================================== set val(stop) 10.0 ;# time of simulation end #=================================== # Initialization #=================================== #Create a ns simulator set ns [new Simulator] #Open the NS trace file set tracefile [open w] $ns trace-all $tracefile #Open the NAM trace file set namfile [open out.nam w] $ns namtrace-all $namfile #=================================== # Nodes

ROS Installation | Robotic Operating System Installation | Noetic

ROS Noetic Installation Today we are going to see the installation of  Robotic Operating System 1 (ROS) Step 1: What We need: This will mainly work on Ubuntu 20.04 OS  Support till 2025 May. Name of the ROS: Noetic  For the complete installation step by step, you can watch the video given below Step 2: Commands Here are the commands to be used one after the other.  $ sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' $ sudo apt install curl # if you haven't already installed curl $ curl -s | sudo apt-key add - The above commands add the ROS to the aptitude manager and we can now install ROS1 with simple commands $ sudo apt update $ sudo apt install build-essential autoconf automake libxmu-dev $ sudo apt install ros-noetic-desktop-full The above command need 370MB of softwares to be downloaded. So the complete package of ROS in

Constrained Application Protocol (CoAP) using Node JS

Constrained Application Protocol using Node JS Constrained application protocol is shortly called as CoAP and its based on Request Response Model where a browser or application will be requesting for a resource from the server. The resource would be a sensor reading like temperature, humidity, heartbeat, etc.  For complete explanation of the source code and the demo please go through the video: CoAP can be developed with many programming or scripting languages like: Python Node JS Contiki OS In this article, I will be writing or explaining the source code of CoAP using Node JS and this can be demonstrated with a plugin name called Cu Plugin for Chrome Browser. There are many CoAP client available like coap, libcoap, etc in Linux OS and Cu Plugin being a easier and common approach for a client.  You can refer the complete This program first starts the CoAP Server and accept only the JSON format headers, else it will throw the error number '4.06'.  Based on the request URL (re

Ptolemy II Installation in Ubuntu 22.04

Installation of Ptolemy II in Ubuntu 22.04 This post shows the installation instructions of Ptolemy II in Windows 11 and Ubuntu 22.04 Operating System.  Ptolemy II is used to simulate and emulate discrete systems, Synchronous dataflow, dynamic Dataflow, FSM, etc. The software is free and open source and its based on Java.  The complete instructions can be found in this video  Tools needed: 1. JDK is needed (preferably JDK 11, if you have already another version of JDK, no issues you can install JDK 11 as well and you can change the runtime java based on the need. For more details on how to switch the java version in Ubuntu, Check this video ) 2. Ptolemy Software (can be downloaded from here )  Step 1: Getting ready with your Ubuntu 22.04 OS Run the following commands  $ sudo apt update  $ sudo apt install openjdk-11-jdk build-essential autoconf automake libxmu-dev Step 2 - Extract the ptolemy software through the GUI window and set the environmental variable Right click over the file