Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

NS2 extension with Directional Antenna

Status
Not open for further replies.

tibm

Member level 1
Joined
Nov 28, 2007
Messages
37
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
San diego, California
Activity points
1,505
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.
 

Hey, can u please send me the code.. thanks!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top