1
我在N/S2中通過藍牙協議實現無線技術。這是一個tcl腳本。不過,我收到以下錯誤:tcl中的藍牙實現錯誤
num_nodes is set 4
(_o13 cmd line 1)
invoked from within
"_o13 cmd rt AODV"
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 "_o13" line 2)
(SplitObject unknown line 2)
invoked from within
"$node_($i) rt AODV"
("for" body line 3)
invoked from within
"for {set i 0} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node $i]
$node_($i) rt AODV
$node_($i) on
[$node_($i) set l2cap_] set ifq_limit_ 30
$nod..."
(file "bluetooth.tcl" line 58)
未知的ns2版本,未知文件bluetooth.tcl。未知的「Linux操作系統」。 (ns2正在變老,有些協議不能再與當代「Linux操作系統」一起構建或使用)。你是否向ns2添加了任何「藍牙」? ucbt?您的文件「bluetooth.tcl」可以上傳到「Google文檔」。藍牙示例:請參閱https://stackoverflow.com/questions/33283109/network-simulation-tool-supporting-bluetooth/33287043#33287043 –
看起來問題是在執行'rt'方法,或者至少這是什麼是檢測問題。 _real_問題可能在其他地方。 (並且親愛的'env(DEITY)',看着這個堆棧跟蹤讓我擔心OTcl內部實現的很多問題,這將會是_slow _...) –
我使用的是ubuntu 15.04,ns2版本是2.35+ DFSG-2ubuntu1 – rahul