Wafa,

It seems that your Data_Packet_t size is (31 + DATA_SIZE).
Is your DATA_SIZE less then 7?
Anyway, I suggest you to set the TOSH_DATA_LENGTH to a high number (lets say
100).
The actual packet size (in the air) is determined by the real data length,
so you won't have an overhead.

Arik



On Tue, Feb 2, 2010 at 17:37, wafa jaballah <wafa.jabal...@gmail.com> wrote:

> Hi all,
>
> As It was indicated in TEP , the default size  of TOSH_DATA_LENGTH is 28
> bytes.
>  In my application, I use a data payload size  of 38 bytes. So, I can
> redefine TOSH_DATA_LENGTH using the following command in Makefile
>
> -DTOSH_DATA_LENGTH=38
>
> Is it true?
>
>  Then , I define my data packet as follows:
>
> typedef struct Data_Packet_t {
>
> uint8_t level;
>
> long index;
>
> uint8_t data[DATA_SIZE];
>
> uint8_t mac[8];
>
> uint8_t dis[8];
>
> } Data_Packet_t;
>
>  First, I send and receive the data packet correctly using this data
> structure.
>
> But when I add  some fields  to my data packet,  the data packet is sent
> correctly (all fields are correct). The problem is that on the receiver side
> , I found that "dis" data field is set all the time to '0000000' which is
> different when this packet was sent.
> I joined some snippet of code in 4 files and I will be very grateful if
> someone could help me.
> Is there any example of code or a tutorial which could really help me?
> What is the best way to manage this?
>
> Thanks,
>
> --
> Wafa Ben Jaballah
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Best Regards,
Arik Sapojnik
sapoj...@gmail.com
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to