[Tinyos-help] TestNetwork debug messages

Gaurav Chandwani gaurav.chandwani at gmail.com
Thu Jul 3 08:54:30 PDT 2008


Hi Philip,

Thanks for the script.
It might be a naive question .. but i m not familiar with perl ..
can you tell me how to run this script ?
i believe I have to give the command (perl "script") ...the output of
net.tinyos.tools.Listen program or something similar which catches packets
from UART.

Is there no way to see the debug messages(as text/characters) on console
that are written in the CTP/LE code files .. the dbg function ...... eg
dbg("TreeRouting","%s\n",__FUNCTION__);
seeing those would be prints would be very very useful since I am seeing a
huge number of
packet drops in my network and would like to use TestNetwork to understand
the problem.

Best Regards,
Gaurav







On Thu, Jul 3, 2008 at 5:16 PM, Philip Levis <pal at cs.stanford.edu> wrote:

> 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
>
>
>
>
>
> 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
>>
>
>
>


-- 
---------------------------------------------------------------------------------------------------------------------
To accomplish great things, we must not only act, but also dream; not only
plan, but also believe.
- Anatole France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080703/0256a47e/attachment.htm 


More information about the Tinyos-help mailing list