Hi Eric,
Thank you for your answer, although maybe I was not able to explain very well. My scenary is the next one: I have one base station mote, which has installed TOS_BASE and three mote A,B,C which A and B have the same firmware installed because of they have the same hardware with the only difference that they have two different AM addresses. Both of them are ready to receive AM type 4, AM type 3 and AM type 2 because of in their firmware have Receive[3], Receive[4], and Receive[2]. Now I have another mote C, which has a different hardware as A y B have, and because of the person who implemented C mote firmware did not know about A and B existence he decided to use AM type 4 as one of the message which i sable to receive, but AM 4 type for C it is different to AM 4 type for A and B. After If I use MIG tool to create Message java types for AM 4 type Message in A, B, and C, I will have two different java class, from two different NesC structs. So, If I fill the message in higher layers in my Java Application one for being sent to A or B and the other one for being sent to C, both of the Message.java will be different but they will be fill with the same AM Type. Finally if I send one 4 AM type message for A or B specifying the A or B node Addressess, C will not have problem because its address is different so it will reject the message then C will not try to understand AM 4 type message for A or B and there will be no problem. Am I missing anything? I think the only problem it is if TOS_BASE try to send BroadCastMessage with AM 4 type, because then A and B will expect one type of message which will be different for C. Am I missing something? I am supposing that the first step which I think it would be to check if the recipient address in the message matches with the receiver address. Maybe this is not true and the message type is checked before. Thank you in advance. Regards David De: Eric Decker [mailto:[email protected]] Enviado el: martes, 10 de noviembre de 2009 22:09 Para: David Conde CC: [email protected] Asunto: Re: [Tinyos-help] AM Type message AM type should be global so that the receiving mote knows how to decode the message. On Tue, Nov 10, 2009 at 5:30 AM, David Conde <[email protected]> wrote: Hi, I have a question, I would like to know if AM type in AM messages is particular for each mote, I mean, if I address by using AM node address, then I can use the same AM type for different kind of messages which are proccessed by different motes with different AM nodes. My idea is to achieve a Base Station as TOS Base which get Messages from upper layer but it does not know which AM type those messages have so, TOSBase send the message to the air and then the mote which has AM node address = receipient Address get the message with this AM type. Is this possible? Thank you in advance _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
