Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-19 Thread Alban Hessler
Most of the radio chips have a 128 bytes buffer, which means that the whole packet cannot be bigger than 128 bytes, overhead included. So, if you want to send a large packet, you need a transport layer which will fragment it before sending it over the air. AFAIK, there is no core tinyos library

Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-19 Thread Michael Schippling
I don't know who will toss cookies if you try to send a message that is larger the the defined size. The sender may behave rationally and reject the premise, or the receiver could overrun it's buffer and crash. YMMV. MS Alban Hessler wrote: Most of the radio chips have a 128 bytes buffer, which

Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-19 Thread Nahr Elk
Interesting answers, Thanks for All. Best regards, Nahr Elk 2009/5/19 Michael Schippling sc...@santafe.edu I don't know who will toss cookies if you try to send a message that is larger the the defined size. The sender may behave rationally and reject the premise, or the receiver could

Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-18 Thread Nahr Elk
Hi, Thank you Razvan, I would like to change the data payload size dynamically according to my application exigences. And I am not so convinced that setPayloadLength(message_t* msg, uint8_t len) is the right solution Best regards, Nahr Elk 2009/5/18 Razvan Musaloiu-E. razv...@cs.jhu.edu Hi!

Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-18 Thread Michael Schippling
Unless Things Have Changed(TM) in T2, only the length number of bytes is transmitted -- at least over the radio -- so you're not losing bandwidth with a larger DATA_LENGTH. You do waste RAM because buffers are allocated for the max size, which is one reason it's a compile time setting, but that

Re: [Tinyos-help] DTOSH_DATA_LENGTH

2009-05-18 Thread Razvan Musaloiu-E.
Hi! On Mon, 18 May 2009, Michael Schippling wrote: Unless Things Have Changed(TM) in T2, only the length number of bytes is transmitted -- at least over the radio -- so you're not losing bandwidth with a larger DATA_LENGTH. You do waste RAM because buffers are allocated for the max size,

[Tinyos-help] DTOSH_DATA_LENGTH

2009-05-17 Thread Nahr Elk
Hi Is there any way to change DTOSH_DATA_LENGTH at run time instead of at compile time ? :) THANKS Best regards, Nahr Elk ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu