Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Storing large data files inside Versa

Hello. I am building a data collecting application using fitbit Versa.

[Current situation]

Specifically, I want Versa to save data files (collected by its sensors such as accelerometer, gyro, etc.) internally so that I can move them to external computers later. However, I continuously got several errors like “fatal jerryscript error: ERR_OUT_OF_MEMORY”, or “App msg queue full”. I found some comments about these but I want to ask two questions.

[Questions]

  1. Is it possible to save data files in tens of Mb size (or few hundreds if possible) inside Versa? If so, how can I achieve this goal? I thought that it is possible since Versa has 4Gb memory.
  2. Is it possible for one app to access the data store of another app? For example, is it possible for B (transfers stored data to external devices) to use the data collected by application A?
Best Answer
0 Votes
1 REPLY 1

I think each app is limited to 15MB of storage.

You can use cluster storage (max 5MB) to share data between apps on the watch.

I don't think that the jerryscript memory message relates to storage memory. It's more likely that your app is using up its RAM (maximum 64kB on original Versa, I think). You can use the System API to check.

"App msg queue full" means that your app is hogging the CPU. If the system doesn't get a chance to do other things after five seconds or so, you'll see this.

I suspect that your biggest challenge is going to be getting the data off the watch.

Peter McLennan
Gondwana Software
Best Answer