How to read Flash module RAK15001 as mass storage through USB port

Hello,

I am trying to log the variable data to Flash module at every 15 sec interval. Once the log file gets stored, I want to end user to have the functionality of downloading this logged file and access it via USB port of RAK19007 base (2nd gen) used with RAK11200 (ESP32).

Any suggestion ?

Thanks…

Welcome to the forum @ggss

I think a good start is to look into the Adafruit_SPIFlash library, which supports both direct Flash access and the usage of a file system for reading/writing you log data.

To send them over USB, you will have to implement some kind of protocol that allows file transfer over a serial, for example YModem. And on your computer you need of course an app that can receive the log via YModem and safe it. I found an example that seems to be close to what you want to do 230_Arduino_to_PC_File_Transfer_YModem

1 Like

Thank you @beegee

I will look into it and update you if I can get the successful implementation.

Is there any similar approach you can think of for downloading the file to smartphone via Bluetooth protocol of esp32?

I never tried that, but a search in Github might bring up some ideas.

@beegee
I found this and will try if it can work for my case.

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