Make sure you are changing platform/micaz/AM.h

Also this will mean some horrible mess with the UART messages
which are what you define in types/AM.h

The other option is to use micaz messages all through, which
means modifying Framer.nc for TOSBase. There were some help
messages about this in Jan.

MS

Lei Tang wrote:
Hi, all,

I'm working on MICAz and MIB510 to find out the maximum payload (user's data) of a package. I found the parameter, TOSH_DATA_LENGTH, in the file of 'AM.h' and the default is 29. I changed it into some larger values, and then made a package in my code complying to the size. But, it doen't work very well.

1. When TOSH_DATA_LENGTH is less than or equal to 36, data are sent out correctly. 2. When it's 37, or 38, the 37th and/or 38th bytes are not correct and fixed to 0x26, 0x03, though other bits look fine.
3. When it reaches 39 or more, no package can be even sent out.

Also, no matter what value I change the data size to, the compiled file, 'app.c', always shows that the size is 29. See the following:

typedef struct TOS_Msg {
............
............
  int8_t data[29];
............
............
} TOS_Msg;

I was told that Zigbee protocol agrees with a payload ranging from 8 to 127. Anybody know how to change the maximum payload size and what value it can reach?

Thanks!
Best,
Lei


------------------------------------------------------------------------

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

Reply via email to