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 Antennas

Status
Not open for further replies.

tibm

Member level 1
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
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.
 

ns2 antenna

can u plz give me that patch,plzzzz!
my mailID:sharma.ravi70@gmail.com
 

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
 
  • Like
Reactions: jeccy

    jeccy

    Points: 2
    Helpful Answer Positive Rating
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
 

Re: ns2 directional antenna

hello dear

could you povide a sample script ot just simple tcl command for using directional antenna?

regards

kashif
 

Hello

Can you post the .tcl file for directional antenna?

Thanks in advance.


-arun
 

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@hotmail.com

Thanks
 

hey
could you please help me understand the patch code !! if you have any description for it
I need to understand the antennas sending angles

thanks
 

Hello..,

I installed the patch for directional antennas and when i run the example “sample_long.tcl” file from TENS, i am getting the following error.
Please help me.

invalid command name “Channel/Channel_802_11″
while executing
“Channel/Channel_802_11 create _o11 ”
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 $val(chan)”
invoked from within
“$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-ant…”
(file “sample_long.tcl” line 51)


Can anyone please post the sample tcl script for directional antennas which gave the output.


thanks in advance,
Bharathi.
 

Hey,

I have the same problem as Jaya Bharathi.

Could anyone solved the problem?

Thank you
Vix
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top