Page 1 of 1
ESP32S3 : File transfert using BLE and USB ?
Posted: Wed Feb 22, 2023 7:34 am
by ThomasESP32
Good morning,
I am working with an ESP32S3 WROOM module.
I managed to create a partition in the embedded 8Mo Flash.
Now, my goal is to manage to trasnfer file from a smartphone and the embedded flash using BLE and USB.
Do you know if librairies exists in order to manage file transfert over BLE ? The would like the received files to be recorded in the embedded flash.
The same thing concerning the USB. Do you know if librairies exists in order to do that ? Is it possible that the ESP32S3 Wroom module could be recognised as a Hard Drive under Windows for example ? Like an USB key or something ?
Best regards,
Thomas TRUILHE
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Wed Feb 22, 2023 9:29 am
by ThomasESP32
Just for information, I am using ESP-IDF 5.0
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Wed Feb 22, 2023 2:07 pm
by ThomasESP32
Good afternoon,
I have tried this example using tinyUSB with ESP-IDF Master branch.
https://github.com/espressif/esp-idf/tr ... e/tusb_msc
The application starts normally, as explained in the webpage. When I use expose command, I can see the message USB exposed to host, however the PC never sees the ESP32S3 as a Mass Storage Device (Embedded Flash used).
Do you have any idea please ?
BR,
Thomas
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Fri Feb 24, 2023 7:51 am
by ThomasESP32
Good morning,
this morning I have tried the "cdc_msc_freertos" example from TinyUSB,
however when I compile the firmware I get a lot of errors in the files of the library...
So I do not understand what happends...
Could you help me on the subject please,
Best regards,
Thomas TRUILHE
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Fri Feb 24, 2023 2:24 pm
by ThomasESP32
Good afternoon,
I have tested the cdc_msc tinyUSB example again with ESP-IDF and the compilation gives me errors
in the source files of tinyUSB I do not explain.
After trying to correct them, I get the same result, when I start the program on my ESP32-S3-DevKit-C-1,
the callback functions are not called.
And the devJit is not recognised by Windows 10.
Has someone already manages to have its ESP32S3 recongised as an USB key under windows ?
Best regards,
Thomas TRUILHE
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Fri Feb 24, 2023 2:40 pm
by ThomasESP32
Good afternoon,
and finally I have taken the master last commit of ESP-IDF and in the usb examples,
there is an USB Device Msc example.
I can compile the code but when I run it, the USB device is not recognised under windows as an usb disk...
Is it possible that this example is under construction/development ?
Best regards,
Thomas TRUILHE
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Tue Feb 28, 2023 3:48 pm
by ThomasESP32
Good afternoon,
Finally, I managed to mount the Embedded Flash as a USB Disk.
As soon as I connect the USB port of the DevKit-C-1 to the USB port of a computer,
I can see an USB disk opening under Windows.
However, at the moment, when I want to copy many MP3 files on this disk,
I get an error after copying 1 mp3 file.
Do you have any idea please ?
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Wed Mar 01, 2023 12:39 am
by ESP_Sprite
What error do you get? Are you sure the partition you exposed as an USB drive has enough space?
Re: ESP32S3 : File transfert using BLE and USB ?
Posted: Thu Mar 02, 2023 11:21 am
by ThomasESP32
Good morning,
Finally, I managed to get the Embedded Flash accssible as an USB disk and I can store many MP3 files on it.
Now I would like to do the same thing with a SPI SD Card.
Using the master branch of ESP-IDF, I can see an example (tusb_msc) using a MMC SDCard but I don't know how to modify it
in order to use a SPI Flash. It seems to be complicated.
Do you know if these examples will be updated with a one using a SPI SD Card and when ?
It would be very helpful.
Thanks a lot.
Thomas TRUILHE