Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set mnode_($i) [$ns node]
}"
(file "wfrp_802_15_4.tcl" line 74)
* Edit line 111 in wfrp_802_15_4.tcl to :
exec nam nam-wfrp-802-15-4.nam &
Run the simulation : $ ns-wfrp wfrp_802_15_4.tcl
.. The simulation looks OK, the files nam-wfrp-802-15-4.nam 10.1 kB,
+ trace-wfrp-802-15-4.tr 6.5 kB are created,
.. the NAM window opens OK, and displays a nice "plot".
The wfrp_802_15_4.tcl while which is in the path "ns-allinone-2-34-imp-protocol-read-only/src/ns-2.34/wfrp/tcl" is slightly different from the same file that is in the path - "ns-allinone-2-34-imp-protocol-read-only/src/ns-2.34/wfrp" .
Last edited by Md Zishan Khan; 11-10-2014 at 01:29 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514
Rep:
← #6 :
Well, text files like wfrp_802_15_4.tcl can easily be read,
or you can do $ diff -Nau wfrp/tcl/wfrp_802_15_4.tcl wfrp/wfrp_802_15_4.tcl
to get the difference. Save a diff text file :
$ diff -Nau wfrp/tcl/wfrp_802_15_4.tcl wfrp/wfrp_802_15_4.tcl >> file.diff
Hints : One file is 3 nodes, the other 100 nodes.
One is edited for nam files → See post #2, "edit line 111".
The other one will probably not produce any <out>.nam .
* Please read the files.
In the perfect situation, you would have two files with different names,
.. like wfrp_802_15_4-3node.tcl, wfrp_802_15_4-100node.tcl .
Many of the ns2 protocols you can find on the Internet,
are made by young students, using ns2 etc. for the first time.
Not always "the perfect code".
I have a personal question . I am new for NS and I want to learn that how to create a new protocol, and what are the major facts that I have to study for it.
while configuring CBRP protocol in my ns-2.35 even after i got the .o files , i am getting these errors when i run the tcl file.
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
invoked from within
"set n(0) [$ns node]"
(file "20nodes.tcl" line 64)
please help me what changes i have to do.
Last edited by murali558; 02-11-2016 at 02:27 AM.
Reason: have to add email notifications
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.