[Tinyos-help] MsgReader and Listen tools

Isabelle Hang Isabelle.Hang at math.uni-giessen.de
Fri Apr 23 06:21:51 PDT 2010

Thank you for your response. 

I finally got it work the following way:

The compilation seems to need to "recognize" the nx_struct once. For
that, I have to change the .h file and write the nx_struct at the last
position of my list of nx_struct's. (I guess, I create thereby the java
message class, am I?) 

Then, everything works well with MsgReader. 


On Fri, 23 Apr 2010 18:22:56 +0530, sripada kadambar  wrote: 

The command _java net.tinyos.tools.MsgReader uint_8_msg _will only print
something if it detects _uint_8_msg_ type structure in the incoming data.
Or else it will keep quite after printing the msg you saw. Also for this
you need to create a Java message class for uint_8_msg. 

Make sure you
have created the right java message class [1] before using the command.

Sripada Kadambar
 IISc, Bangalore

 On Fri, Apr 23, 2010 at 3:30
PM, Isabelle Hang  wrote:

Hi all, 

I have ported a programme from tinyos
1.x to 2.x. The programme can be compiled and now I try to set up the
pc-mote-communication and there seems to be problem. 

If I use 


I get a response, which seems to be

But if I use 

_java net.tinyos.tools.MsgReader uint_8_msg_ 

only get the following message 

_serial at COM4:57600:resynchronsing_ 

is no error message or any kind of output. ( I would expect some kind of

I must add that there are several _msg structures in my
programme. Can this be the problem? 

Has anybody an idea? 

Best Regards


mailing list
Tinyos-help at millennium.berkeley.edu


mailto:Isabelle.Hang at math.uni-giessen.de
mailto:Tinyos-help at millennium.berkeley.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100423/2887065a/attachment.htm 

More information about the Tinyos-help mailing list