[Tinyos-help] MultihopOscilloscope - Ctp debug message parsing with perl script

Mehmet Akif Antepli akifantepli at gmail.com
Fri Apr 3 12:42:38 PDT 2009


Thank you so much Omprakash, it works now...

By the way, command is not this;

>> java net.tinyos.tools.MsgReader -comm sf at localhost:9002 | perl
net2collection.pl

but this;

>> javanet.tinyos.tools.Listen -comm sf at localhost:9002 | perl
net2collection.pl

--

Akif

On Thu, Apr 2, 2009 at 10:09 PM, Omprakash Gnawali <gnawali at usc.edu> wrote:

> On Tue, Mar 31, 2009 at 5:20 AM, Mehmet Akif Antepli
> <akifantepli at gmail.com> wrote:
> > Hello Omprakash,
> >
> > As a remainder i used MultihopOscilloscope application.i have three nodes
> > and data portion of the messages (readings[]) is filled with node id's as
> > 0,1 or 2.
> >
> > AM_OSCILLOSCOPE = 0x93
> >
> > AM_CTP_DEBUG = 0x72 (followed with CollectionDebugMsg structure... When i
> > reset any remote node, debug message with type filed in
> CollectionDebugMsg
> > structure as NET_C_TREE_SENT_BEACON = 0x33 is print on the console...)
> >
> > Some part of the uart messages is as follows:
> >
> > 00 FF FF 00 00 09 00 72 21 00 77 00 01 00 01 02 10
> > 00 FF FF 00 00 12 00 93 00 00 04 00 00 01 00 77 00 01 00 01 00 01 00 01
> 00
> > 01
> > 00 FF FF 00 00 09 00 72 21 00 12 00 02 00 01 02 11
> > 00 FF FF 00 00 12 00 93 00 00 04 00 00 02 00 12 00 02 00 02 00 02 00 02
> 00
> > 02
>
> You should fix $am_offset and   "  if ($type eq "19") {" in your
> script. am_offset should offset to 0x72 so it should be 7. You are
> using type 0x72 in your program so you should check if type is equal
> to "72".
>
> - om_p
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090403/77e7c02c/attachment.htm 


More information about the Tinyos-help mailing list