directional antenna ns2
I have a small problem in my simulation, I appreciate if you could help me in debugging this. I am working on topology control and power saving in ad-hoc networks using directional antennas. Recently we found a patch for NS2.30 along with a Directional-antenna C++ Module. I installed this version and made the necessary changes made by the author. His web page was removed recently and I found the same in google catche,
**broken link removed**
On patching ns2.30 with MW-node it generated a demo example mw-node-ex.tcl in tcl/ex. I executed it and there were no errors, but after I added the C++ module and tried to execute the same code its showing me the following error.
WirelessPhy: antenna lookup of Antenna/OmniAntenna failed
ns: new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o16 _o21:
(_o25 cmd line 1)
invoked from within
"_o25 cmd antenna Antenna/OmniAntenna"
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 "_o25" line 2)
(SplitObject unknown line 2)
invoked from within
"$phy antenna [WirelessModule set wireless_param_(antenna)]"
(procedure "_o24" line 13)
(BiConnector/NetworkInterface2/FullStack/ init line 13)
invoked from within
"_o24 init 0 _o16 _o21"
(Class create line 1)
invoked from within
"BiConnector/NetworkInterface2/FullStack/Wireless create _o24 0 _o16 _o21"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o16 _o21"
Rest of the demo examples in ns2 are being executed normally. I even tried including his few lines of code that he was taking at the end in the above link. But it to turns out with the same error. Please help me if you know any thing about such sort of errors or any info on how to add a module to ns. I know you are very pre occupied and I am really stuck and I appreciate if you could help.