It's different for TOS 1.x vs 2.x, by the way.  I didn't noticed which one 
you're using.
Kurt

----Original Message Follows----
From: [EMAIL PROTECTED]
To: [email protected]
Subject: [Tinyos-help] message_t length
Date: Sun, 15 Jun 2008 08:10:18 -0400
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?


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to