hi Daniele,
i want to  thank you for your useful explication. I wrote the code and the it 
works as i want.
good luck
boushra

"Munaretto, Daniele" <[EMAIL PROTECTED]> wrote:        v\:* 
{behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* 
{behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}       
st1\:*{behavior:url(#default#ieooui) }           In your code u need to call 
the send function, for ex:
   
  Call Send.send(TOS_BCAST_ADDRESS,sizeof(….),&data);
   
  Where the first field is the mote address which u are sending the packet to 
(this case is broadcast, to replace with 4 if u need to send to node 4), the 
size of all data u want to send and then the pointer to the TOS_msg u are using.
  Just check the tutorial, u will find many examples in this way.
   
  This function works for real nodes as well for TOSSIM 1.x
   
  Hoping to be clearer,
  BR
  Daniele
   
       
  
   
      Daniele Munaretto
  Researcher
   
  DoCoMo Communications Laboratories Europe GmbH
  Landsbergerstraße 312  80687 Munich  Germany
   
  Mobile              :   +49- 162-  2919-218
  Office               :   +49-  89- 56824-218
  Fax                  :   +49-  89- 56824-300
   
  [EMAIL PROTECTED]
  visit us in http://www.docomolab-euro.com 
   
  Managing Directors (Geschäftsführer): 
  Dr. Toru Otsu, Dr. Narumi Umeda, Kazushige Yoshida
  Amtsgericht München, HRB 132967
  
  
  
      
---------------------------------
  
  From: Boushra MAALA [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 25, 2007 10:30 AM
 To: Munaretto, Daniele
 Subject: RE: [Tinyos-help] sending to particular mote ID
  
   
  hi Daniele,
 you said that: just specify the mote ID of the receiver such as one of the 
arguments of send function.
 can you explain  how i do that  if it is possible?
  
 in fact, i try to write code of  that scenario for using it with TOSSIM, i do 
not know if you have information about that, if yes i wait your help.
  
 thank you
 
 "Munaretto, Daniele" <[EMAIL PROTECTED]> wrote:
    When you download the code on motes, u should specify the ID, for ex. make 
micaz install.0 eprb,IP address
  
    And 0 will be the ID of that mote (e.g. the TOS_LOCAL_ADDRESS).
  
    Then, when calling the send function, just specify the mote ID of the 
receiver such as one of the arguments of that function (don’t remember, I think 
the first field, just check it).
  
    Cheers
  
    Daniele  
  
     
  
         
  
  
  
       
  
    From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boushra MAALA
 Sent: Wednesday, April 25, 2007 9:02 AM
 To: [email protected]
 Subject: [Tinyos-help] sending to particular mote ID
  
  
     
  
    hi,
 i have the followed scenario:
 3 motes (1,2,3)collect  the readings and send them to  a  particular mote 
which is mote 4 .
 my question is :
 in this case, how can i determine the ID of mote 4  for making the 3 motes 
send their messages to mote 4 only.
 is this determined in the sent message 's structure, if yes can anybody help 
me or explain how can i do that, or give me any reference  for helping me 
concerning determining of mote's ID?
 
 thanks
 
 ps: i work with tinyos1, windowsXP.
 
 boushra
  
      
  
    
---------------------------------
  
    Ahhh...imagining that irresistible "new car" smell?
 Check out new cars at Yahoo! Autos. 
  
   
    
    
---------------------------------
  
  Ahhh...imagining that irresistible "new car" smell?
 Check out new cars at Yahoo! Autos. 
  
  

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to