LEACH connection pattern file
Why is
set opt(cp) "../mobility/scene/cbr-50-20-4-512" ;# connection pattern file not working after installing LEACH on ns2.34? |
? May be the relative path is broken somewhere in the long chain .. ?
Suggest : Use an absolute path, like this example Code:
set opt(cp) "/home/<name>/ns-allinone-2.34/ns-2.34/tcl/mobility/scene/cbr-50-20-4-512" |
This works! Thanks a lot. But now have.
ns: _o26 send_now 0xffffffff 1 0 16 1084.0 1: wrong # args: should be "_o26 self class proc mac_dst link_dst type msg data_size dist code"
(Application/LEACH send_now line 1) invoked from within "_o26 send_now 0xffffffff 1 0 16 1084.0 1" num_nodes is set 151 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 1737.5 |
Found solution
A weakness in the current clusterhead based algorithm is that it depends on a somewhat uniform sensor field to create the network topology.
http://ns2.blogspot.com/2004/07/prob...script-is.html |
Hi, I have the same problem.
ns: _o1130 send_now 0xffffffff 1 46 16 139.0 1: wrong # args: should be "_o1130 self class proc mac_dst link_dst type msg data_size dist code" (Application/LEACH send_now line 1) invoked from within "_o1130 send_now 0xffffffff 1 46 16 139.0 1" I wonder if your leach has worked or not, if it worked, what did you do to fix it? I have modified my wireless.tcl and leach_test by adding -cp as the URL above said, but it still cannot work. Would someone help? :( |
# 5 .
Guessing : You are running ./test ? Running "./test" : Code:
$ cd ns-2.34/ |
Reply #6
No, I'm running ./leach_test. Actually my original leach_test works well when using wireless.tcl copyed from ns2.27, but I have modified the wireless.tcl for some reason, and I got this error. So I'm wondering if it's the wireless.tcl's problem. My leach_test is as following, please help me check it and if you need to see the wireless.tcl maybe I can send in email. Thanks a lot. :)
Code:
#!/bin/bash |
All times are GMT -5. The time now is 11:23 AM. |