Re: [Tinyos-help] Data Viewing

2007-09-28 Thread Ariel Mauricio Nunez Gomez
On 9/28/07, John W. Barron <[EMAIL PROTECTED]> wrote: > > If made changes to SerialPacket.java (Long.toHexString) , Will this do > the same thing? Yes, but I would really encourage you to "extend" the message reader class and override the message received method. Trying to change things on the hi

Re: [Tinyos-help] Data Viewing

2007-09-27 Thread Ariel Mauricio Nunez Gomez
The java file is located there: /tinyos-2.x/support/sdk/java/net.tinyos.tools.MsgReader.java And the method you'd want to modify is: ... public void messageReceived(int to, Message message) { long t = System.currentTimeMillis(); //Date d = new Date(t); System.out.print("" + t + "

Re: [Tinyos-help] Data Viewing

2007-09-27 Thread John W. Barron
The MsgReader log works great but, are there any options to display in DEC instead of HEX. If not, what java file actually prints the message (so I can reformat to DEC)? Thanks John Barron Quoting Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]>: I usually do something like this: java net

Re: [Tinyos-help] Data Viewing

2007-09-26 Thread Ariel Mauricio Nunez Gomez
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html It's mentioned on the end of the Mig section of the tutorial. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/ti

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Wes Barron
Thanks for the info, I'll try that tomorrow. Is there any other publications on the MsgReader? I only ask because i knew the software exist but have never read or heard about it, and honestly didn't know it was in the TOS release. John Ariel Mauricio Nunez Gomez wrote: I usually do somethi

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Ariel Mauricio Nunez Gomez
I usually do something like this: java net.tinyos.tools.MsgReader TheMsg >> the_log.txt && It then goes to the background, if I want to see it while it's being logged, I call: tail -f the_log.txt Ariel. On 9/25/07, Cadet John W. Barron <[EMAIL PROTECTED]> wrote: > > Yes this is the current way

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Cadet John W. Barron
Yes this is the current way I do it, How would I recover a message_t sent to the serial port? (in a useful display that could be logged to be analyzed later? ) John Kevin Klues wrote: For the current printf implementation, the tutorial here shows you how to use it. Including how to decode th

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Philip Levis
On Sep 25, 2007, at 2:29 PM, John W. Barron wrote: With all the PrintF questions, I was wondering... How does everyone view their data. If I send a Message_t to serail what are my options besides hex? I mostly send PrintF messages to serail and read the Comm port with Windows Hyperterminal.

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Kevin Klues
For the current printf implementation, the tutorial here shows you how to use it. Including how to decode the messages it transmits into ascii. Its probably going to change in the near future though, so keep a look out. http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson15.html Kevin O

Re: [Tinyos-help] Data Viewing

2007-09-25 Thread Michael Schippling
I write Q&D message classes to print what I want and plug them into lightweight things like Listen. Too many years of hexdumps, I guess... MS John W. Barron wrote: With all the PrintF questions, I was wondering... How does everyone view their data. If I send a Message_t to serail what are my op

[Tinyos-help] Data Viewing

2007-09-25 Thread John W. Barron
With all the PrintF questions, I was wondering... How does everyone view their data. If I send a Message_t to serail what are my options besides hex? I mostly send PrintF messages to serail and read the Comm port with Windows Hyperterminal. I KNOW there are better ways, but how to "decode"