Problem with save data coming from BLE

Hi

I used Arduino Nano 33 BLE to get data from an object. I send data with BLE and receive them with “nRF Connect”. I need to process data with MATLAB so by using “nRF logger” I save the log file (.txt) and extract data from it. When I want to save small data (like 30 minutes measurements) it works properly. But if I want to save a big file (8-hour measurements), the app crashes. I think this app can’t create large-size files.

The .txt file of 30 minutes measurements is about 12 MB.

“nRF logger” is an open-source APP. I think if I could split the big file into 16 files, the app maybe can create them.

does someone has an easier idea?

Hint: My phone’s CPU is S778G and have 8G RAM and storage are enough.

12MB * 2 = 24MB/hour

8 hr * 24 MB/hr = 192MB

Depending on SD-card library, 4G is typical for FAT formated cards.
SD - Arduino Reference

The SD library allows for reading from and writing to SD cards, e.g. on the Arduino Ethernet Shield. It is built on sdfatlib by William Greiman. The library supports FAT16 and FAT32 file systems on standard SD cards and SDHC cards. It uses short 8.3 names for files.

Look elsewhere, maybe an int that should be a long int.

Seems this is something they did not resolve then

hi mrburnette
thanks for your reply
I had thought about SD card. but I want to reduce size of my PCB so I prefer to not use it.

Hi
thank you
it was useful

Think "outside the box"
Interfacing a (micro)SD card with an Atmega328 microcontroller (shepherdingelectrons.blogspot.com)

Or, try a newer tech:
Adafruit I2C Non-Volatile FRAM Breakout - 256Kbit / 32KByte : ID 1895 : $9.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Or, old tech, just chip:
Arduino: fast external SPI Flash memory – Renzo Mischianti

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.