11-28-2018 05:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-28-2018 05:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
We have a requirement in line to read sensor data for few minutes and store it in a file/ in memory mechanism until it synchs with the companion App. The whole idea is to port the data as a collection to a remote server so it can be processed later. Can someone guide me to execute this, as I failed to pull off something productive

11-28-2018 11:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-28-2018 11:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've written a clockface that collects all stats (including HR) every 15 seconds and stores them in files on the watch, so it can be done.
What problem were you having?
Gondwana Software

11-28-2018 22:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-28-2018 22:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Catplace..
Thanks for your reply...
As soon the file size reaches 25 KB, an out of memory error is thrown as the log shows we have reached the upper allowed limit 64 KB.
So please advise the ideal file format to store data and update file for a time period you mentioned..
Thanks a lot..

11-28-2018 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-28-2018 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Two tricks I used:
Don't use the javascript type 'number'. They take typically eight bytes each. If you represent the values as Int16, you can get great savings in memory and speed.
Don't try to keep everything in memory at once. I wrote a small random-access file system that lets me cache and flush readings to file every minute or two. This was a LOT of work, and difficult to debug!
Gondwana Software

11-30-2018 01:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-30-2018 01:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks friend,
I will try in that way...

