Thanks a lot. That helps. Are familiar with the struct Tos_Msg in tinyos 1.x? I learnt that Tinyos 2.x doesnt has replaced tos_msg with message_t and prevented direct access of certain member functions. For certain variables like tos_msg->group, tos_msg->type, it provides functions like AMPacket.group(tos_msg) and AMPacket.type(tos_msg). It doesnt provide interface functions for all.
1. Do you know how to retrieve the equivalent of tos_msg->crc? I know the equivalent is stored in cc2420_metadata_t->crc for micaz (message_t->message_metadata_t->cc2420_metadata_t->crc). But I dont know how to retrieve it in my code which has only message_t defined? 2. What does tos_msg->addr represents? the source/destination address? Thank you, Psundar On Mon, Jul 21, 2008 at 8:01 PM, Federico Porceddu < [EMAIL PROTECTED]> wrote: > >Hi all, > > > > > >I want to upgrade a code written in tinyos 1.x to 2.x. I would like to know > >what are the changes made in the following" > >1. RadioCRCPacket > > >2. TOS_UART_ADDR (I know it is no more in the AM file. The help says to use > > >SerialAMSenderC component to send to a serial port. But I want the address > >value for a operation like port_address!=TOS_UART_ADDR ) > > I don't know about RadioCRCPacket but about uart address in T2 you can use > TOS_SERIAL_ACTIVE_MESSAGE_ID > > > and about it you can read > http://www.tinyos.net/tinyos-2.x/doc/html/tep113.html > > >pl let me know if you need further info. > > >Thanks a lot, > > >Psundar > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Federico Porceddu >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
