Well, then, the advice about it being 28 is inaccurate. Last time I checked, for TOS 2.x, the default was 29. It's documented in one of the wikis. Regards, Kurt
----Original Message Follows---- From: [EMAIL PROTECTED] To: KURT PETERS <[EMAIL PROTECTED]> Subject: Re: [Tinyos-help] message_t length Date: Tue, 17 Jun 2008 06:25:32 -0400 I'm using tinyos 2.x. Quoting KURT PETERS <[EMAIL PROTECTED]>: >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 > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
