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. 

Best
Regards 

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.


Regards,
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 


_java.net.tinyos.tools.Listen_ 

I get a response, which seems to be
correct. 

But if I use 

_java net.tinyos.tools.MsgReader uint_8_msg_ 

I
only get the following message 

_ser...@com4:57600:resynchronsing_ 

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

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

Has anybody an idea? 

Best Regards


Isabelle  

_______________________________________________
 Tinyos-help
mailing list
[email protected]
[3]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[4]

 

Links:
------
[1]
http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder
[2]
mailto:[email protected]
[3]
mailto:[email protected]
[4]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to