Hi,
I don't think you are changing the AM.h file correctly.
Rather than changing the AM.h file,
leave it as it is and try....
$ make micaz MSG_SIZE=50
instead of "make micaz"
For example,
$ make micaz install.1 mib510,/dev/ttyS0 MSG_SIZE=50
instead of
$ make micaz install.1 mib510,/dev/ttyS0
Here, 50 is the TOSH_DATA_LENGTH that you want.
Thanks.
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