It is possible that you might be reprogramming the receiver and sender with
different MESSAGE_LEN values. Also did you change the size of the default
packet size? it is 41 hence for using 100 you will need to change the value
by providing a line as below in the makefile.
CFLAGS += -DTOSH_DATA_LENGTH=114
Regards,
Nilesh
On Mon, Mar 17, 2008 at 10:05 AM, Eli Gotesman <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I wrote the following program:
> one sensor sends data (an array of integers) and another sensor that
> receives
>
> I wrote the following header file that defines the structure of the
> message:
>
>
> #ifndef RSSISAMPLESC_H
> #define RSSISAMPLESC_H
>
> #define SAMPLES_NUM 1002
> #define MESSAGE_LEN 100
>
> enum
> {
> AM_RssiSamplesC = 6
> };
>
> typedef nx_struct RssiSamplesMsg
> {
> nx_uint8_t moteid;
> nx_int8_t samples_packet[MESSAGE_LEN];
> } RssiSamplesMsg;
>
> #endif
>
>
> My Problem is with the value of MESSAGE_LEN
>
> If MESSAGE_LEN is equal to 100 then the sender sends the messages but the
> reciever doesn't recieve anything ( the recieve event doesn't oocur)
> If MESSAGE_LEN is equal to 25 then every thing works fine.
>
> I guess this is got something with the size of message_t...
> My question is: what is the maximum size of a message that I can send, and
> how I can change this size?
>
> Thanks,
> Eli
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Regards
Nilesh
Nilesh Mishra
Embedded Networks Laboratory
University of Southern California,
3710 S. McClintock Avenue, Ronald Tutor Hall (RTH) 418
Los Angeles, CA 90089
mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ph: (213) 821-5627 (lab)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help