[Tinyos-help] Send Data "Hello Wold"

Eric Decker cire831 at gmail.com
Wed Jan 21 10:02:00 PST 2009


On Wed, Jan 21, 2009 at 9:22 AM, Sonia Pardo <shanya86bcn at gmail.com> 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
> Tinyos-help at millennium.berkeley.edu
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090121/5a5596cc/attachment-0001.htm 


More information about the Tinyos-help mailing list