How many noise trace readings have you added?
(Verify that they are being added correctly)
HTH,
Paul
On Sat, Jun 14, 2008 at 3:01 AM, <[EMAIL PROTECTED]> wrote:
> Hello every body
>
> I have implented an algorithm on TOSSIM , in which nodes broadcat a
> message every x seconds. It works well.
>
> Now I'm trying to do a very simple algorithm where there 2 nodes, node
> 1 send a message to node 2 and node 2 displays a message when receiving.
>
> But the event senDone is neiver signal (I have put a message to be print),
> I don't understand , i also try BlinkToRadioC (found in the Mote-mote_radio
> communication tutorial) and adding a printing message in send done, nothing
> occurs??
>
> Is there some nuance I don't realize? Here is the cpp code I use to
> run the BlinkToRadioC
> simulation
>
> #include<tossim.h>
> #include<stdlib.h>
> #include<stdio.h>
> #include<unistd.h>
> #include<string.h>
>
> //number of motes
> int nbCapteurs=2;
>
> int main(int argc,char **argv)
> {
> Tossim * t=new Tossim(NULL);
> Radio *r;
> int i,j,k,val;
> t->addChannel("Boot",stdout);
>
> for(i=1;i<=nbCapteurs;i++)
> {
> for(j=i+1;j<=nbCapteurs;j++)
> {
> r->add(i,j,-4);
> r->add(j,i,-4);
> }
> }
>
> for(i=1;i<=nbCapteurs;i++)
> {
> t->getNode(i)->addNoiseTraceReading(-18);
> t->getNode(i)->createNoiseModel();
> t->getNode(i)->bootAtTime(0);
> }
>
> while(nb<4000)
> {
> t->runNextEvent();
> nb++;
> }
>
> return EXIT_SUCCESS;
> }
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help