ESP32S3 : File transfert using BLE and USB ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Wed Feb 22, 2023 7:34 am

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

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Wed Feb 22, 2023 9:29 am

Just for information, I am using ESP-IDF 5.0

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Wed Feb 22, 2023 2:07 pm

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

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Fri Feb 24, 2023 7:51 am

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

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Fri Feb 24, 2023 2:24 pm

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

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Fri Feb 24, 2023 2:40 pm

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

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Tue Feb 28, 2023 3:48 pm

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 ?

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ESP_Sprite » Wed Mar 01, 2023 12:39 am

What error do you get? Are you sure the partition you exposed as an USB drive has enough space?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: ESP32S3 : File transfert using BLE and USB ?

Postby ThomasESP32 » Thu Mar 02, 2023 11:21 am

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

Who is online

Users browsing this forum: No registered users and 64 guests