Hi
   From TEP111:The data field of message_t stores the single-hop packet
payload. It is TOSH_DATA_LENGTH bytes long. The default size is 28 bytes. A
TinyOS application can redefine TOSH_DATA_LENGTH at compile time with a
command-line option to ncc: -DTOSH_DATA_LENGTH=x.

2010/6/9 Manas Maheshwari <[email protected]>

> Hi,
> I am starting on tiny-os and working to build an application where my
> packet payload can go from 0 to ,say, 1000 bytes.
>
> I understand that we need to modify the TOSH_DATA_LENGTH parameter to
> make this possible. I am not able to figure out that does tiny-os would
> always transmit TOSH_DATA_LENGTH ( which would not be optimal) or it
> just passes this parameter and the actual payload length bytes only
> ( say 30).
>
> Secondly are there any disadvantages of using high value for
> TOSH_DATA_LENGTH, like some wasted memory(in case I am rarely
> transmitting TOSH_DATA_LENGTH bytes) on the motes.
>
> Thanks
> MM
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to