Best way to Log, Store, and Read Out Sensor Data PROC BLE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PhBe_1305961
Level 3
Level 3
First like received First like given

Kind of new to all this.  I want to log two ADC values versus time in the CYBLE -022001-00 device for later read out.  I assume there is no way to store in non-volatile memory;  is that correct?  So what is the best way to store in volatile memory to preserve it through deep sleep modes?  How much memory is available and keep alive during deep sleep mode? 

   

Is there any code examples available that show how to log data in a memory array and read it out via a BLE and Android App?

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum, Philip!

   

Will 16 Kb Sram be enough?

   

When not, I would recommend to use some FRam connected via I2C.

   

 

   

Bob

0 Likes

Thanks !!   So all the SRAM is keep alive.  What is the easiest way to determine the amount SRAM already in use by the program before adding logging function?  

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

After building the project you will see what is taken for (static) vars and stack. Best is to allocate the remaining memory to the heap and use malloc() to get chunks of sram for logging data.

   

 

   

Bob

0 Likes