[Tinyos-help] Java Listen tool

Bibudh Lahiri bibudh at gmail.com
Tue Apr 3 08:25:37 PDT 2007


Hi Ferry,
   R u sure ur interpretation of the packet data is correct? I think it
should be as follows, by looking at the tutorial:


7E00 is the destination address
0A and 7D are group ID and handler ID respectively
Msg length is the next one byte, i.e., 01 in ur case (that may be a reason
why u r getting this invalid message length error)
Source address is 0100 (red and first one byte from grey, so it is constant)
Next two bytes are the sample counter (last one byte from grey, first one
byte of green)
Channel is 0100 (last one byte of green, first one byte of the next color),
so channel ID is not changing, either...
Hope this helps

                      Bibudh

On 4/3/07, Ferry Cialis <ferrycia at gmail.com> wrote:
>
> Hello,
>
> I'm currently following the Lesson 6 for tinyos-1.x online tutorial about
> displaying data on a PC. I'm using Imperial College's BSN system. When I
> tried the Java Listen tool using baud rate 57600, the following 'error'
> message came out:
>
> TOS_Msg length is invalid: header_length=5,real_length=36 ... modifying
> msg to f
> it
> Received message:1A 00 00 00 00 00 7E 00 0A 7D 01 00 0A 00 01 00 63 0B 8F
> 0B 4F
> 0B 67 0B 6F 0B 7F 0B 7F 0B 83 0B 4F 0B 6B 0B
> 1A 00 00 00 00
> TOS_Msg length is invalid: header_length=5,real_length=36 ... modifying
> msg to f
> it
> Received message:1A 00 00 00 00 00 7E 00 0A 7D 01 00 14 00 01 00 6B 0B 6B
> 0B 6F
> 0B 7B 0B 77 0B 7F 0B 7F 0B 7B 0B 7B 0B 7B 0B
> 1A 00 00 00 00
> .
> .
> .and so on
>
> So next I used explicit telos baud rate as in "export MOTECOM=serial at COM1
> :telos
>
> and the msg length invalid error message was gone but the received
> messages are still similar to the above format.
>
> 1A 00 00 00 00 00 7E 00 0A 7D 01 00 9E 75 01 00 73 0B 77 0B 77 0B 7B 0B 7F
> 0B 77
>
>  0B 83 0B 57 0B 7B 0B 7F 0B
>
>  1A 00 00 00 00 00 7E 00 0A 7D 01 00 A8 75 01 00 7B 0B 73 0B 7F 0B 87 0B
> 57 0B 77
>
>  0B 7B 0B 7B 0B 83 0B 63 0B
>
>  1A 00 00 00 00 00 7E 00 0A 7D 01 00 B2 75 01 00 77 0B 7F 0B 7F 0B 7B 0B
> 7F 0B 7F
>
>  0B 87 0B 4B 0B 6F 0B 7B 0B
>
> What I want to know is:
> What is TOS_Msg length is invalid...? How do I correct it?
> Why is my data packet format different from the online tutorial?  Mine
> starts with 1A 00 00 00 00 00 ...
> If I only starts looking at 7E 00 onwards like the online tutorial then
> why is my source address (in grey) and channel (in brown) keeps changing
> while the counter (in green) is constant? Or do I look at them wrong?
>
> Sorry for the long post but I really need help in this. Been stuck for a
> week..
>
> Thanks,
> Ferry
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070403/4fa86233/attachment.html


More information about the Tinyos-help mailing list