The serialAM solution will work much better for sure. Store the data in a
100bytes (approx) buffer then send it via active message. Wait for the
senddone and repeat it until you have flushed the whole memory. Based on my
experience, it works fine for several minutes, time to time it might loose
synchronization, but make a try and see what happens. How big is your
flash? What hardware are you using? If it's the telosb flash, it should be
pretty fast to download the data like that. If it's a much bigger flash,
then the ftdi with 115kbps uart is not the best solution to download data...
Bye,

Ugo


2014-09-01 10:51 GMT+02:00 Alessandro Sivieri <[email protected]>
:

> Hi all,
>
> I'm quite effectively using the LogStorage to store sample data in a
> deployment. As of today, whenever I have to extract the data from the
> storage, I simply seek to the beginning and then read each entry, printing
> it out in a CSV-like format and collecting the printouts from a terminal.
> The problem here is that, depending on the hardware device I'm using, I
> need to add a certain delay between reads in TinyOS (between 25 and 50 ms),
> otherwise the output from the serial line becomes garbled (basically,
> printfs overlap each other). This means that it takes about 20 to 40
> minutes to download a month of data (sampling once per minute).
>
> Because of this, I think this is one of the less efficient ways I can do
> this: do you know which would be a more efficient (i.e., faster) way? One
> idea could be to use the SerialAM interface and a corresponding program (in
> Java, for example) on the computer side to interpret each message, but I
> wonder if the same problem of overlapping printfs would appear also in this
> case, thus rendering the messages corrupted.
>
> Any idea?
>
> --
> Sivieri Alessandro
> [email protected]
> http://sivieri.wordpress.com/
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to