All true, except -- assuming that the data[] field is the
thing you are interested in -- you only need about 12 messages
to get the whole 276 bytes.

It is possible to redefine TOSH_DATA_LENGTH to larger values
but there's a tradeoff in lost messages, and I think the max
is either 128 or 256.

MS


[EMAIL PROTECTED] wrote:
> hello
> 
> Am I right?
> 
> A message_t max payload length is of TOSH_DATA_LENGTH (equal to 28) bytes.
> 
> So I can transmitt only a message with this maximum payload, for  
> example my payload can be a message of type ClotureMessage with :
> 
>           typedef nx_struct ClotureMessage
>       {
>               nx_uint8_t  emetteur;//1 byte
>               nx_uint16_t  destinataire;//2 bytes
>               nx_uint8_t  type; .. 1 byte
>               nx_uint8_t  data[24];//24 bytes
>       }ClotureMessage;//a total of 28 bytes
> 
> If I want to send more payload, for instance :
> 
>        typedef nx_struct BiggerClotureMessage
>       {
>               nx_uint8_t  emetteur;//1 byte
>               nx_uint16_t  destinataire;//2 bytes
>               nx_uint8_t  type; .. 1 byte
>               nx_uint8_t  data[276];//276 bytes
>       }BiggerClotureMessage;//a total of 280 bytes
> 
> I have to send 280 messages of ClotureMessage type , and so to manage  
> the message splitting?
> 
> best regards
> 
> _______________________________________________
> 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