Hi Rahav,

1) Yes, this is probably the best app to start from, unless you also need
the real-world-time feature of HostTimeLogging:
http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/shimmer/apps/HostTimeLogging/README

2/3) These questions are related. 3 channels x 2 bytes each x 170 sample
periods = 1020 bytes

Mike

On Tue, Jul 3, 2012 at 1:12 PM, Rahav Dor (yahoo) <[email protected]> wrote:

> Hello everyone, my first post (and first project).
>
> I would like to change JustFATLogging so it can log more than just the
> accelerometers. I would like to keep the new app flexible, so the next
> person around will be able to decide if she/he wants to add Gyro reading,
> and/or other sensors. This requires that some constants (record length,
> etc.) will become constants, preferable in the .h file. I would like it
> continue and to not use the radio because the uSD card has lower energy
> needs. As I was reading the code I ran into some constants which I do not
> understand.
>
> Here are my questions:
> 1) I am trying to add to JustFATLogging. Is there a better app to start
> from, or code fragments that I can use from other app and plug it into the
> right places in JustFATLoggging?
>
> 2) The sbuf variables have a size of 512 and they are of type uint16, but
> the call to fwrite writes only 1020 Bytes. Why not 512*2B=1024 Bytes?
>
> 3) I assume that DMA0.transferDone function is triggered when a DMA
> transfer is complete, correct?
> In that function, what is the constant of 170 used for?
>
> PS: As I was reading JustFATLogging I added a lot more comments. If anyone
> is interested I can post the code.
>
> Thanks,
> Rahav
>
> _______________________________________________
> Shimmer-users mailing list
> [email protected]
> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
>
>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to