| Author |
Message |
tibm
Joined: 28 Nov 2007 Posts: 46 Helped: 1 Location: San diego, California
|
12 Sep 2008 23:21 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,
http://209.85.173.104/search?q=cache:http://people.umass.edu/bdonovan/ns.html
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.
|
|
| Back to top |
|
 |
sharma.ravi70
Joined: 05 Mar 2009 Posts: 1
|
05 Mar 2009 13:08 ns2 antenna |
|
|
|
|
can u plz give me that patch,plzzzz!
my mailID:sharma.ravi70(at)gmail.com
|
|
| Back to top |
|
 |
Google AdSense

|
05 Mar 2009 13:08 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
kazim
Joined: 26 May 2006 Posts: 27 Helped: 3 Location: PAKISTAN, NOWSHERA
|
11 Mar 2009 14:37 ns2 directional antenna |
|
|
|
|
ATTACH IS THE PATCH FOR NS-2.33 FOR DIRECTIONAL ANTENNA SUPPORT
Assuming $NS2 points to the directory where you have the ns-2.33 sources, and that you’re using the ns-allinone-2.33 release, here’s what you have to do:
cd $NS2
patch -p1 < dir-antenna.patch
patch -p1 < multi-if.patch
./configure --with-otcl=../otcl-1.13 --with-tclcl=../tclcl-1.19
make
export NS_ANTENNA_FILE=$NS2/mobile/antenna.txt
|
|
| Back to top |
|
 |
fizieee
Joined: 30 Jun 2009 Posts: 2 Location: uk
|
30 Jun 2009 18:43 ns2 extension |
|
|
|
|
hi,
thanks so much for sharing this.
do you also have a sample TCL script on how to use the directional antenna & multi-interface module? or a readme me will do as well
hope its not too much trouble
rgds,
fizi
|
|
| Back to top |
|
 |
ka167
Joined: 07 May 2009 Posts: 1
|
24 Sep 2009 17:57 Re: ns2 directional antenna |
|
|
|
|
hello dear
could you povide a sample script ot just simple tcl command for using directional antenna?
regards
kashif
|
|
| Back to top |
|
 |
arunranj
Joined: 04 Nov 2009 Posts: 1 Location: suwon
|
04 Nov 2009 17:04 Re: Ns2 Extension with directional Antennas |
|
|
|
|
Hello
Can you post the .tcl file for directional antenna?
Thanks in advance.
-arun
|
|
| Back to top |
|
 |
DianaLinda
Joined: 19 Nov 2009 Posts: 1
|
19 Nov 2009 17:45 Re: Ns2 Extension with directional Antennas |
|
|
|
|
I need to use directive antennas and do not know which version of ns should I use. Can you give me a patch? and can you tell me how I should install it?
my e-mail: dianyapolo27(at)hotmail.com
Thanks
|
|
| Back to top |
|
 |