Hi Miklos,

I add TOSH_DATA_LENGTH=40 in Makefile, and it indeed work. Thanks for your
help, and then still need for your help.

Then i test the maxium TOSH_DATA_LENGTH i can set, and find 105 is ok while
106 does not work. If i set TOSH_DATA_LENGTH 106, nothing displayed in the
screen, just
serial@/dev/ttyUSB1:57600: resynchronising
...
Then i set to 105, and increase the Payload field in my Telosb application,
and the result is:
10:25:50 "rx" 5762211 61928 0 35 [ 0x41 0x88 0xb9 0x22 0x00 0xff 0xff 0x02
0x00 0x3f 0x06 0x00 0x02 0x00 0x00 ]

As you say, 3.5 bytes for "rx", 4.5 for 13817759, 2.5 for 55952, 1.5 for
0, 1.5 for 17 and 36.5 for the 35 byte payload(Am I right?). That adds up to
50
bytes, which is not exceed 105, but it only print 15byte array. Is it
possible to print all the payload?

And why 2.5 for 55952, 1.5 for 0, can you give me some hint?

Thanks for your time.

Regards,
Lizhao

2009/5/10 Miklos Maroti <[email protected]>

> Hi Lizhao,
>
> On Sat, May 9, 2009 at 2:52 AM, Lizhao You <[email protected]>
> wrote:
> > I am sorry for the my confusing description. In fact, BlinkToRadio only
> has
> > 2B nodeid(default 00 01) and 2B counter(increase per pkt), whose length
> is
> > less than 16bytes. I thought RF230Sniffer can print this two field, but
> the
> > result turned to be: 21:39:32 "rx" 13817759 55952 0 17. No payload
> existed.
>
> Ok, the thing is that it cannot put the whole message into the serial
> message payload, so the last field (which is the array) is omitted.
>
> You need 3.5 bytes for "rx", 4.5 for 13817759, 2.5 for 55952, 1.5 for
> 0, 1.5 for 17 and 18.5 for the 17 byte payload. That adds up to 32
> bytes but the payload of the message is 28 bytes at most.
>
> Add the following define to the sniffer application makefile:
> TOSH_DATA_LENGTH=40, that will fix your problem and show the proper
> payload.
>
> Miklos
>



-- 
Lizhao You
Undergraduate Student of GPS Group
Department of Computer Science and Technology, Nanjing University
Nanjing, Jiangsu, 210093 China PR.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to