LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2014, 07:18 AM   #1
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Rep: Reputation: Disabled
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 ??

Last edited by nassou19891; 10-31-2014 at 07:23 AM.
 
Old 10-31-2014, 08:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,756

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
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'.


-

Last edited by knudfl; 10-31-2014 at 08:11 AM.
 
Old 10-31-2014, 08:50 AM   #3
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
[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
dccp-wifi-lte.txt

note i execute with the extension .tcl in the simulator
 
Old 10-31-2014, 10:44 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,756

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
← #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 ?


-
 
Old 11-01-2014, 06:46 AM   #5
nassou19891
Member
 
Registered: Sep 2014
Posts: 56

Original Poster
Rep: Reputation: Disabled
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 ?
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The problem of running the tcl script file in the NS2.31+crcn environment syxcod Linux - Software 16 11-24-2015 05:12 PM
[SOLVED] i have a problem cannot execute binary file AngryBeast Linux From Scratch 22 07-09-2011 09:06 AM
execute shell command inside of tcl file khucinx Programming 1 07-05-2004 02:29 PM
Please help!! Problem on running execute file!! mkwong107 Linux - General 11 10-20-2003 06:59 PM
Please help!! Problem on running execute file!! mkwong107 Linux - General 0 10-20-2003 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration