LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2014, 06:59 AM   #1
kien2106
LQ Newbie
 
Registered: Apr 2014
Posts: 6

Rep: Reputation: Disabled
Error when use command setdest to make node movement in ns2


Hi every one !

I want to create topology made of 65 sensor node ,one of them (node 66) is movement node.I tried to make this node move by command "$ns at 11 "$n65 setdest 2800 9501 200.373556960010" " but when i run,i showed this error:
Code:
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 777.8
SORTING LISTS ...DONE!
ns: _o1509 setdest 2800 9501 200.373556960010: 
    (_o1509 cmd line 1)
    invoked from within
"_o1509 cmd setdest 2800 9501 200.373556960010"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o1509" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o1509 setdest 2800 9501 200.373556960010"
If any one have experience about this issue ,please tell me how to fix it.My code is in a file attached below
sensor_kalman_Kien_1_0.tcl.txt
 
Old 05-18-2014, 01:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"sensor_kalman_Kien_1_0.tcl" :

Well, you can try editing line 496 to ....
$ns at 11 "$n65 setdest 1900 9501 200.373556960010"

( 2030 will do too, not 2040. ( Don't ask why, I don't know.))

.. Then the file works OK here, with an unpatched 'ns' from ns234 or ns235.

P.S. : $ ns235-mannasim sensor_kalman_Kien_1_0.tcl
.. works too, with $ns at 11 "$n65 setdest 2030 ...........


-

Last edited by knudfl; 05-18-2014 at 01:51 PM.
 
Old 05-18-2014, 11:21 PM   #3
kien2106
LQ Newbie
 
Registered: Apr 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks Mr knudfl, but that is my trouble, i need to move node to location (2800,9501) or any location which have x > 2030(it's a part of my project), but it's not work ,it just work when node move to location which have x< 2030

Last edited by kien2106; 05-18-2014 at 11:22 PM.
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on Tcl when add misbehavior node in aodv ns2 D4SH_SI4 Linux - Networking 5 06-28-2013 01:57 AM
Make command not found in ns2.34 and ns2.29 Aska123 Linux - Software 11 04-09-2013 12:58 PM
[SOLVED] Setdest Command not found in NS2.33 vishalpolara Linux - Newbie 4 01-12-2013 03:50 AM
error in configuring ns2.33 using make command afsha2719 Linux - Software 1 05-04-2012 06:23 AM
how to access setdest function in ns2 naren123.k Programming 1 04-26-2011 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration