I'm don't know what "the application" is here.

Assuming TOS 1.x, I think your messages are (based on tos/types/AM.h):
    00 00  06  7D   0A  01 00 0E EE 00 00 00 73 00 00
    FF FF  98  7D   1A  01 00 12 21 12 28 01 00 61 61 32 28 01 00 61 61...
   |addr |type|grp|len| data...

I don't know why you are getting messages addressed to different specific
motes (0 and 1) as well as broadcast (FFFF), nor why they have different
message types. Note that the message type that the Oscope java program
expects to get is decimal 10, so probably both of these messages are
ignored.

What I suggest is to run the OscilloscopeRF program on the mote and
see what you get with Listen. Then try to make your app do the same
thing. Alternately, look into modifying Oscope to read light instead
of whatever it is doing by default. This should be a matter of wiring
in the config file, but "they" overly obfuscated it with the
DemoSensor module. Actually, I just did "make mica2 docs" in the
Oscilloscope directory (using the micasb sensor board) and Photo _is_
the default sensor...perhaps things are different with the MTS300.

As to counting packets received, umm, just count them in the Java side
program? If you want to see if you've missed packets you'll probably
need a sequence number in each message so you can find skips. I'm not
sure if that is what you were asking though...

MS

Xyza Ong wrote:
Sir Michael,

Thanks for the response. :)

Below is a portion of the packets displayed by the application.
I wonder what is wrong, why these packets with shorter length sometimes appear. The packets with longer length seems to have different message format/sequence though the oscilloscope packets have 31 bytes too. I am thinking if I can combine the two modules, spec.app and the oscilloscopeRF application into one application. Is it possible in tinyos?

These are the packets shown by the Listen Java tool using the application. I interpreted the data packet based on what is written in Lesson 6 of TinyOS tutorial.

00 00 06 7D 0A 01 00 0E EE 00 00 00 73 00 00
01 00 06 7D 0A 02 00 10 F0 00 00 00 00 00 00
00 00 06 7D 0A 01 00 10 F0 00 00 00 74 00 00
FF FF 98 7D 1A 01 00 12 21 12 28 01 00 61 61 32 28 01 00 61 61 61 61 61 61 61 61 61 61 61 61 FF FF 98 7D 1A 03 00 12 21 35 28 01 00 61 61 55 28 01 00 61 61 61 61 61 61 61 61 61 61 61 61 FF FF 98 7D 1A 02 00 12 21 65 28 01 00 61 61 85 28 01 00 61 61 61 61 61 61 61 61 61 61 61 61

Anyway, since these packets can be displayed using Java Listen tool and packet counter is updated in the serial forwarder, I would like to ask how to compute the packet success ratio or delivery ratio. All I know is the delivery ratio is number of packets received/number of packets sent where I know the number of packets sent by the application.

Where and how can I determine the number of packets received?
To be able to display that value, I am confused what application to modify, the TOSbase or the said application?

Sorry If I have too many questions. I am quite overwhelmed of this problem right now. ^_^

Thank you so much.


Xyza



*/Michael Schippling <[EMAIL PROTECTED]>/* wrote:

    assuming that the whole Oscope chain worked in some original form
    I would guess that your new app is either using a different messageID
    or not formatting the message data correctly. You should be able to
    modify Oscope to read the photo sensor -- actually I don't remember
    which it defaults to -- so I don't know if you need to write your
    own app anyway. I would compare the good/bad packets using Listen
    to see what's different.

    MS

    Xyza Ong wrote:
     > Hello Sir/Madam,
     >
     > I want to ask some advice.
     > I have tested the OscilloscopeRF on three mica2 motes with
    mts300. The
     > programming board used was mib510 (later I will test using mib600).
     > I was able to display the packets successfully using listen java
    tool,
     > serial forwarder, and oscilloscope GUI.
     >
     > Right now, I wanted to test a specific application that obtains
    sensor
     > readings (photo sensor) periodically and broadcast them to the
    radio. I
     > also used three mica2 motes and a base mote loaded with TOSBase.
    I was
     > able to display the packets using Listen Java tool and I can also
    see
     > that the packet counter is updated in the Serial Forwarder.
     >
     > Leaving the serial forwarder running, I just executed the command
    java
     > net.tinyos.oscope.oscilloscope, hoping that the data coming from the
     > motes will be displayed graphically just like that of OscilloscopeRF
     > application.
     > Unfortunately it did not.
     >
     > Right now, I am studying the code of oscilloscopeRF and tinyos.
    By the
     > way, I am using the older version (tinyos-1.x). Being new in
    tinyos and
     > not familiar with Java, I would like to ask if you can give me
    some tips
     > or hints how to start. My goal is to display the data coming from
    the
     > motes, installed with said application, in a GUI like that of
    oscilloscope.
     >
     > If you can give me some examples, references, hints, it would be
    much
     > appreciated. I'm quite stuck with this problem right now.
     > Thank you.
     >
     >
     >
     > Regards,
     > xyza
     >
     >
     >
    ------------------------------------------------------------------------
     > The fish are biting.
     > Get more visitors
     >
     > on your site using Yahoo! Search Marketing. <
     >
    
http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50>

     >
     >
     >
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > Tinyos-help mailing list
     > [email protected]
     >
    https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


------------------------------------------------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile <http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail> and always stay connected <http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail> to friends.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to