On Tue, May 11, 2010 at 12:01 AM, Yusnaidi Md Yusof <[email protected]> wrote: > ------------------------------ >> >> Message: 2 >> Date: Fri, 7 May 2010 14:17:46 -0700 >> From: Omprakash Gnawali <[email protected]> >> Subject: Re: [Tinyos-help] TestNetwork app problem communicating with >> serial port >> To: David Li <[email protected]> >> Cc: tinyos forum <[email protected]>, >> [email protected] >> Message-ID: >> <[email protected]> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> On Tue, May 4, 2010 at 11:16 AM, David Li <[email protected]> wrote: >> > 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? >> >> This sounds like a Java toolchain question. Did you make sure your >> Java toolchain works for simpler/other examples? >> >> - om_p >> >> > Hi, > > I also faced the same problem. I tried the same commands to other > application such as BlinkToRadio as what shown in Tutorial 3. It works for > me. I can see the output such as like this: > > 1152232617609: Message > [nodeid=0x2] > [counter=0x1049] > > 1152232617609: Message > [nodeid=0x2] > [counter=0x104a] > > 1152232617609: Message > [nodeid=0x2] > [counter=0x104b] > > 1152232617621: Message > > [nodeid=0x2] > [counter=0x104c] > > But, it does not works for the TestNetwork app....any suggestions?
You can have the mote send just one type of message and see if that helps. By default, the mote sends CTP data packets as well as debug messages. These are two different types of messages. - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
