Hi,

I am trying to print out more meaningful messages sent to serial port from a
small network formed in TestNetwork app. So I created a java directory under
TestNetwork and added a Makefile:

-------- Makefile ----------------
BUILD_EXTRA_DEPS += TestNetwork.class
CLEAN_EXTRA = *.class TestNetworkMsg.java
TestNetwork.class: $(wildcard *.java) TestNetworkMsg.java
    javac *.java
TestNetworkMsg.java:
    mig java -target=null -java-classname=TestNetworkMsg ../TestNetwork.h
TestNetworkMsg -o $@

-------------------------------------

The "make" cmd ran ok and it generated TestNetworkMsg.java.

Following the "Mote-PC serial communication" tutorial, I launched MsgReader
as following:

java net.tinyos.tools.MsgReader TestNetworkMsg -comm serial@
/dev/ttyUSB1:iris
serial@/dev/ttyUSB1:57600: resynchronising

That's it! I didn't see any more messages coming out of this unlike what's
expected in the tutorial.  But I can see the raw output just by using "java
net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:iris".

Anything wrong with this?

Thanks.

-- 
Regards,

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

Reply via email to