Thanks for the reply.
I am using TinyOS 2.x. I have changed NESC_NIDO_TOSNODES to 6000. and I can
see the change when ncc is running.
But why do I get the same errors?
Thanks for help.
Sarfraz Nawaz <[EMAIL PROTECTED]> wrote:
On Tinyos-1.x installation, /opt/tinyos-1.x/tools/make/pc.target defines
NESC_NIDO_TOSNODES ?= 1000
which is then passed on to the compiler as
PFLAGS += -pthread -fnesc-nido-tosnodes=$(NESC_NIDO_TOSNODES) -fnesc-simulate
so tossim in tinyos-1.x can simulate 1000 nodes. If you are using tinyos-1.x
you can change it 5000 nodes for your case. I am not sure about tinyos-2.x. I
would recommend looking at .platform and other make files to see if a similar
option is passed on in tinyos-2.x
On Jan 10, 2008 9:03 AM, Chris Yao <[EMAIL PROTECTED]> wrote:
Hi,
I am wondering the largest number of motes TOSSIM can simulate.
I am using XubunTOS. I write a Driver.c simulation program. It works fine
with 4 nodes.
When I use 5000 nodes, I have the following code segment in Driver.c
====
#define Num_of_Nodes 5000
...
for (i = 1; i <= Num_of_Nodes; i ++)
{
t->getNode(i)->addNoiseTraceReading((int)temp_noise);
}
=====
when I use gdb to debug, the above code gives the following error:
====
Program received signal SIGSEGV, Segmentation fault.
0x0804e752 in sim_noise_trace_add (node_id=65535, noiseVal=-98 '\236')
at /opt/tinyos-2.x/tos/lib/tossim/sim_noise.c:93
93 noiseData[node_id].noiseTrace[noiseData[node_id].noiseTraceIndex] =
noiseVal;
===
Can anyone give me some advice?
Thanks,
Chris
---------------------------------
Never miss a thing. Make Yahoo your homepage.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search._______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help