Itamar,

 

 

Iā€™m using tinyos 1.x and in \tinyos-1.x\tos\types\AM.h:

 

typedef struct TOS_Msg

{

  /* The following fields are transmitted/received on the radio. */

  uint16_t addr;

  uint8_t type;

  uint8_t group;

  uint8_t length;

  int8_t data[TOSH_DATA_LENGTH];

  uint16_t crc;

 

  /* The following fields are not actually transmitted or received 

   * on the radio! They are used for internal accounting only.

   * The reason they are in this structure is that the AM interface

   * requires them to be part of the TOS_Msg that is passed to

   * send/receive operations.

   */

  uint16_t strength;

  uint8_t ack;

  uint16_t time;

  uint8_t sendSecurityMode;

  uint8_t receiveSecurityMode;  

} TOS_Msg;

 

 

I think you are looking in the wrong header file. Or maybe in TinyOS 2 it is
different.

 

Oussama

 

  _____  

From: Itamar Amsili [mailto:[EMAIL PROTECTED] 
Sent: maandag 21 mei 2007 15:18
To: Oussama Chougna
Cc: tinyos-help@Millennium.Berkeley.EDU
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]>, tinyos-help@Millennium.Berkeley.EDU

> 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: tinyos-help@Millennium.Berkeley.EDU
> 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
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to