[ns] Help Needed!!! Leach Segmentation Fault

2011-12-05 Thread Najma Ismat


Hi, i m working on the reliability of WSN and trying simulate leach tcl script 
generated by mannasim script generator tool on ns-2.29 but when i run the 
script i get the segmentation fault error. also the trace file contains no 
captured data.
i'll be grateful if anyone can help me in this regard.
Part of sh output:
Setting up mica 2 mote with Antenna/OmniAntenna and range = 100Setting 
disseminating type to programmedSetting disseminating interval: 20.0warning: no 
class variable RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl 
for info about this warning.* Node 1 = 1 created in (79.513404648524428, 
95.248294712625579, 0.0)NO CLUSTER HEADS HAS BEEN DEFINED! Assuming 20% of 
common nodes.warning: no class variable RCALinkLayer::avoidReordering_  see 
tcl-object.tcl in tclcl for info about this warning.* Node 2 = 2 created in 
(92.129573175743957, 88.770788763077363, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_  see tcl-object.tcl in tclcl for info about this 
warning.* Node 3 = 3 created in (72.376646647405181, 79.215351575620176, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_  see 
tcl-object.tcl in tclcl for info about this warning.* Node 4 = 4 created in 
(63.633464120157747, 65.583406419299266, 0.0)warning: no class variable 
RCALinkLayer::avoidReorderi!
 ng_see tcl-object.tcl in tclcl for info about this warning.* Node 5 = 5 
created in (43.773140312998152, 93.589578985045463, 0.0)warning: no class 
variable RCALinkLayer::avoidReordering_  see tcl-object.tcl in tclcl for info 
about this warning.* Node 6 = 6 created in (6.9983314289703644, 
70.409574299310137, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_  see tcl-object.tcl in tclcl for info about this 
warning.* Node 7 = 7 created in (24.015341430909626, 41.479590507913187, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_  see 
tcl-object.tcl in tclcl for info about this warning.* Node 8 = 8 created in 
(24.35720321925227, 39.953930275493271, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_   see tcl-object.tcl in tclcl for info about 
this warning.* Node 9 = 9 created in (92.600050332304122, 54.858986081024163, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_  see 
tcl-object.tcl in tclcl for info about this warning.* Node 10 = 10!
  created in (58.475501862575996, 14.179648325862198, 0.0)warning: no c
lass variable RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl for 
info about this warning.* Node 11 = 11 created in (7.6266574243207739, 
94.71701578922432, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_ see tcl-object.tcl in tclcl for info about this 
warning.* Node 12 = 12 created in (53.773134971863193, 13.624413317825837, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_see 
tcl-object.tcl in tclcl for info about this warning.* Node 13 = 13 created in 
(82.76011752093217, 60.574610233574454, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_ see tcl-object.tcl in tclcl for info about this 
warning.* Node 14 = 14 created in (76.781852346277731, 60.826276131359059, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_see 
tcl-object.tcl in tclcl for info about this warning.* Node 15 = 15 created in 
(58.171462527556095, 86.349565762257924, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in!
  tclcl for info about this warning.* Node 16 = 16 created in 
(95.654317408639159, 98.611530241841223, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl for info about 
this warning.* Node 17 = 17 created in (37.741978204688984, 34.731551462193742, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_see 
tcl-object.tcl in tclcl for info about this warning.* Node 18 = 18 created in 
(79.286557426343933, 49.005219363144235, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl for info 
about this warning.* Node 19 = 19 created in (79.005452282263647, 
58.994268001520197, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl for info 
about this warning.* Node 20 = 20 created in (21.966236467457488, 
59.812565827654943, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in tclcl for info 
about this warning.* Node 21 = 21 created in (5!
 8.109617725997055, 61.678861436284549, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_  see tcl-object.tcl in tclcl for info about this 
warning.* Node 22 = 22 created in (4.3537809068121858, 1.3019029522789189, 
0.0)warning: no class variable RCALinkLayer::avoidReordering_see 
tcl-object.tcl in tclcl for info about this warning.* Node 23 = 23 created in 
(59.527306193265737, 51.002181671095173, 0.0)warning: no class variable 
RCALinkLayer::avoidReordering_see tcl-object.tcl in tcl

[ns] seek for simulation code about network coverage holes recovery in wsn

2011-12-05 Thread wcpstone

Dear:
   hello, I use mobile nodes to the coverage holes to recover the coverage 
holes, can you give some simulation code about the coverage holes recovery in 
WSNs. thanks 
Thanks for your help!
Best Regards
From:Peter Wu

[ns] tcl private header

2011-12-05 Thread RamiHach


Dear all,
I am trying to debug the NS2.29 code with eclipse. I am able to debug the
c++ code of NS.
but to debug the tcl files I need the tcl-debug program.
I download it and once I do ./configure to compile it I got error saying: 

"checking for Tcl private headers... checking for tclInt.h... no
configure: error: Can't find Tcl private headers"

so I try to do the following command: 
 ./configure --with-tclinclude=/usr/home/username/src/tcl8.4.14/generic

I got this msg: 
"checking for Tcl private headers... configure: error:
/usr/home/username/src/tcl8.4.14/generic directory doesn't contain private
headers"

any help plz??

-- 
View this message in context: 
http://old.nabble.com/tcl-private-header-tp32919024p32919024.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Opening/reading files in ns-2

2011-12-05 Thread Fraser Cadger

Hi Ricardo,

When I say I get an error message what I mean is that when I run the if 
statement I created I get a line on the terminal saying 'Error opening file'. 
At the moment I am not trying to use the file, I am just trying to get it into 
the code (then once I can do this I will try to use it) so everything compiles 
and runs ok. It's only when I created the if statement to see if conf is empty 
or not that my custom error message appears on the screen.

Regards,

Fraser

Fraser Cadger (PhD Student)
Intelligent Systems Research Centre
University of Ulster (Magee)
Northland Road
BT48 7JL

Room MS216, Desk 48

Telephone: +44 (0)28 716 75173
Website: http://isrc.ulster.ac.uk/staff/FCadger/Contact.html


From: Ricardo S [super.ism...@gmail.com]
Sent: 05 December 2011 12:11
To: Fraser Cadger
Subject: Re: [ns] Opening/reading files in ns-2

Hi Fraser, coud you copy-paste the error here?


On Mon, Dec 5, 2011 at 11:42 AM, Fraser Cadger
 wrote:
>
> Hi,
>
> For a while I have been working with ns-2, but have only recently found the 
> need to use file input or output operations. What I want to do is read in a 
> txt file containing certain parameters for use in a protocol I am working on, 
> but for some reason the fopen() command does not work.
>
> I am using the following to check whether it has been read:
>
> FILE *conf = fopen("test.txt", "r");
>if(!conf)
>{
>printf("Error opening file");
>}
>
> The test.txt file is located in the same directory as the code, so it is not 
> in a different directory.
>
> This always returns my error message. When I copy this code and the test.txt 
> file to another directory outside of ns-2 and compile and run it as a 
> stand-alone application it opens the file without any problems.
>
> I am wondering whether anyone else has similar experience with this.
>
> Regards,
>
> Fraser
>
> 
> Fraser Cadger (PhD Student)
> Intelligent Systems Research Centre
> University of Ulster (Magee)
> Northland Road
> BT48 7JL
>
> Room MS216, Desk 48
>
> Telephone: +44 (0)28 716 75173
> Website: http://isrc.ulster.ac.uk/staff/FCadger/Contact.html





[ns] Opening/reading files in ns-2

2011-12-05 Thread Fraser Cadger

Hi,

For a while I have been working with ns-2, but have only recently found the 
need to use file input or output operations. What I want to do is read in a txt 
file containing certain parameters for use in a protocol I am working on, but 
for some reason the fopen() command does not work.

I am using the following to check whether it has been read:

FILE *conf = fopen("test.txt", "r");
if(!conf)
{
printf("Error opening file");
}

The test.txt file is located in the same directory as the code, so it is not in 
a different directory.

This always returns my error message. When I copy this code and the test.txt 
file to another directory outside of ns-2 and compile and run it as a 
stand-alone application it opens the file without any problems.

I am wondering whether anyone else has similar experience with this.

Regards,

Fraser


Fraser Cadger (PhD Student)
Intelligent Systems Research Centre
University of Ulster (Magee)
Northland Road
BT48 7JL

Room MS216, Desk 48

Telephone: +44 (0)28 716 75173
Website: http://isrc.ulster.ac.uk/staff/FCadger/Contact.html


[ns] Segmentation during leach simulation run...

2011-12-05 Thread Najma Ismat


Hi, i m working on the reliability of WSN and trying simulate leach tcl script 
generated by mannasim script generator tool on ns-2.29 but when i run the 
script i get the segmentation fault error. also the trace file contains no 
captured data.
i'll be grateful if anyone can help me in this regard.Regards,

Najma Ismat