[Tinyos-help] TestNetwork debug messages
Philip Levis
pal at cs.stanford.edu
Thu Jul 3 08:16:40 PDT 2008
Here's the script. You might need to adjust the am_offset variable
depending on which space-delimited token is the AM type (all of the
rest of the fields are offset from that). It's a variable because
different people print out packets differently (e.g., with or without
leading timestamps).
I also think that the test
if ($type eq "19") {
might want to be
if ($type eq "16") {
We've never really made the script very robust.
Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net2collection.pl
Type: text/x-perl-script
Size: 2150 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080703/7c2ac88c/attachment.bin
-------------- next part --------------
On Jul 3, 2008, at 6:04 AM, Gaurav Chandwani wrote:
> Hi Guys,
>
> How can I see the debug messages that are given by notes having
> TestNetwork image ?
> I tried making a mig class of CollectionDebugMsg and reading it
> through MsgReader
> but couldnt see any messages.
> (
> mig java -target=telosb -I%T/lib/oski -java-
> classname=CollectionDebugMsg Coll
> ctionDebugMsg.h CollectionDebugMsg -o CollectionDebugMsg.java
>
> java net.tinyos.tools.MsgReader -comm serial at COM5:telosb
> CollectionDebugMsg )
>
> Cant see any messages even through TestNetworkMsg mig file.
> java net.tinyos.tools.MsgReader -comm serial at COM5:telosb
> TestNetworkMsg )
>
> Although I can see that packets are coming from the mote through
> Listen program.
>
> $ java net.tinyos.tools.Listen -comm serial at COM5:telosb
> serial at COM5:115200: resynchronising
> 00 FF FF 00 00 09 00 16 21 00 BF 01 2C 00 00 4E B0
> 00 FF FF 00 00 09 00 16 33 00 00 00 00 00 00 4E B1
> 00 FF FF 00 00 09 00 16 21 00 F3 00 82 00 00 4E B2
> 00 FF FF 00 00 09 00 16 33 00 00 00 00 00 00 4E B3
> 00 FF FF 00 00 09 00 16 21 00 FA 00 14 00 00 4E B4
> 00 FF FF 00 00 09 00 16 21 00 EE 00 46 00 00 4E B5
> 00 FF FF 00 00 09 00 16 21 00 FF 00 64 00 00 4E B6
> 00 FF FF 00 00 09 00 16 21 00 31 03 84 00 00 4E B7
> 00 FF FF 00 00 09 00 16 33 00 00 00 00 00 00 4E B8
> 00 FF FF 00 00 0F 00 EE 00 00 00 00 00 00 60 EE 00 00 03 60 00 00 00
>
> I am yet to get a response for my previous mail(attached below)
> where I asked if somebody
> knows where I can find the scripts to parse debug messages.
>
> Any hints are welcome.
>
> Best Regards,
> Gaurav
>
>
> On Wed, Jul 2, 2008 at 5:26 PM, Gaurav Chandwani <gaurav.chandwani at gmail.com
> > wrote:
> > Hi,
> >
> > I have installed TestNetwork on many telosb motes(am using 2.0.2
> release).
> > Where can I find the scripts to parse the debug messages sent by
> > these nodes ?
> > In the readme on CVS, its written that they should be available on
> net2 website,
> > but am unable to open it ?
> > I believe test.py is just a simulation script or it has any
> relevance
> > in parsing ?
> >
> > Best Regards,
> > GC
> >
> >
> >
> > --
> >
> ---------------------------------------------------------------------------------------------------------------------
> > To accomplish great things, we must not only act, but also dream;
> not
> > only plan, but also believe.
> > - Anatole France
> >
>
>
>
> --
> ---------------------------------------------------------------------------------------------------------------------
> To accomplish great things, we must not only act, but also dream;
> not only plan, but also believe.
> - Anatole France
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list