LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem when execute file tcl (https://www.linuxquestions.org/questions/linux-newbie-8/problem-when-execute-file-tcl-4175523886/)

nassou19891 10-31-2014 06:18 AM

Problem when execute file tcl
 
Hi

I want to simulate this file.tcl but this erreur was showen

bss_id lookup failed

(_o66 cmd line 1)
invoked from within
"_o66 cmd bss_id 0"
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 "_o66" line 2)
(SplitObject unknown line 2)
invoked from within
"$PAMac bss_id $AP_ADDR_0"
(file "dccp-wifi-lte line" 79


Can any one help me to solve this problem ??

knudfl 10-31-2014 07:09 AM

Quote:

Can any one help me to solve this problem ?
Maybe. If you attach the tcl file as name.tcl.txt .

The errors in post #1 are generic.
Any faulty file.tcl can cause similar errors.


Attachments : The `paper clip button' in the 'Advanced Editor'.


-

nassou19891 10-31-2014 07:50 AM

1 Attachment(s)
[QUOTE][Maybe. If you attach the tcl file as name.tcl.txt ./QUOTE]

I execute the file with the extension .tcl not .tcl.txt

this is the file
Attachment 16794

note i execute with the extension .tcl in the simulator

knudfl 10-31-2014 09:44 AM

← #3 .

Reason for suffix .txt :
Text files must have suffix .txt to be attached.

Reason for suffix .tcl :
It's nice when the file can be recognized in your post (#3) as a tcl file.

I.e. the correct naming for the attachment is " dccp-wifi-lte.tcl.txt ".
(And you can also easily run the file with $ ns dccp-wifi-lte.tcl.txt
... A file.tcl isn't executed, but is interpreted by 'ns'.


Your error "bss_id lookup failed" : Where is "bss_id" defined ?


-

nassou19891 11-01-2014 05:46 AM

Here where i defined bss_id
#création de la station de base
set PA [$ns node 2.0.0]
$PA random-motion 0
#provide some co-ord (fixed) to base station node
$PA set X_ 250.0
$PA set Y_ 250.0
$PA set Z_ 0.0
set PAMac [$PA getMac 0]
set AP_ADDR_0 [$PAMac id]
$PAMac bss_id $AP_ADDR_0
$PAMac set-channel 1
$PAMac enable-beacon
[$PA set netif_(0)] setTechno 802.11

It's a tcl code for creation a BS
actualy i copied this one from another file but it have also the same problem that is why i ask what the problem is ?


All times are GMT -5. The time now is 09:06 AM.