You can run multiple application at the same time in tossim using this
espedient

 

if(TOS_LOCAL_ADDRESS == 0){ //one server most client

            do this;

}else{

            do this;

}

 

Or

 //more server or client

If(TOS_LOCAL_ADDRESS < 20){

            Do this;

}else If(TOS_LOCAL_ADDRESS > 20 && TOS_LOCAL_ADDRESS < 40){

            Do this;

}

………..

………

 

Or

 

If(TOS_LOCAL_ADDRESS%2 == 0){

            DO THIS;

}else{

            Do this;

}

Every node has a ID that is stored in TOS_LOCAL_ADDRESS

 

  _____  

Da: Sarfraz Nawaz [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 2 maggio 2007 8.04
A: Boushra MAALA
Cc: [email protected]
Oggetto: Re: [Tinyos-help] Fwd: using different apps with different nodes
atthe same time in TOSSIM.

 

No!

On 5/2/07, Boushra MAALA <[EMAIL PROTECTED]> wrote:



Note: forwarded message attached.

  _____  

Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
<http://us.rd.yahoo.com/evt=48245/*http:/autos.yahoo.com/new_cars.html;_ylc=
X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->  



---------- Forwarded message ----------
From: Boushra MAALA <[EMAIL PROTECTED]>
To: [email protected] 
Date: Fri, 27 Apr 2007 08:39:51 -0700 (PDT)
Subject: using different apps with different nodes at the same time in
TOSSIM.
hi all,
can we use different apps with different nodes at the same time in TOSSIM 1?

thank you



  _____  

Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
<http://us.rd.yahoo.com/evt=48245/*http:/autos.yahoo.com/new_cars.html;_ylc=
X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->  


_______________________________________________
Tinyos-help mailing list
[email protected] 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help 

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to