The message type in TinyOS 2 is different from the one in TOS 1. In
TOS 2, you access the message fields through interfaces, not directly
from the structure. Look at the AM interfaces. If you still want to
know how is build the packet, look at AM.h, and the .h files of your
platform.

All this is described in the tutorials and TEP 116 if I remember well
(the one about packets).

Romain


From: Itamar Amsili [mailto:[EMAIL PROTECTED]
 Sent: maandag 21 mei 2007 15:18
 To: Oussama Chougna
 Cc: [email protected]
 Subject: Re: RE: [Tinyos-help] Packet Structure

Hi Oussama,

I found The Am.h file (under \tinyos-2.x\tos\types), but there was no
mention of the TOS_Msg structure.


maybe i need to look for the message_t ? is it the packet structure you
meant?


i want to know the strucure on the mac layer( if there is any)





Thanks again





Itamar

 ----- Original Message -----
 From: Oussama Chougna <[EMAIL PROTECTED]>
 Date: Monday, May 21, 2007 15:50
 Subject: RE: [Tinyos-help] Packet Structure
 To: 'Itamar Amsili' <[EMAIL PROTECTED]>,
[email protected]

 > Hi Itamar,
 >
 >
 >
 > Search for the Am.h header file in your TinyOS distribution tree.
 >
 >
 >
 > Somewhere in the file the TOS_Msg structure is defined. It has a
 > Data[TOSH_DATA_LENGTH] field in which you can specify your own data
 > structure.
 >
 >
 >
 >   _____
 >
 > From: [EMAIL PROTECTED]
 > [mailto:[EMAIL PROTECTED] On
Behalf
 > Of Itamar
 > Amsili
 > Sent: maandag 21 mei 2007 14:13
 > To: [email protected]
 > Subject: [Tinyos-help] Packet Structure
 >
 >
 >
 > Hi,
 >
 >
 >
 > When i send a packet from mote A to mote B, what is the packet
 > structure i
 > use ?
 >
 > What kind of fields do i have ?
 >
 > Where can i find the information about it?
 >
 >
 >
 > Thanks alot
 >
 >
 >
 > Itamar
 >
 >
 >
 >


_______________________________________________
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