[ns] location of node position using gps
Hello, I am working on a VANET simulations and i need to detect the position and speed of the nodes. I would want to know how the speed and the location of the nodes can be obtained using GPS. Help is urgently needed. -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] location of node position using gps
Hi Here is the code to get the x and y coordinates and also a speed of a moving vehicle. MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); mn->update_position(); // update the position, before using it myx = mn->X(); // current own location myy = mn->Y(); myz = mn->Z(); V = mn->speed(); ///vanetID_ = id of vehicle whose speed and coordinates you would like to receive.// AJMAL KHAN Ph.D Scholar Telecommunication Networks Lab School of Electrical Engineering and Computer Science Kyungpook National University Cell : +82 (10) 7732-3885 From: Manfe To: ns-users@ISI.EDU Sent: Thursday, May 17, 2012 4:52 PM Subject: [ns] location of node position using gps Hello, I am working on a VANET simulations and i need to detect the position and speed of the nodes. I would want to know how the speed and the location of the nodes can be obtained using GPS. Help is urgently needed. -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Fw: location of node position using gps
Hi Here is the code to get the x and y coordinates and also a speed of a moving vehicle. double myx,myy,myz,V MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); mn->update_position(); // update the position, before using it myx = mn->X(); // current own location myy = mn->Y(); myz = mn->Z(); V = mn->speed(); MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); mn->update_position(); // update the position, before using it myx = mn->X(); // current own location myy = mn->Y(); myz = mn->Z(); V = mn->speed(); ///vanetID_ = id of vehicle whose speed and coordinates you would like to receive.// AJMAL KHAN Ph.D Scholar Telecommunication Networks Lab School of Electrical Engineering and Computer Science Kyungpook National University Cell : +82 (10) 7732-3885 From: Manfe To: ns-users@ISI.EDU Sent: Thursday, May 17, 2012 4:52 PM Subject: [ns] location of node position using gps Hello, I am working on a VANET simulations and i need to detect the position and speed of the nodes. I would want to know how the speed and the location of the nodes can be obtained using GPS. Help is urgently needed. -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] IEEE 802.11n simulation model for ns2.
Hi all, i'm trying to implement a module in NS2 for 802.11n. I read that someone had implemented it so I will be very grateful if somebody have some codes about it anche can share the module with me. thank you best regards -- View this message in context: http://old.nabble.com/IEEE-802.11n-simulation-model-for-ns2.-tp21360180p33763688.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] location of node position using gps
Hello Ajmal Thank you for your response! Having imported Mobility traces from SUMO and and now having tcl scripts of simulation i think these codes should be converted to tcl. I am clustering the vehicles based on the position and the speed of the nodes. Thanks Manfe Ajmal Khan wrote: > > > Hi > > Here is the code to get the x and y coordinates and also a speed of a > moving vehicle. > > > > > MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); > mn->update_position(); // update the position, before using it > myx = mn->X(); // current own location > myy = mn->Y(); > myz = mn->Z(); > V = mn->speed(); > > ///vanetID_ = id of vehicle whose speed and coordinates you would like to > receive.// > > > AJMAL KHAN > Ph.D Scholar > Telecommunication Networks Lab > School of Electrical Engineering and Computer Science > Kyungpook National University > Cell : +82 (10) 7732-3885 > > > > > From: Manfe > To: ns-users@ISI.EDU > Sent: Thursday, May 17, 2012 4:52 PM > Subject: [ns] location of node position using gps > > > > Hello, > I am working on a VANET simulations and i need to detect the position and > speed of the nodes. I would want to know how the speed and the location of > the nodes can be obtained using GPS. > > Help is urgently needed. > -- > View this message in context: > http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html > Sent from the ns-users mailing list archive at Nabble.com. > > -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863559.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] location of node position using gps
Hi I am using VanetMobisim for generating mobility traces. How SUMO is different from VanetMobisim? let me know if u have any information. Which codes you want to convert into tcl? AJMAL KHAN Ph.D Scholar Telecommunication Networks Lab School of Electrical Engineering and Computer Science Kyungpook National University Cell : +82 (10) 7732-3885 From: Manfe To: ns-users@ISI.EDU Sent: Thursday, May 17, 2012 8:27 PM Subject: Re: [ns] location of node position using gps Hello Ajmal Thank you for your response! Having imported Mobility traces from SUMO and and now having tcl scripts of simulation i think these codes should be converted to tcl. I am clustering the vehicles based on the position and the speed of the nodes. Thanks Manfe Ajmal Khan wrote: > > > Hi > > Here is the code to get the x and y coordinates and also a speed of a > moving vehicle. > > > > > MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); > mn->update_position(); // update the position, before using it > myx = mn->X(); // current own location > myy = mn->Y(); > myz = mn->Z(); > V = mn->speed(); > > ///vanetID_ = id of vehicle whose speed and coordinates you would like to > receive.// > > > AJMAL KHAN > Ph.D Scholar > Telecommunication Networks Lab > School of Electrical Engineering and Computer Science > Kyungpook National University > Cell : +82 (10) 7732-3885 > > > > > From: Manfe > To: ns-users@ISI.EDU > Sent: Thursday, May 17, 2012 4:52 PM > Subject: [ns] location of node position using gps > > > > Hello, > I am working on a VANET simulations and i need to detect the position and > speed of the nodes. I would want to know how the speed and the location of > the nodes can be obtained using GPS. > > Help is urgently needed. > -- > View this message in context: > http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html > Sent from the ns-users mailing list archive at Nabble.com. > > -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863559.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] location of node position using gps
Hello Ajma, SUMO is a portable, microscopic road traffic simulation platform. In my project Vehicular mobility is moduled using eWorld and imported to SUMO to generate vehicular traces. With MOVE, the vehicular taces are converted to tcl scripts. I am moulding a clustered network based on the speed and location of vehicular nodes using the generated tcl scripts. Ajmal Khan wrote: > > > Hi > > Here is the code to get the x and y coordinates and also a speed of a > moving vehicle. > > > > > MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); > mn->update_position(); // update the position, before using it > myx = mn->X(); // current own location > myy = mn->Y(); > myz = mn->Z(); > V = mn->speed(); > > ///vanetID_ = id of vehicle whose speed and coordinates you would like to > receive.// > > > AJMAL KHAN > Ph.D Scholar > Telecommunication Networks Lab > School of Electrical Engineering and Computer Science > Kyungpook National University > Cell : +82 (10) 7732-3885 > > > > > From: Manfe > To: ns-users@ISI.EDU > Sent: Thursday, May 17, 2012 4:52 PM > Subject: [ns] location of node position using gps > > > > Hello, > I am working on a VANET simulations and i need to detect the position and > speed of the nodes. I would want to know how the speed and the location of > the nodes can be obtained using GPS. > > Help is urgently needed. > -- > View this message in context: > http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html > Sent from the ns-users mailing list archive at Nabble.com. > > -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33863778.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] throughput in gpsr
Hi, I've installed gpsr and want to analyze its performance under different scenarios. However when i add some checks in gpsr.cc, i'm not getting any throughput. It seems that the packet never reaches the sink. I put some checks in sinkRecv(), but the program never enters this function. What am i doing wrong and how can i calculate throughput. I will appreciate a quick reply. Thank you. -- View this message in context: http://old.nabble.com/throughput-in-gpsr-tp33822547p33822547.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] location of node position using gps
Hello Aslinda, Thanks for your contributions. You are perfectly right. All the simulators mentioned are basically the same the difference maybe added fucntionalities, capabilities and implementation platforms but at the end the results are the same;( TCL scripts) thats if it is being integrated in ns2. For clarification i would want to know from you, i am clustering the nodes generated from the TCl scripts, using the speed and location of nodes i however want to obtain these values dynamically in using TCL codes. I think i need to convert the c++ codes provided by Ajmal Manfe wrote: > > Hello Ajma, > SUMO is a portable, microscopic road traffic simulation platform. In my > project Vehicular mobility is moduled using eWorld and imported to SUMO to > generate vehicular traces. With MOVE, the vehicular taces are converted to > tcl scripts. I am moulding a clustered network based on the speed and > location of vehicular nodes using the generated tcl scripts. > > > > > Ajmal Khan wrote: >> >> >> Hi >> >> Here is the code to get the x and y coordinates and also a speed of a >> moving vehicle. >> >> >> >> >> MobileNode *mn = (MobileNode*)Node::get_node_by_address(vanetID_); >> mn->update_position(); // update the position, before using it >> myx = mn->X(); // current own location >> myy = mn->Y(); >> myz = mn->Z(); >> V = mn->speed(); >> >> ///vanetID_ = id of vehicle whose speed and coordinates you would like to >> receive.// >> >> >> AJMAL KHAN >> Ph.D Scholar >> Telecommunication Networks Lab >> School of Electrical Engineering and Computer Science >> Kyungpook National University >> Cell : +82 (10) 7732-3885 >> >> >> >> >> From: Manfe >> To: ns-users@ISI.EDU >> Sent: Thursday, May 17, 2012 4:52 PM >> Subject: [ns] location of node position using gps >> >> >> >> Hello, >> I am working on a VANET simulations and i need to detect the position and >> speed of the nodes. I would want to know how the speed and the location >> of >> the nodes can be obtained using GPS. >> >> Help is urgently needed. >> -- >> View this message in context: >> http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33862588.html >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://old.nabble.com/location-of-node-position-using-gps-tp33862588p33864281.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] FTP agent
what is the default packet size of the ftp agent? what is the size of the file trasnfer being simulated by default? -- View this message in context: http://old.nabble.com/FTP-agent-tp33867249p33867249.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] [NS-ANS] Re: Finding the neighbour nodes of a mobile node
Dear Msrehmani, I am trying to run the code you have proviede in this link, but it gives error: common/node.cc: In member function ‘void Node::addNeighbor(Node*)’: common/node.cc:267:9: error: invalid use of member (did you forget the ‘&’ ?) make: *** [common/node.o] Error 1 Can you please help me in compiling this code? One more thing, If I want to forward packet to all the neighbour nodes in aodv, then how it can be done? Can you give any hint regarding the same? Regards, Ranjana [ns] [NS-ANS] Re: Finding the neighbour nodes of a mobile nodeMubashir Rehmani mshrehmani at gmail.com Tue Sep 20 02:47:56 PDT 2011 * Previous message: [ns] Finding the neighbour nodes of a mobile node * Next message: [ns] [NS-ANS] Re: Finding the neighbour nodes of a mobile node * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi, You can use the following methods to discover neighbors: 1. Use Hello Packets for *neighbor* discovery. 2. Use Communication range for neighbour discovery. 3. Use Nodes Positions for *neighbor* discovery. So, it totally depends upon you, how you discover your neighbours. But i would suggest you to use Hello Packets to discover neighbors. What you have to do is simple: Just start sending hello messages by using hello packets (if you dont know this, please ask) or just search ns2 mailing list by my name and hello packets, InshaAllah you will find the way to enable hello packets. Once each and every node is able to send hello packets then each node that receive the hello packet of other node is supposed to be the neighbor of other node. In this way, you would find the number of neighbors of each node. In simple, a node that receives the hello packet of other node is the neighbor of that node. So, there is a function of recvHello() in aodv.cc and you have to write a line of code in recvhello() that each node when receive this packet should make a entry in node.cc (inneighbor table) that i am neighbor node of this node. Node.cc Add this code void Node::addNeighbor(Node * neighbor) { int flag=0; neighbor_list_node* my_neighbor_list; my_neighbor_list=neighbor_list_; //cout <<"M"< nodeidnodeid()) { flag = 1; break; } else { my_neighbor_list=my_neighbor_list->next; } } //cout<<"MMM " nodeid(); nlistItem->next = neighbor_list_; neighbor_list_=nlistItem; } } AODV.cc == Add these lines in AODV::recvHello(Packet *p) {} function Node* sender_node = Node::get_node_by_address(rp->rp_dst); Node* receiver_node = Node::get_node_by_address(index); sender_node->addNeighbor(receiver_node); receiver_node->addNeighbor(sender_node); == Now let me expalin you what i have done. In recvHello funciton whenever a node receives a Hello packet it create two objects of node, sending node and receiving node and then add them in the neighborl list. Secondly in void Node::addNeighbor(Node * neighbor) {}, first a doulbe entry is checked and if found, it won't add the neighbor, else it add the neighbor. After that you can easily get access to any node's neighbor list by creating its object and calling its neighbor list. Node* m_node = Node::get_node_by_address( this->addr()); neighbor_list_node* my_mobile_neighbor_list; my_mobile_neighbor_list = m_node->neighbor_list_; while(my_mobile_neighbor_list) { cout<<"## Mubashir Neighbor ID :" >Hello Sir..!! >>Can you please help in writing a code for finding all the neighbor nodes of >a mobile node in a wireless scenario. >>Thanks & Regards, >Divya. > -- Mubashir Husain Rehmani * Previous message: [ns] Finding the neighbour nodes of a mobile node * Next message: [ns] [NS-ANS] Re: Finding the neighbour nodes of a mobile node * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Ns-users mailing list