Page 1 of 1
ESP32 s3 file injector
Posted: Wed Apr 09, 2025 8:54 am
by Segamegadrive
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.
Re: ESP32 s3 file injector
Posted: Wed Apr 09, 2025 9:18 am
by Sprite
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, ...?
Re: ESP32 s3 file injector
Posted: Wed Apr 09, 2025 9:25 am
by Segamegadrive
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.
Re: ESP32 s3 file injector
Posted: Wed Apr 09, 2025 11:57 am
by Sprite
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?
Re: ESP32 s3 file injector
Posted: Wed Apr 09, 2025 12:11 pm
by Segamegadrive
It pops up in the file explorer and I can read/write files from and to it without any 3rd party apps
Re: ESP32 s3 file injector
Posted: Thu Apr 10, 2025 12:18 am
by Sprite
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.
Re: ESP32 s3 file injector
Posted: Thu Apr 10, 2025 7:16 am
by Segamegadrive
In that case I am guessing I should install esp idf for vs script?
Re: ESP32 s3 file injector
Posted: Fri Apr 11, 2025 11:58 am
by Segamegadrive
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
Re: ESP32 s3 file injector
Posted: Sat Apr 12, 2025 4:50 am
by Sprite
Glad to hear you got it working!