ESP32 s3 file injector

Segamegadrive
Posts: 4
Joined: Wed Apr 09, 2025 8:28 am

ESP32 s3 file injector

Postby Segamegadrive » Wed Apr 09, 2025 8:54 am

Hello, I would like to know how could I make my ESP32 s3 act as a file injector where when the esp would be connected to a device it would create a really small string for example “hello” in its internal memory and automatically paste it as a txt file into the root folder of the device.

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 s3 file injector

Postby Sprite » Wed Apr 09, 2025 9:18 am

You need to be a bit more clear on what you want: what device are we talking about, how do you expect the ESP32S3 to interface with it (USB, Samba, SPI, ...?), were does the string come from, ...?

Segamegadrive
Posts: 4
Joined: Wed Apr 09, 2025 8:28 am

Re: ESP32 s3 file injector

Postby Segamegadrive » Wed Apr 09, 2025 9:25 am

The device would be a graphing calculator that I wanted to interface with through usb. I want to make this as a proof of concept so I was thinking if the string would only be a 1-3 bytes it could be stored directly on the esp.
Last edited by Segamegadrive on Wed Apr 09, 2025 10:31 am, edited 1 time in total.

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 s3 file injector

Postby Sprite » Wed Apr 09, 2025 11:57 am

Okay, sounds like it is possible. Does the calculator just look like an USB stick if you plug it into a PC, or do you need to run special software to talk to it?

Segamegadrive
Posts: 4
Joined: Wed Apr 09, 2025 8:28 am

Re: ESP32 s3 file injector

Postby Segamegadrive » Wed Apr 09, 2025 12:11 pm

It pops up in the file explorer and I can read/write files from and to it without any 3rd party apps

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 s3 file injector

Postby Sprite » Thu Apr 10, 2025 12:18 am

Sounds like it works like a standard USB mass storage device then. In that case, this example should already do most of what you want.

Segamegadrive
Posts: 4
Joined: Wed Apr 09, 2025 8:28 am

Re: ESP32 s3 file injector

Postby Segamegadrive » Thu Apr 10, 2025 7:16 am

In that case I am guessing I should install esp idf for vs script?

Segamegadrive
Posts: 4
Joined: Wed Apr 09, 2025 8:28 am

Re: ESP32 s3 file injector

Postby Segamegadrive » Fri Apr 11, 2025 11:58 am

Posting an update. Everything worked perfectly and the esp creates a folder in the calculator with files inside. Big thanks to sprite for helping me find the example I needed and I will no be able to continue working on the project

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 s3 file injector

Postby Sprite » Sat Apr 12, 2025 4:50 am

Glad to hear you got it working!

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 0 guests