On Thu, April 12, 2007 1:19 pm, manu suryavansh said:
> Hi,
> I am sending 10 sensor readings in one packet using Multihop. I just want to
> store the reading in a text file corresponding to each mote. I don't want
> any GUI display.
> Can somebody please tell me how to get started?
> I have tried to understand the Trawler (Surge) but I find it very
> complicated and there is no documentation.
> I want to know that since I want to write readings in a file, should I write
> in the file in append mode. With the trawler application I think the
> readings are stored in an array and on selecting save all the reading are
> saved at once but in this case only approximately 16000 reading can be
> saved.
>
> Thank you
> Manu Suryavansh
> University of Florida

I usually use listen to save to a file directly. You can create a new file

  listen > file.log

or append

  listen >> file.log

then use your favorite scripting language (or any other language) to parse
the data and save a file for each mote. You could even use grep to sort out
the data manually.

I have used perl scripts by piping "|" the data from listen into the script.

  listen | perlscript.pl

you can save it as a file

  listen | perlscript.pl > file.log

and even monitor it

  listen | perlscript.pl | tee file.log

It is much easier to process the data afterward then to try to rewrite a
program, and you can choose how you do it.

-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

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

Reply via email to