On Wed, Jan 21, 2009 at 9:22 AM, Sonia Pardo <[email protected]> wrote:

> Dear All,
>
>>
>> If I use this structure I can send in datatx only 14 characters (28bytes).
>> In this case I wish send more characters, so I need more bytes.
>>
>
It is a bit more complicated than that.  There are static message_t
structures allocated that use TOSH_DATA_LENGTH
to define how big the data area of the message is.  There is additional
information that is also included that makes the structures larger than 28
bytes.  Overhead etc.

So this defines how big these data areas are.

That isn't to say that if you wanted to create space for a larger packet you
couldn't.  You'd have to really understand the code path and what code is
using what structures.

eric


>
>>
>> typedef nx_struct PacketLinkMsg {
>>   nx_uint32_t count;
>>   nx_uint32_t loss;
>>   nx_uint16_t src;
>>   nx_uint8_t cmd;
>>   nx_uint16_t sync;
>>   nx_int8_t rssin;
>>   nx_uint8_t datatx[]
>> } PacketLinkMsg;
>>
>> In Telosb Can I use nx_uint16_t datatx[] or nx_uint32_t datatx[] to obtain
>> it?
>>
> I believe yes, but I'm not sure.
> Can you help me please?
>
> Thanks in advanced!!
>
> Sonia
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to