LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-17-2013, 11:49 AM   #616
mhmdmahdi
Member
 
Registered: Nov 2013
Location: Indonesia
Distribution: Ubuntu 12.04
Posts: 41

Rep: Reputation: 22

Hi deepa, thanks for helping.
just found some article related to create mobile environment on ns, but still confuse how to implement it on leach code.
working on it now

Quote:
Originally Posted by deepa_2111 View Post
Does this answer your question ?
 
Old 12-18-2013, 09:39 AM   #617
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
Okie ... good luck with that.

Quote:
Originally Posted by mhmdmahdi View Post
Hi deepa, thanks for helping.
just found some article related to create mobile environment on ns, but still confuse how to implement it on leach code.
working on it now
 
Old 12-18-2013, 01:40 PM   #618
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Hi

Please after I changes at two files mac\Wireless-Phy.cc and mit\rca\energy.cc to solve energy problem according to deepa

Then it is necessary to do these commands:
make clean :success
make depend : failed with this error "make: *** No rule to make target `tcp/linux/tcp_naivereno.cc', needed by `depend'. Stop."
make :success
sudo make install :success

Please help me why this error after I run make depend command

and also i ignore this error and continue with "make" and "sudo make install" but node Dead very fast please see leach.out
https://drive.google.com/file/d/0BzX...it?usp=sharing

and see sample from TDMA attached files


Please i am in a bad need for your help
Attached Files
File Type: pdf TDMAschedule.120.pdf (59.6 KB, 19 views)

Last edited by eng_mohamed_sc; 12-18-2013 at 04:23 PM.
 
Old 12-18-2013, 02:16 PM   #619
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Also I have this error when I run Leach

I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0
 
Old 12-18-2013, 09:59 PM   #620
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
This is not an error. It is a part of your simulation.
Try to figure out where this is happening. Could be due to a wrongly set spreadfactor, or it could be a normal occurrence.

Quote:
Originally Posted by eng_mohamed_sc View Post
Also I have this error when I run Leach

I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0
 
1 members found this post helpful.
Old 12-19-2013, 08:04 AM   #621
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
what about this post #618

Quote:
Hi

Please after I changes at two files mac\Wireless-Phy.cc and mit\rca\energy.cc to solve energy problem according to deepa

Then it is necessary to do these commands:
make clean :success
make depend : failed with this error "make: *** No rule to make target `tcp/linux/tcp_naivereno.cc', needed by `depend'. Stop."
make :success
sudo make install :success

Please help me why this error after I run make depend command

and also i ignore this error and continue with "make" and "sudo make install" but node Dead very fast please see leach.out
https://drive.google.com/file/d/0BzX...it?usp=sharing

and see sample from TDMA attached files


Please i am in a bad need for your help
 
Old 12-19-2013, 11:27 AM   #622
mhmdmahdi
Member
 
Registered: Nov 2013
Location: Indonesia
Distribution: Ubuntu 12.04
Posts: 41

Rep: Reputation: 22
Quote:
Originally Posted by eng_mohamed_sc View Post
Also I have this error when I run Leach

I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0
did you made some change on simulation?
i got this error when i changed spreading factor, always start to solve the problem from where first time you made a change.
 
Old 12-19-2013, 11:51 AM   #623
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
I cannot help you with the linux error. Probably someone who knows the linux OS can help you.

Quote:
Originally Posted by eng_mohamed_sc View Post
what about this post #618
 
Old 12-19-2013, 01:01 PM   #624
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#618, #621 : Do not use 'make depend' ! Usually never required.

#619 : "I have this error when I run Leach".
What is `run Leach' ? ? './test' ?

#619 : ""I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0 ""
** Which OS are you using now ? a) $ uname -m <Enter> ; b) OS name, please.
** And : Ref. #622: "Did you made some change on simulation ?"

-
 
Old 12-19-2013, 01:17 PM   #625
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Thanks knudfl

i use ubuntu 10.04 and Ns 2.34

i made changes at two files "ns-allinone-2.34\mac\Wireless-Phy.cc" and "ns-allinone-2.34\mit\rca\energy.cc" to solve energy problem according to deepa

about "run leach" i mean Leach_test

this is link for 2 modified files and Leach_test file and condition.txt file which include spreading factor=4 parameter

https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing

Quote:
#618, #621 : Do not use 'make depend' ! Usually never required.

#619 : "I have this error when I run Leach".
What is `run Leach' ? ? './test' ?

#619 : ""I can hear 9 different packets ==> collision.
COLLISION!!!! rx_state_ = 0 ""
** Which OS are you using now ? a) $ uname -m <Enter> ; b) OS name, please.
** And : Ref. #622: "Did you made some change on simulation ?"

Last edited by eng_mohamed_sc; 12-19-2013 at 01:22 PM.
 
Old 12-20-2013, 03:20 AM   #626
mhmdmahdi
Member
 
Registered: Nov 2013
Location: Indonesia
Distribution: Ubuntu 12.04
Posts: 41

Rep: Reputation: 22
Quote:
Originally Posted by eng_mohamed_sc View Post
this is link for 2 modified files and Leach_test file and condition.txt file which include spreading factor=4 parameter
how many nodes do you use on simulation and value of num_clusters?
if you use 100 nodes and num_clusters=5, value for spreading factor should be 8.

Last edited by mhmdmahdi; 12-20-2013 at 03:22 AM.
 
Old 12-20-2013, 06:28 AM   #627
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Thanks mhmdmahdi


Quote:
how many nodes do you use on simulation and value of num_clusters?
if you use 100 nodes and num_clusters=5, value for spreading factor should be 8.
So I should change spreading factor value at condition.txt file only or other file?
after i change this value i must run "make clean" then "make" commands?
i change these value at condition.txt file and run two commands "make clean" then "make" but still have problems at leach.out file "node dead fast"

I notice that if I keep the two files "Wireless-Phy.cc" and "energy.cc" without adding Deepa changes , the nodes dead normally but total energy at the end of leach.out file more than 200j ,but if i keep them without deepa changes ,nodes dead normally but total energy exceed 200j

so may i have problem at these file changes
so i add this file with deepa changes please check and tell me is this true changes "only search at word deepa inside the files to see changes added"
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing
https://drive.google.com/file/d/0BzX...it?usp=sharing





may i make change at wrong file so the file paths are
ns-allinone-2.34\mac\Wireless-Phy.cc"
"ns-allinone-2.34\mit\rca\energy.cc

Last edited by eng_mohamed_sc; 12-23-2013 at 03:51 PM.
 
Old 12-21-2013, 04:25 AM   #628
rajamanjulasetty
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Hello every one. I have ubuntu 12.04, 32 bit verions, having gcc -4.4 and g++-4.4. When i run "bash ./test" file, it runs successfully, but when i check "leach.err" file, i am facing the following error. Any one who has the solution to this problem, can kindly share with me.

invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lin..."
(file "mit/rca/resources/ns-energy-resource.tcl" line 12)
invoked from within
"source.orig mit/rca/resources/ns-energy-resource.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 mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 32)
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]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
Old 12-21-2013, 04:28 PM   #629
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 628, @rajamanjulasetty : Welcome to LQ.
Quote:
invalid command name "Resource/Energy"
That's a failed build. Better use gcc/g++ version 4.1.2 .

Please read posts #555, #566, #584.


-
 
Old 12-22-2013, 01:52 AM   #630
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Please any replies??
 
  


Reply

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



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 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:45 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
Open Source Consulting | Domain Registration