This is sortof what I was getting at in my response...

On the TOS side, TOSH_DATA_LENGTH is used to alloc message
buffers for both serial and radio channels. On the PC side,
the low level Java code probably just sucks up bytes and
sticks them in a dynamic buffer, so it only cares that the
final length matches the length field -- when sending a
message it checks that the byte[] length is the same as the
specified length and whines (for no good reason I can see).
But you might check the low level receive functions to see
if they have a buffer size limit.

Higher level Java message handlers may make assumptions about
packet lengths however, so I would go look at those classes
if there were trouble.

MS

Faisal Aslam wrote:
> That is obvious that actual structure is larger than this.
> I am only concern about that data not about actual structure.
> How can I am not able to send data larger than TOSH_DATA_LENGTH in radio 
> packets but can send much larger data in serial packets? I am not sure 
> if TOSH_DATA_LENGTH has any impact for serial data or not. There is no 
> impact visible to me, although it might produce some hidden errors??
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to