微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > NS2 extension with Directional Antenna

NS2 extension with Directional Antenna

时间:04-08 整理:3721RD 点击:
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...onovan/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 "Sself cmd Sargs" ret"
invoked from within
"if [catch "Sself cmd Sargs" ret] {
set cls [Sself info class]
global errorInfo
set savedInfo SerrorInfo
error "error when calling class Scls: Sargs" S..."
(procedure "_o25" line 2)
(SplitObject unknown line 2)
invoked from within
"Sphy 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 "SclassName create So Sargs" msg"
invoked from within
"if [catch "SclassName create So Sargs" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" Smsg] {
delete So
return ""
}
global errorInfo
error "class S..."
(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!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top