LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-14-2012, 06:28 PM   #256
meprogrammer
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
@ prat810


plzzz I've the same problem, can you help me how I can add Resource/Energy !!!!!

Last edited by meprogrammer; 04-15-2012 at 05:34 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-16-2012, 10:14 AM   #257
prajwal.parihar
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
hey can u please give me your code on leach protocol..my id is prajwal.parihar@gmail.com.
 
Old 04-16-2012, 01:44 PM   #258
meprogrammer
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Hi all,

please I succefully integrate leach protocol in ns-2.34 and now i want to have a simulation running in nam please can you help me with this,

thank you.
 
Old 04-19-2012, 08:03 AM   #259
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
hello!
has anyone tried modifying leach protocol to send data from base station! can neone give me hint to change the destination address in leach protocol. it would be great help!
 
Old 04-25-2012, 07:40 PM   #260
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
leach help

hi all!
i have successfully installed leach patch.. getting leach.tr with all results
but I have a question whenever I exec ute ./test command
it shows

[root@wesman ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...

I am unable to understand this.
the distCST_-89.8 is changed in leach.tr
and num_nodes is 3 why is this so?
plz help asap.
regards
 
Old 04-26-2012, 12:03 AM   #261
Rashmi17
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Hey Prat810,
Can you let me know, what did you do exactly?
I am having the same issue.
Thanks!
 
Old 04-26-2012, 06:01 AM   #262
Rashmi17
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Hi all,
Can someone point me out what's wrong below. Also it would be great if somebody steps in and combine all the steps to run leach in ns-2.34 as many people find it difficult to search thorugh all posts.
CODE :
couldn't read file "ns-234-leach/tcl/lib/ns-mobilenode.tcl": no such file or directory
while executing
"source.orig ns-234-leach/tcl/lib/ns-mobilenode.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source ns-234-leach/tcl/lib/ns-mobilenode.tcl"
(file "wireless-demo-csci694.tcl" line 184)

Thanks!
 
Old 04-26-2012, 08:01 AM   #263
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268
Hi engr,

This is because you are using the ./test command
what you need to use is the ./leach_test command (if you are trying to run LEACH i.e.)

Quote:
Originally Posted by engr View Post
hi all!
i have successfully installed leach patch.. getting leach.tr with all results
but I have a question whenever I exec ute ./test command
it shows

[root@wesman ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...

I am unable to understand this.
the distCST_-89.8 is changed in leach.tr
and num_nodes is 3 why is this so?
plz help asap.
regards
 
Old 04-26-2012, 08:03 AM   #264
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268
@ Shailu (#259)
You can change the BS address in the leach_test file.
You can send data from the BS. Refer to the leach-c files

Quote:
Originally Posted by shailu View Post
hello!
has anyone tried modifying leach protocol to send data from base station! can neone give me hint to change the destination address in leach protocol. it would be great help!
 
Old 04-26-2012, 03:23 PM   #265
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
hi deepa...
I made some of the changes in wireless.tcl file and then run leach
i got these errors after executing ./test

[root@wesman ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

(_o14 cmd line 1)
invoked from within
"_o14 cmd random-motion 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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"$node_($i) random-motion 0 "
("for" body line 3)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
#$node_($i) topography $w..."
(file "wireless-demo-csci694.tcl" line 166)
please help me
 
Old 04-26-2012, 03:26 PM   #266
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
also i m getting leach.err file with these errors

can't read "env(RCA_LIBRARY)": no such variable
while executing
"source $env(RCA_LIBRARY)/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 9)
invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName].......


please please help me these errors were not there before the changes, even i removed those changes but still they are here
 
Old 04-26-2012, 04:32 PM   #267
engr
Member
 
Registered: Jan 2012
Posts: 30

Rep: Reputation: Disabled
hi deepa....
i removed these errors
can't read"env........


but still getting these errors
when run ./test

[root@wesman ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

(_o14 cmd line 1)
invoked from within
"_o14 cmd random-motion 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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"$node_($i) random-motion 0 "
("for" body line 3)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
#$node_($i) topography $w..."
(file "wireless-demo-csci694.tcl" line 166)
 
Old 04-26-2012, 09:48 PM   #268
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
Hi deepa
thank you for replying but i dont understand how do i chanve BS address in leach_test file. there only the position of bs is given so if i want to send datas from bs i think on the receiving side i have to put address of the nodes or at the sender side address of the BS. can u please clarify changing in leach_test means??? it would be great help.
 
Old 04-27-2012, 11:20 AM   #269
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268
@ engr (#267)

Please run ./leach_test and not ./test
 
Old 04-27-2012, 11:31 AM   #270
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 268Reputation: 268Reputation: 268
@ shailu (#268)

yes .. you are right ... in leach_test, you can only change the location. What do you mean by address ?
If you go thru the file ns-leach-c.tcl, you will get an idea of how to write functions to transmit/receive data from the BS
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 12:02 PM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 10:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 01:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 01:21 PM


All times are GMT -5. The time now is 10:33 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration