Hi all,

    I'm writing a sensing application that senses the light data every
several minutes and store it in the flash (using LogWrite). I'm using mica2
mote, and TinyOS 2. When doing sensing, the mote is not connected to PC or
network, so it's in standalone status, and the sensing lasts for two days.
After that I want to read out the data, using the following possible
methods:

1. Connect the mote to programming board. Use command line tool (if exists)
to directly access the flash, display and save the log data.
2. Program the mote such that when it receives a UART signal, it sends the
data stored in the flash to the PC through serial. So, to read out the data,
I connect the mote to programming board, use the PC to send a UART signal,
and use "java net.tinyos.tools.Listen" to display the data.
3. Prepare two programs. One only senses and stores data to the flash, and
the other one only sends the log data to UART. So I can use the first
program to do sensing, and use the second one to send the data to PC.

Here're my questions (seems too much, so I'll be glad if any part can be
answered!)
1. Comparing the three methods, the first one should be the simplest one, if
such a tool exists. I've searched through the mail archive, but found no
infomation about existance of such a tool. Can anyone tell me if such a tool
exists or not? The only relevant message I got is "Deluge" can be used to
access flash directly, but it seems Deluge doesn't support mica2 (in
TinyOS2).
2. If I want to use the second method, how do I write a PC program that can
send a UART signal to the mote? Pointing out where the documentation is will
be enough, thanks.
3. If I want to use the third method, will the data in flash survive the
re-programming cycle?

Thanks a lot!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to