I did use only two pairs. Attached please find the file that I ran
just before sending the first message. I did not have it available when I
wrote the e-mail this afternoon.
Are there any other suggestions about what I can do?
Thanks,
Tal
>
> On Jul 13, 2007, at 2:12 PM, Tal Rusak wrote:
>
>> Thank you for the response. Here is the file I was running. It is
>> directly from the tutorial and does not use the meyer-heavy trace, only
300 noise samples. Furthermore, I reduced this to 100 samples (the
minimum allowed, I believe), and I was still experiencing these issues.
>
> You're simulating 1000 nodes. Try simulating fewer?
>
> Phil
>
#include <tossim.h>
#include <stdlib.h>
int main() {
Tossim* t = new Tossim(NULL);
Radio* r = t->radio();
//Add a pair of motes (0 and 1)
for (int i = 0; i < 2; i++) {
Mote* m = t->getNode(i);
m->bootAtTime(5000003 * i + 1);
for (int j = 0; j < 2; j++) {
if (i != j) {
r->add(i, j, -50.0);
}
}
//Use the minimum number of traces possible
for (int j = 0; i < 100; j++) {
m->addNoiseTraceReading((char)(drand48() * 20) - 70);
}
m->createNoiseModel();
}
for (int i = 0; i < 1000000; i++) {
t->runNextEvent();
}
}_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help