If my understanding of what you are doing is correct and you want to send
packets of length TOSH_DATA_LENGTH, then the actual call to 'send' has to
falsely state that the length of the packet payload is TOSH_DATA_LENGTH.
(eg: call Send.send(ADDRESS, TOSH_DATA_LENGTH, &buf)  as opposed to  call
Send.send(ADDRESS, sizeof(type_in_payload_t), &buf)  )

Just setting the variable somewhere simply sets the maximum that a packet
can be, (ie: to save ram if you have a pool of statically allocated TOS_Msg
structs).

Changing the value is AM.h will have no more effect than setting it in a
Makefile as the definition of this is " #ifndef ".


Alan

On 19/04/07, Munaretto, Daniele <[EMAIL PROTECTED]> wrote:

 Try changing the length in the AM.h file. It should be fine.

Cheers

Daniele







*Daniele Munaretto*

Researcher

* *

*DoCoMo Communications Laboratories Europe GmbH*

Landsbergerstraße 312  80687 Munich  Germany



Mobile              :   +49- 162-  2919-218

Office               :   +49-  89- 56824-218

Fax                  :   +49-  89- 56824-300



[EMAIL PROTECTED]

visit us in http://www.docomolab-euro.com



Managing Directors (Geschäftsführer):

Dr. Toru Otsu, Dr. Narumi Umeda, Kazushige Yoshida

Amtsgericht München, HRB 132967
   ------------------------------

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Jeong Kwanhee
*Sent:* Wednesday, April 18, 2007 1:06 PM
*To:* tinyos-help@Millennium.Berkeley.EDU
*Subject:* [Tinyos-help] Micaz TOS_DATA_LENGTH change



Hi all,

I am using micaz fro my application and the default size of TOS_Msg
structure is 36byte(?).

In order to change the massage packet size, I added

CFLAGS += -DTOSH_DATA_LENGTH=64

to Makelocal

After that, I want to know actually whether its size is 64 or not.

I used tiniViz.

When I debug using tiniViz, I can see '[4] Sent Message <BaseTOSMsg>
[addr  ] and so on.

However, Length is always expressed 0xc.



I used surge application for multihop routing.

Help me!!!!



This method is right??????



_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to