Hi Arik,
Thanks for your answer I am using TinyOS 1.x with IntToRfm.Send à Comm.SendMsg [AM_Type], so I guess it is implicitly set the AM type in the message which is going to be sent when I do this. I have another question about AM communication. Do the sender receive an ACK AM message or something similar in order to check that the message was sent correctly?I will explain better, I have an alarm system, where the sender sends alarm messages, and it is necessary that the sender receive and ACK or something similar so that the sender can be sure that the receiver got the alarm warn. So, how does Active Messages mechanism work with ACKs? Thanks in advance De: Arik Sapojnik [mailto:[email protected]] Enviado el: martes, 27 de octubre de 2009 21:38 Para: David Conde CC: [email protected] Asunto: Re: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg) David, The AM type is specified when you create the sender - components new AMSenderC(AM_TYPE); This type is sent in the air. Arik . ----- Original Message ----- From: David Conde <[email protected]> Date: Tuesday, October 27, 2009 15:31 Subject: [Tinyos-help] About Active Messages Type (AM type in TOS_Msg) To: [email protected] > Hi, > > > > I am wondering how the destiny node is able to handler each message > depending on AM type. I have read about Lesson 4 in TinyOS 1.x > tutorial and > I would like to know where the AM type is included in the > TOS_Msg message > struct. I mean, if I type MyApp.Send à Comm.SendMsg[1] in the > sender side > and I do not fix AM type in another place (at least I did not > see to fix > this AM type in IntToRFM component), how the receiver side knows > which AM > type has the message?Is this AM Type included in the message > automaticallywhen I do Comm.SendMsg[1]? > > > > My question is how the receiver is able to send to one concrete > messagehandler from the message type if I have not directly > specified the AM type > in my TOS_Msg message when I send the message. > > > > Thanks in advance > > > > Regards > > > > David > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
